CMS 3D CMS Logo

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::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 isbHadron(), isHadron(), isLepton(), isParton(), and m_type.

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 bool isLepton() const
const bool isParton() const
const reco::GenParticleRef m_particleRef
const reco::GenParticleRef & particleRef() const
const bool isbHadron() const
const bool isHadron() const

Member Function Documentation

◆ isbHadron()

const bool GhostInfo::isbHadron ( ) const
inline

Definition at line 134 of file JetFlavourClustering.cc.

References m_type.

Referenced by GhostInfo(), and JetFlavourClustering::produce().

134 { return (m_type & (1 << 1)); }

◆ isHadron()

const bool GhostInfo::isHadron ( ) const
inline

Definition at line 133 of file JetFlavourClustering.cc.

References m_type.

Referenced by GhostInfo(), and JetFlavourClustering::produce().

133 { return (m_type & (1 << 0)); }

◆ isLepton()

const bool GhostInfo::isLepton ( ) const
inline

Definition at line 136 of file JetFlavourClustering.cc.

References m_type.

Referenced by GhostInfo(), and JetFlavourClustering::produce().

136 { return (m_type & (1 << 3)); }

◆ isParton()

const bool GhostInfo::isParton ( ) const
inline

Definition at line 135 of file JetFlavourClustering.cc.

References m_type.

Referenced by GhostInfo(), and JetFlavourClustering::produce().

135 { return (m_type & (1 << 2)); }

◆ particleRef()

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

◆ m_particleRef

const reco::GenParticleRef GhostInfo::m_particleRef
protected

Definition at line 140 of file JetFlavourClustering.cc.

Referenced by particleRef().

◆ m_type

int GhostInfo::m_type
protected

Definition at line 141 of file JetFlavourClustering.cc.

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