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.

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  }

References isbHadron(), isHadron(), isLepton(), isParton(), and m_type.

Member Function Documentation

◆ isbHadron()

const bool GhostInfo::isbHadron ( ) const
inline

Definition at line 134 of file JetFlavourClustering.cc.

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

References m_type.

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

◆ isHadron()

const bool GhostInfo::isHadron ( ) const
inline

Definition at line 133 of file JetFlavourClustering.cc.

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

References m_type.

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

◆ isLepton()

const bool GhostInfo::isLepton ( ) const
inline

Definition at line 136 of file JetFlavourClustering.cc.

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

References m_type.

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

◆ isParton()

const bool GhostInfo::isParton ( ) const
inline

Definition at line 135 of file JetFlavourClustering.cc.

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

References m_type.

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

◆ particleRef()

const reco::GenParticleRef& GhostInfo::particleRef ( ) const
inline

Definition at line 137 of file JetFlavourClustering.cc.

137 { return m_particleRef; }

References m_particleRef.

Referenced by JetFlavourClustering::produce().

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().

GhostInfo::isbHadron
const bool isbHadron() const
Definition: JetFlavourClustering.cc:134
GhostInfo::isHadron
const bool isHadron() const
Definition: JetFlavourClustering.cc:133
GhostInfo::isParton
const bool isParton() const
Definition: JetFlavourClustering.cc:135
GhostInfo::isLepton
const bool isLepton() const
Definition: JetFlavourClustering.cc:136
GhostInfo::m_type
int m_type
Definition: JetFlavourClustering.cc:141
GhostInfo::particleRef
const reco::GenParticleRef & particleRef() const
Definition: JetFlavourClustering.cc:137
GhostInfo::m_particleRef
const reco::GenParticleRef m_particleRef
Definition: JetFlavourClustering.cc:140