CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes
reco::GenStatusFlags Class Reference

#include <GenStatusFlags.h>

Public Types

enum  StatusBits {
  kIsPrompt = 0, kIsDecayedLeptonHadron, kIsTauDecayProduct, kIsPromptTauDecayProduct,
  kIsDirectTauDecayProduct, kIsDirectPromptTauDecayProduct, kIsDirectHadronDecayProduct, kIsHardProcess,
  kFromHardProcess, kIsHardProcessTauDecayProduct, kIsDirectHardProcessTauDecayProduct, kFromHardProcessBeforeFSR,
  kIsFirstCopy, kIsLastCopy, kIsLastCopyBeforeFSR
}
 

Public Member Functions

bool fromHardProcess () const
 
bool fromHardProcessBeforeFSR () const
 
bool isDecayedLeptonHadron () const
 
bool isDirectHadronDecayProduct () const
 
bool isDirectHardProcessTauDecayProduct () const
 
bool isDirectPromptTauDecayProduct () const
 
bool isDirectTauDecayProduct () const
 
bool isFirstCopy () const
 
bool isHardProcess () const
 
bool isHardProcessTauDecayProduct () const
 
bool isLastCopy () const
 
bool isLastCopyBeforeFSR () const
 
bool isPrompt () const
 
bool isPromptTauDecayProduct () const
 
bool isTauDecayProduct () const
 
void setFromHardProcess (bool b)
 
void setFromHardProcessBeforeFSR (bool b)
 
void setIsDecayedLeptonHadron (bool b)
 
void setIsDirectHadronDecayProduct (bool b)
 
void setIsDirectHardProcessTauDecayProduct (bool b)
 
void setIsDirectPromptTauDecayProduct (bool b)
 
void setIsDirectTauDecayProduct (bool b)
 
void setIsFirstCopy (bool b)
 
void setIsHardProcess (bool b)
 
void setIsHardProcessTauDecayProduct (bool b)
 
void setIsLastCopy (bool b)
 
void setIsLastCopyBeforeFSR (bool b)
 
void setIsPrompt (bool b)
 
void setIsPromptTauDecayProduct (bool b)
 
void setIsTauDecayProduct (bool b)
 

Public Attributes

std::bitset< 15 > flags_
 

Detailed Description

enum for generator status flags

Author
: Josh Bendavid

Definition at line 15 of file GenStatusFlags.h.

Member Enumeration Documentation

◆ StatusBits

Enumerator
kIsPrompt 
kIsDecayedLeptonHadron 
kIsTauDecayProduct 
kIsPromptTauDecayProduct 
kIsDirectTauDecayProduct 
kIsDirectPromptTauDecayProduct 
kIsDirectHadronDecayProduct 
kIsHardProcess 
kFromHardProcess 
kIsHardProcessTauDecayProduct 
kIsDirectHardProcessTauDecayProduct 
kFromHardProcessBeforeFSR 
kIsFirstCopy 
kIsLastCopy 
kIsLastCopyBeforeFSR 

Definition at line 16 of file GenStatusFlags.h.

16  {
17  kIsPrompt = 0,
32  };

Member Function Documentation

◆ fromHardProcess()

bool reco::GenStatusFlags::fromHardProcess ( ) const
inline

◆ fromHardProcessBeforeFSR()

bool reco::GenStatusFlags::fromHardProcessBeforeFSR ( ) const
inline

◆ isDecayedLeptonHadron()

bool reco::GenStatusFlags::isDecayedLeptonHadron ( ) const
inline

◆ isDirectHadronDecayProduct()

bool reco::GenStatusFlags::isDirectHadronDecayProduct ( ) const
inline

◆ isDirectHardProcessTauDecayProduct()

bool reco::GenStatusFlags::isDirectHardProcessTauDecayProduct ( ) const
inline

◆ isDirectPromptTauDecayProduct()

bool reco::GenStatusFlags::isDirectPromptTauDecayProduct ( ) const
inline

◆ isDirectTauDecayProduct()

bool reco::GenStatusFlags::isDirectTauDecayProduct ( ) const
inline

◆ isFirstCopy()

bool reco::GenStatusFlags::isFirstCopy ( ) const
inline

Definition at line 101 of file GenStatusFlags.h.

References flags_, and kIsFirstCopy.

◆ isHardProcess()

