WarpX
Public Member Functions | Private Attributes | List of all members
PairGenerationFilterFunc Class Reference

Filter functor for the Breit Wheeler process. More...

#include <QEDPairGeneration.H>

Public Member Functions

 PairGenerationFilterFunc (int const opt_depth_runtime_comp)
 Constructor of the PairGenerationFilterFunc functor. More...
 
template<typename PData >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool operator() (const PData &ptd, int const i, amrex::RandomEngine const &) const noexcept
 Functor call. This method determines if a given (photon) particle should undergo pair generation. More...
 

Private Attributes

int m_opt_depth_runtime_comp = 0
 

Detailed Description

Filter functor for the Breit Wheeler process.

Constructor & Destructor Documentation

◆ PairGenerationFilterFunc()

PairGenerationFilterFunc::PairGenerationFilterFunc ( int const  opt_depth_runtime_comp)
inline

Constructor of the PairGenerationFilterFunc functor.

Parameters
[in]opt_depth_runtime_compindex of the optical depth component

Member Function Documentation

◆ operator()()

template<typename PData >
AMREX_GPU_HOST_DEVICE AMREX_FORCE_INLINE bool PairGenerationFilterFunc::operator() ( const PData &  ptd,
int const  i,
amrex::RandomEngine const &   
) const
inlinenoexcept

Functor call. This method determines if a given (photon) particle should undergo pair generation.

Parameters
[in]ptdparticle tile data
[in]iparticle index
Returns
true if a pair has to be generated, false otherwise

Member Data Documentation

◆ m_opt_depth_runtime_comp

int PairGenerationFilterFunc::m_opt_depth_runtime_comp = 0
private

Index of the optical depth component of the species.


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