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

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

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 101 of file GenStatusFlags.h.

References flags_, and kIsFirstCopy.

Referenced by ParticleListDrawer::analyze().

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

Definition at line 77 of file GenStatusFlags.h.

References flags_, and kIsHardProcess.

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

Definition at line 106 of file GenStatusFlags.h.

References flags_, and kIsLastCopy.

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

Definition at line 39 of file GenStatusFlags.h.

References flags_, and kIsPrompt.

Referenced by pat::PackedGenParticle::isPromptFinalState().

bool reco::GenStatusFlags::isPromptTauDecayProduct ( ) const
inline
bool reco::GenStatusFlags::isTauDecayProduct ( ) const
inline
void reco::GenStatusFlags::setFromHardProcess ( bool  b)
inline

Definition at line 82 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 102 of file GenStatusFlags.h.

References b, flags_, and kIsFirstCopy.

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

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

Definition at line 78 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 107 of file GenStatusFlags.h.

References b, flags_, and kIsLastCopy.

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

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

Definition at line 40 of file GenStatusFlags.h.

References b, flags_, and kIsPrompt.

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

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

Definition at line 51 of file GenStatusFlags.h.

References b, flags_, and kIsTauDecayProduct.

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

Member Data Documentation

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