bool reco::GenStatusFlags::isHardProcess ( ) const
inline

Definition at line 77 of file GenStatusFlags.h.

References flags_, and kIsHardProcess.

Referenced by reco::GenParticle::isHardProcess().

◆ isHardProcessTauDecayProduct()

bool reco::GenStatusFlags::isHardProcessTauDecayProduct ( ) const
inline

◆ isLastCopy()

bool reco::GenStatusFlags::isLastCopy ( ) const
inline

Definition at line 106 of file GenStatusFlags.h.

References flags_, and kIsLastCopy.

Referenced by reco::GenParticle::isLastCopy().

◆ isLastCopyBeforeFSR()

bool reco::GenStatusFlags::isLastCopyBeforeFSR ( ) const
inline

◆ isPrompt()

bool reco::GenStatusFlags::isPrompt ( ) const
inline

◆ isPromptTauDecayProduct()

bool reco::GenStatusFlags::isPromptTauDecayProduct ( ) const
inline

◆ isTauDecayProduct()

bool reco::GenStatusFlags::isTauDecayProduct ( ) const
inline

Definition at line 50 of file GenStatusFlags.h.

References flags_, and kIsTauDecayProduct.

◆ setFromHardProcess()

void reco::GenStatusFlags::setFromHardProcess ( bool  b)
inline

Definition at line 82 of file GenStatusFlags.h.

References b, flags_, and kFromHardProcess.

◆ setFromHardProcessBeforeFSR()

void reco::GenStatusFlags::setFromHardProcessBeforeFSR ( bool  b)
inline

◆ setIsDecayedLeptonHadron()

void reco::GenStatusFlags::setIsDecayedLeptonHadron ( bool  b)
inline

Definition at line 47 of file GenStatusFlags.h.

References b, flags_, and kIsDecayedLeptonHadron.

◆ setIsDirectHadronDecayProduct()

void reco::GenStatusFlags::setIsDirectHadronDecayProduct ( bool  b)
inline

◆ setIsDirectHardProcessTauDecayProduct()

void reco::GenStatusFlags::setIsDirectHardProcessTauDecayProduct ( bool  b)
inline

◆ setIsDirectPromptTauDecayProduct()

void reco::GenStatusFlags::setIsDirectPromptTauDecayProduct ( bool  b)
inline

◆ setIsDirectTauDecayProduct()

void reco::GenStatusFlags::setIsDirectTauDecayProduct ( bool  b)
inline

◆ setIsFirstCopy()

void reco::GenStatusFlags::setIsFirstCopy ( bool  b)
inline

Definition at line 102 of file GenStatusFlags.h.

References b, flags_, and kIsFirstCopy.

◆ setIsHardProcess()

void reco::GenStatusFlags::setIsHardProcess ( bool  b)
inline

Definition at line 78 of file GenStatusFlags.h.

References b, flags_, and kIsHardProcess.

◆ setIsHardProcessTauDecayProduct()

void reco::GenStatusFlags::setIsHardProcessTauDecayProduct ( bool  b)
inline

◆ setIsLastCopy()

void reco::GenStatusFlags::setIsLastCopy ( bool  b)
inline

Definition at line 107 of file GenStatusFlags.h.

References b, flags_, and kIsLastCopy.

◆ setIsLastCopyBeforeFSR()

void reco::GenStatusFlags::setIsLastCopyBeforeFSR ( bool  b)
inline

Definition at line 113 of file GenStatusFlags.h.

References b, flags_, and kIsLastCopyBeforeFSR.

◆ setIsPrompt()

void reco::GenStatusFlags::setIsPrompt ( bool  b)
inline

Definition at line 40 of file GenStatusFlags.h.

References b, flags_, and kIsPrompt.

40 { flags_[kIsPrompt] = b; }
double b
Definition: hdecay.h:120
std::bitset< 15 > flags_

◆ setIsPromptTauDecayProduct()

void reco::GenStatusFlags::setIsPromptTauDecayProduct ( bool  b)
inline

◆ setIsTauDecayProduct()

void reco::GenStatusFlags::setIsTauDecayProduct ( bool  b)
inline

Definition at line 51 of file GenStatusFlags.h.

References b, flags_, and kIsTauDecayProduct.

Member Data Documentation

◆ flags_

std::bitset<15> reco::GenStatusFlags::flags_