CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Attributes
GhostInfo Class Reference
Inheritance diagram for GhostInfo:

Public Member Functions

 GhostInfo (const bool &isHadron, const bool &isbHadron, const bool &isParton, const bool &isLepton, const reco::GenParticleRef &particleRef)
 
const bool isbHadron () const
 
const bool isHadron () const
 
const bool isLepton () const
 
const bool isParton () const
 
const reco::GenParticleRefparticleRef () const
 

Protected Attributes

const reco::GenParticleRef m_particleRef
 
int m_type
 

Detailed Description

Definition at line 112 of file JetFlavourClustering.cc.

Constructor & Destructor Documentation

GhostInfo::GhostInfo ( const bool &  isHadron,
const bool &  isbHadron,
const bool &  isParton,
const bool &  isLepton,
const reco::GenParticleRef particleRef 
)
inline

Definition at line 114 of file JetFlavourClustering.cc.

References m_type.

118  :
119  m_particleRef(particleRef)
120  {
121  m_type = 0;
122  if( isHadron ) m_type |= ( 1 << 0 );
123  if( isbHadron ) m_type |= ( 1 << 1 );
124  if( isParton ) m_type |= ( 1 << 2 );
125  if( isLepton ) m_type |= ( 1 << 3 );
126  }
const reco::GenParticleRef m_particleRef
const bool isParton() const
const bool isLepton() const
const bool isbHadron() const
const bool isHadron() const

Member Function Documentation

const bool GhostInfo::isbHadron ( ) const
inline

Definition at line 129 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

129 { return ( m_type & (1 << 1) ); }
const bool GhostInfo::isHadron ( ) const
inline

Definition at line 128 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

128 { return ( m_type & (1 << 0) ); }
const bool GhostInfo::isLepton ( ) const
inline

Definition at line 131 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

131 { return ( m_type & (1 << 3) ); }
const bool GhostInfo::isParton ( ) const
inline

Definition at line 130 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

130 { return ( m_type & (1 << 2) ); }
const reco::GenParticleRef& GhostInfo::particleRef ( ) const
inline

Definition at line 132 of file JetFlavourClustering.cc.

References m_particleRef.

Referenced by JetFlavourClustering::produce().

132 { return m_particleRef; }
const reco::GenParticleRef m_particleRef

Member Data Documentation

const reco::GenParticleRef GhostInfo::m_particleRef
protected

Definition at line 135 of file JetFlavourClustering.cc.

Referenced by particleRef().

int GhostInfo::m_type
protected

Definition at line 136 of file JetFlavourClustering.cc.

Referenced by GhostInfo(), isbHadron(), isHadron(), isLepton(), and isParton().