OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
ParticleBinning::GammaSelector< bunch_type > Struct Template Reference

Selects the gamma factor for binning. More...

#include <BinningTools.h>

Collaboration diagram for ParticleBinning::GammaSelector< bunch_type >:
Collaboration graph

Public Types

using value_type = typename bunch_type::Layout_t::value_type
 
using size_type = typename bunch_type::size_type
 
using position_view_type = typename bunch_type::particle_position_type::view_type
 

Public Member Functions

 GammaSelector (int axis_)
 
void updateDataArr (bunch_type &bunch)
 
KOKKOS_INLINE_FUNCTION value_type operator() (const size_type &i) const
 

Public Attributes

position_view_type data_arr
 
const int axis
 

Detailed Description

template<typename bunch_type>
struct ParticleBinning::GammaSelector< bunch_type >

Selects the gamma factor for binning.

This struct provides a way to select the gamma factor for binning. It allows specifying the axis index, making it versatile for different coordinate-based binning operations. Usually used on axis 2, meaning the gamma in z-direction.

Note
The implementation is equivalent to CoordinateSelector.

Definition at line 149 of file BinningTools.h.

Member Typedef Documentation

◆ position_view_type

template<typename bunch_type >
using ParticleBinning::GammaSelector< bunch_type >::position_view_type = typename bunch_type::particle_position_type::view_type

Definition at line 152 of file BinningTools.h.

◆ size_type

template<typename bunch_type >
using ParticleBinning::GammaSelector< bunch_type >::size_type = typename bunch_type::size_type

Definition at line 151 of file BinningTools.h.

◆ value_type

template<typename bunch_type >
using ParticleBinning::GammaSelector< bunch_type >::value_type = typename bunch_type::Layout_t::value_type

Definition at line 150 of file BinningTools.h.

Constructor & Destructor Documentation

◆ GammaSelector()

template<typename bunch_type >
ParticleBinning::GammaSelector< bunch_type >::GammaSelector ( int  axis_)
inline

Definition at line 157 of file BinningTools.h.

Member Function Documentation

◆ operator()()

template<typename bunch_type >
KOKKOS_INLINE_FUNCTION value_type ParticleBinning::GammaSelector< bunch_type >::operator() ( const size_type i) const
inline

◆ updateDataArr()

template<typename bunch_type >
void ParticleBinning::GammaSelector< bunch_type >::updateDataArr ( bunch_type &  bunch)
inline

Member Data Documentation

◆ axis

template<typename bunch_type >
const int ParticleBinning::GammaSelector< bunch_type >::axis

◆ data_arr


The documentation for this struct was generated from the following file: