CMS 3D CMS Logo

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

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

References m_type.

Referenced by JetFlavourClustering::produce().

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

Definition at line 133 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

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

Definition at line 136 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

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

Definition at line 135 of file JetFlavourClustering.cc.

References m_type.

Referenced by JetFlavourClustering::produce().

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

Definition at line 137 of file JetFlavourClustering.cc.

References m_particleRef.

Referenced by JetFlavourClustering::produce().

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

Member Data Documentation

const reco::GenParticleRef GhostInfo::m_particleRef
protected

Definition at line 140 of file JetFlavourClustering.cc.

Referenced by particleRef().

int GhostInfo::m_type
protected

Definition at line 141 of file JetFlavourClustering.cc.

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