test
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 114 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 116 of file JetFlavourClustering.cc.

References m_type.

120  :
121  m_particleRef(particleRef)
122  {
123  m_type = 0;
124  if( isHadron ) m_type |= ( 1 << 0 );
125  if( isbHadron ) m_type |= ( 1 << 1 );
126  if( isParton ) m_type |= ( 1 << 2 );
127  if( isLepton ) m_type |= ( 1 << 3 );
128  }
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 131 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

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

Definition at line 130 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

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

Definition at line 133 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

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

Definition at line 132 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

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

Definition at line 134 of file JetFlavourClustering.cc.

References m_particleRef.

Referenced by JetFlavourClustering::produce().

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

Member Data Documentation

const reco::GenParticleRef GhostInfo::m_particleRef
protected

Definition at line 137 of file JetFlavourClustering.cc.

Referenced by particleRef().

int GhostInfo::m_type
protected

Definition at line 138 of file JetFlavourClustering.cc.

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