test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

Definition at line 17 of file GenStatusFlags.h.

17  {
18  kIsPrompt = 0,
33  };

Member Function Documentation

bool reco::GenStatusFlags::fromHardProcess ( ) const
inline
bool reco::GenStatusFlags::fromHardProcessBeforeFSR ( ) const
inline
bool reco::GenStatusFlags::isDecayedLeptonHadron ( ) const
inline
bool reco::GenStatusFlags::isDirectHadronDecayProduct ( ) const
inline
bool reco::GenStatusFlags::isDirectHardProcessTauDecayProduct ( ) const
inline
bool reco::GenStatusFlags::isDirectPromptTauDecayProduct ( ) const
inline
bool reco::GenStatusFlags::isDirectTauDecayProduct ( ) const
inline
bool reco::GenStatusFlags::isFirstCopy ( ) const
inline

Definition at line 102 of file GenStatusFlags.h.

References flags_, and kIsFirstCopy.

Referenced by ParticleListDrawer::analyze().

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

Definition at line 78 of file GenStatusFlags.h.

References flags_, and kIsHardProcess.

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

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

Definition at line 107 of file GenStatusFlags.h.

References flags_, and kIsLastCopy.

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

bool reco::GenStatusFlags::isLastCopyBeforeFSR ( ) const
inline
bool reco::GenStatusFlags::isPrompt ( ) const
inline
bool reco::GenStatusFlags::isPromptTauDecayProduct ( ) const
inline
bool reco::GenStatusFlags::isTauDecayProduct ( ) const
inline

Definition at line 51 of file GenStatusFlags.h.

References flags_, and kIsTauDecayProduct.

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

Definition at line 83 of file GenStatusFlags.h.

References b, flags_, and kFromHardProcess.

Referenced by MCTruthHelper< P >::fillGenStatusFlags().

void reco::GenStatusFlags::setFromHardProcessBeforeFSR ( bool  b)
inline
void reco::GenStatusFlags::setIsDecayedLeptonHadron ( bool  b)
inline
void reco::GenStatusFlags::setIsDirectHadronDecayProduct ( bool  b)
inline
void reco::GenStatusFlags::setIsDirectHardProcessTauDecayProduct ( bool  b)
inline
void reco::GenStatusFlags::setIsDirectPromptTauDecayProduct ( bool  b)
inline
void reco::GenStatusFlags::setIsDirectTauDecayProduct ( bool  b)
inline
void reco::GenStatusFlags::setIsFirstCopy ( bool  b)
inline

Definition at line 103 of file GenStatusFlags.h.

References b, flags_, and kIsFirstCopy.

Referenced by MCTruthHelper< P >::fillGenStatusFlags().

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

Definition at line 79 of file GenStatusFlags.h.

References b, flags_, and kIsHardProcess.

Referenced by MCTruthHelper< P >::fillGenStatusFlags().

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

Definition at line 108 of file GenStatusFlags.h.

References b, flags_, and kIsLastCopy.

Referenced by MCTruthHelper< P >::fillGenStatusFlags().

108 { flags_[kIsLastCopy] = b; }
double b
Definition: hdecay.h:120
std::bitset< 15 > flags_
void reco::GenStatusFlags::setIsLastCopyBeforeFSR ( bool  b)
inline
void reco::GenStatusFlags::setIsPrompt ( bool  b)
inline

Definition at line 41 of file GenStatusFlags.h.

References b, flags_, and kIsPrompt.

Referenced by MCTruthHelper< P >::fillGenStatusFlags().

41 { flags_[kIsPrompt] = b; }
double b
Definition: hdecay.h:120
std::bitset< 15 > flags_
void reco::GenStatusFlags::setIsPromptTauDecayProduct ( bool  b)
inline
void reco::GenStatusFlags::setIsTauDecayProduct ( bool  b)
inline

Definition at line 52 of file GenStatusFlags.h.

References b, flags_, and kIsTauDecayProduct.

Referenced by MCTruthHelper< P >::fillGenStatusFlags().

Member Data Documentation

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