LCIO
02.17
|
Helper class for defining the generated Monte Carlo physics process. More...
#include <ProcessFlag.h>
Public Member Functions | |
ProcessFlag ()=default | |
~ProcessFlag ()=default | |
ProcessFlag (const ProcessFlag &f)=default | |
ProcessFlag & | operator= (const ProcessFlag &f)=default |
ProcessFlag (int flag) | |
construct from int More... | |
ProcessFlag (const std::initializer_list< PF > &bits) | |
c'tor that takes a list of bit enums in an initialiser list, e.g. More... | |
void | add (PF bit) |
add an individual bit More... | |
bool | addFSParticles (int pdg) |
add the bit for the final state particles with given PDG code - false if not known More... | |
bool | addHiggsDecay (int pdg) |
add the bit for the Higgs decaying to a particles with given PDG code - false if not known More... | |
ProcessFlag & | operator= (int flag) |
assign complete int flag More... | |
bool | operator== (const ProcessFlag &f) const |
conparison - true if identical processes More... | |
bool | contains (const ProcessFlag &f) const |
true if this ProcessFlag contains everything in f More... | |
operator int () const | |
conversion to int More... | |
bool | has (PF bit) const |
check if this bit is present More... | |
Private Attributes | |
int | _flag =0 |
std::map< int, PF > | _mapFS |
std::map< int, PF > | _mapH |
Helper class for defining the generated Monte Carlo physics process.
The bits decode if certain particle types are present in the final state of the hard sub-process. Additionally, in events with a Higgs bosons, its decay is denoted, e.g. ProcessFlag::has( PF::higssbb ) is true for an event with a H->bbbar decay. See enum PF for individual flag bits.
Definition at line 58 of file ProcessFlag.h.
|
default |
|
default |
|
default |
|
inline |
construct from int
Definition at line 69 of file ProcessFlag.h.
|
inline |
c'tor that takes a list of bit enums in an initialiser list, e.g.
ProcessFlag( {PF::muons, PF::higssbb } )
Definition at line 75 of file ProcessFlag.h.
References add().
|
inline |
add an individual bit
Definition at line 80 of file ProcessFlag.h.
References _flag.
Referenced by addFSParticles(), addHiggsDecay(), UTIL::decodeMCTruthProcess(), and ProcessFlag().
|
inline |
add the bit for the final state particles with given PDG code - false if not known
Definition at line 85 of file ProcessFlag.h.
References _mapFS, add(), std::map< K, T >::end(), and std::map< K, T >::find().
Referenced by UTIL::decodeMCTruthProcess().
|
inline |
add the bit for the Higgs decaying to a particles with given PDG code - false if not known
Definition at line 94 of file ProcessFlag.h.
References _mapH, add(), std::map< K, T >::end(), and std::map< K, T >::find().
Referenced by UTIL::decodeMCTruthProcess().
|
inline |
true if this ProcessFlag contains everything in f
Definition at line 110 of file ProcessFlag.h.
References _flag.
check if this bit is present
Definition at line 117 of file ProcessFlag.h.
References _flag.
Referenced by UTIL::operator<<().
|
inline |
|
default |
|
inline |
|
inline |
conparison - true if identical processes
Definition at line 107 of file ProcessFlag.h.
References _flag.
|
private |
Definition at line 120 of file ProcessFlag.h.
Referenced by add(), contains(), has(), operator int(), operator=(), and operator==().
Definition at line 122 of file ProcessFlag.h.
Referenced by addFSParticles().
Definition at line 137 of file ProcessFlag.h.
Referenced by addHiggsDecay().