76 for(
auto bit : bits )
add(bit) ;
114 operator int()
const {
return _flag ; }
117 bool has(
PF bit)
const {
return (
_flag & (1<< (
int) bit) ) ?
true : false ; }
std::ostream & operator<<(std::ostream &os, const BitField64 &b)
Operator for dumping BitField64 to streams.
void add(PF bit)
add an individual bit
ProcessFlag & operator=(int flag)
assign complete int flag
Higss to ddbar or uubar decay.
ProcessorFlagBits
enum class for flag bits in ProcessFlag
bool addHiggsDecay(int pdg)
add the bit for the Higgs decaying to a particles with given PDG code - false if not known ...
Higss to invisible decay.
ProcessFlag(int flag)
construct from int
bool has(PF bit) const
check if this bit is present
ProcessFlag decodeMCTruthProcess(const EVENT::LCCollection *mcps, int maxParticle=10)
Helper function that decodes the MC truth process from an LCCollection with MCParticles.
exotic process (SUSY etc)
ProcessFlag & operator=(const ProcessFlag &f)=default
ProcessorFlagBits PF
Short name for ProcessorFlagBits.
bool addFSParticles(int pdg)
add the bit for the final state particles with given PDG code - false if not known ...
bool contains(const ProcessFlag &f) const
true if this ProcessFlag contains everything in f
std::map< int, PF > _mapFS
The generic collection used in LCIO.
std::map< int, PF > _mapH
ProcessFlag(const std::initializer_list< PF > &bits)
c'tor that takes a list of bit enums in an initialiser list, e.g.
Helper class for defining the generated Monte Carlo physics process.
Higss to gamma gamma decay.
bool operator==(const ProcessFlag &f) const
conparison - true if identical processes