Hydra  4.0.1
A header-only templated C++ framework to perform data analysis on massively parallel platforms.
hydra::detail::FlagAcceptReject Struct Reference

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

#include <FlagAcceptReject.h>

Collaboration diagram for hydra::detail::FlagAcceptReject:

Public Member Functions

 FlagAcceptReject (const size_t seed, const GReal_t wmax)
 FlagAcceptReject constructor. More...
 
__hydra_host__ __hydra_device__ size_t hash (size_t a, size_t b)
 hash function. More...
 
__hydra_host__ __hydra_device__ GBool_t operator() (size_t idx, GReal_t weight)
 operator(). More...
 

Data Fields

size_t fSeed
 
GReal_t fWmax
 maximum weight More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ FlagAcceptReject()

hydra::detail::FlagAcceptReject::FlagAcceptReject ( const size_t  seed,
const GReal_t  wmax 
)
inline

FlagAcceptReject constructor.

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

Member Function Documentation

◆ hash()

__hydra_host__ __hydra_device__ size_t hydra::detail::FlagAcceptReject::hash ( size_t  a,
size_t  b 
)
inline

hash function.

Generate hashs to be used in random number generation initialization

◆ operator()()

__hydra_host__ __hydra_device__ GBool_t hydra::detail::FlagAcceptReject::operator() ( size_t  idx,
GReal_t  weight 
)
inline

operator().

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

Field Documentation

◆ fSeed

size_t hydra::detail::FlagAcceptReject::fSeed

◆ fWmax

GReal_t hydra::detail::FlagAcceptReject::fWmax

maximum weight


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