MCBooster  1.0.1
Tool to generate MC phase space samples in parallel.
MCBooster::FlagAcceptReject Struct Reference

Flags generated events as accepted (1) or rejected (0). More...

#include <FlagAcceptReject.h>

+ Collaboration diagram for MCBooster::FlagAcceptReject:

Public Member Functions

 FlagAcceptReject (const GReal_t _wmax)
 FlagAcceptReject constructor. More...
 
__host__ __device__ GUInt_t hash (GUInt_t a)
 hash function. More...
 
__host__ __device__ GBool_t operator() (GLong_t idx, GReal_t weight)
 operator(). More...
 

Public Attributes

GReal_t wmax
 maximum weight More...
 

Detailed Description

Definition at line 44 of file FlagAcceptReject.h.

Constructor & Destructor Documentation

MCBooster::FlagAcceptReject::FlagAcceptReject ( const GReal_t  _wmax)
inline

It is initialized with the value of the maximum weight with which event weights will be compared.

Definition at line 52 of file FlagAcceptReject.h.

Member Function Documentation

__host__ __device__ GUInt_t MCBooster::FlagAcceptReject::hash ( GUInt_t  a)
inline

Generate hashs to be used in random number generation initialization

Definition at line 59 of file FlagAcceptReject.h.

Referenced by operator()().

+ Here is the caller graph for this function:

__host__ __device__ GBool_t MCBooster::FlagAcceptReject::operator() ( GLong_t  idx,
GReal_t  weight 
)
inline

Takes the events index and weight and so flag it as accepted and rejected

Definition at line 73 of file FlagAcceptReject.h.

References hash().

+ Here is the call graph for this function:

Member Data Documentation

GReal_t MCBooster::FlagAcceptReject::wmax

Definition at line 47 of file FlagAcceptReject.h.


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