CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
reco::JetFlavourInfo Class Reference

Class storing the jet flavour information. More...

#include <DataFormats/JetMatching/interface/JetFlavourInfo.h>

Public Member Functions

const GenParticleRefVectorgetbHadrons () const
 Return a vector of GenParticleRef's to b hadrons clustered inside the jet. More...
 
const GenParticleRefVectorgetcHadrons () const
 Return a vector of GenParticleRef's to c hadrons clustered inside the jet. More...
 
const int getHadronFlavour () const
 Return the hadron-based flavour. More...
 
const GenParticleRefVectorgetLeptons () const
 Return a vector of GenParticleRef's to leptons clustered inside the jet. More...
 
const int getPartonFlavour () const
 Return the parton-based flavour. More...
 
const GenParticleRefVectorgetPartons () const
 Return a vector of GenParticleRef's to partons clustered inside the jet. More...
 
 JetFlavourInfo (const GenParticleRefVector &bHadrons, const GenParticleRefVector &cHadrons, const GenParticleRefVector &partons, const GenParticleRefVector &leptons, const int hadronFlavour, const int partonFlavour)
 
 JetFlavourInfo (const int hadronFlavour, const int partonFlavour)
 
 JetFlavourInfo (void)
 
void setHadronFlavour (const int hadronFlavour)
 Set the hadron-based flavour. More...
 
void setPartonFlavour (const int partonFlavour)
 Set the parton-based flavour. More...
 

Private Attributes

GenParticleRefVector m_bHadrons
 
GenParticleRefVector m_cHadrons
 
int m_hadronFlavour
 
GenParticleRefVector m_leptons
 
int m_partonFlavour
 
GenParticleRefVector m_partons
 

Detailed Description

Class storing the jet flavour information.

JetFlavourInfo class stores the jet flavour information based on hadrons and partons clustered inside the jet. It also provides vectors of EDM references to clustered hadrons and partons. The hadron- and parton-based flavours are defined in the JetFlavourClustering producer.

Definition at line 18 of file JetFlavourInfo.h.

Constructor & Destructor Documentation

◆ JetFlavourInfo() [1/3]

reco::JetFlavourInfo::JetFlavourInfo ( void  )
inline

Definition at line 20 of file JetFlavourInfo.h.

◆ JetFlavourInfo() [2/3]

reco::JetFlavourInfo::JetFlavourInfo ( const int  hadronFlavour,
const int  partonFlavour 
)
inline

◆ JetFlavourInfo() [3/3]

reco::JetFlavourInfo::JetFlavourInfo ( const GenParticleRefVector bHadrons,
const GenParticleRefVector cHadrons,
const GenParticleRefVector partons,
const GenParticleRefVector leptons,
const int  hadronFlavour,
const int  partonFlavour 
)
inline

Member Function Documentation

◆ getbHadrons()

const GenParticleRefVector& reco::JetFlavourInfo::getbHadrons ( ) const
inline

Return a vector of GenParticleRef's to b hadrons clustered inside the jet.

Definition at line 37 of file JetFlavourInfo.h.

37 { return m_bHadrons; }

References m_bHadrons.

Referenced by GenHFHadronMatcher::findHadronJets().

◆ getcHadrons()

const GenParticleRefVector& reco::JetFlavourInfo::getcHadrons ( ) const
inline

Return a vector of GenParticleRef's to c hadrons clustered inside the jet.

Definition at line 39 of file JetFlavourInfo.h.

39 { return m_cHadrons; }

References m_cHadrons.

Referenced by GenHFHadronMatcher::findHadronJets().

◆ getHadronFlavour()

const int reco::JetFlavourInfo::getHadronFlavour ( ) const
inline

Return the hadron-based flavour.

Definition at line 45 of file JetFlavourInfo.h.

45 { return m_hadronFlavour; }

References m_hadronFlavour.

◆ getLeptons()

const GenParticleRefVector& reco::JetFlavourInfo::getLeptons ( ) const
inline

Return a vector of GenParticleRef's to leptons clustered inside the jet.

Definition at line 43 of file JetFlavourInfo.h.

43 { return m_leptons; }

References m_leptons.

◆ getPartonFlavour()

const int reco::JetFlavourInfo::getPartonFlavour ( ) const
inline

Return the parton-based flavour.

Definition at line 47 of file JetFlavourInfo.h.

47 { return m_partonFlavour; }

References m_partonFlavour.

◆ getPartons()

const GenParticleRefVector& reco::JetFlavourInfo::getPartons ( ) const
inline

Return a vector of GenParticleRef's to partons clustered inside the jet.

Definition at line 41 of file JetFlavourInfo.h.

41 { return m_partons; }

References m_partons.

◆ setHadronFlavour()

void reco::JetFlavourInfo::setHadronFlavour ( const int  hadronFlavour)
inline

Set the hadron-based flavour.

Definition at line 50 of file JetFlavourInfo.h.

References jets_cff::hadronFlavour, and m_hadronFlavour.

◆ setPartonFlavour()

void reco::JetFlavourInfo::setPartonFlavour ( const int  partonFlavour)
inline

Set the parton-based flavour.

Definition at line 52 of file JetFlavourInfo.h.

References m_partonFlavour, and jets_cff::partonFlavour.

Member Data Documentation

◆ m_bHadrons

GenParticleRefVector reco::JetFlavourInfo::m_bHadrons
private

Definition at line 55 of file JetFlavourInfo.h.

Referenced by getbHadrons().

◆ m_cHadrons

GenParticleRefVector reco::JetFlavourInfo::m_cHadrons
private

Definition at line 56 of file JetFlavourInfo.h.

Referenced by getcHadrons().

◆ m_hadronFlavour

int reco::JetFlavourInfo::m_hadronFlavour
private

Definition at line 59 of file JetFlavourInfo.h.

Referenced by getHadronFlavour(), and setHadronFlavour().

◆ m_leptons

GenParticleRefVector reco::JetFlavourInfo::m_leptons
private

Definition at line 58 of file JetFlavourInfo.h.

Referenced by getLeptons().

◆ m_partonFlavour

int reco::JetFlavourInfo::m_partonFlavour
private

Definition at line 60 of file JetFlavourInfo.h.

Referenced by getPartonFlavour(), and setPartonFlavour().

◆ m_partons

GenParticleRefVector reco::JetFlavourInfo::m_partons
private

Definition at line 57 of file JetFlavourInfo.h.

Referenced by getPartons().

reco::JetFlavourInfo::m_leptons
GenParticleRefVector m_leptons
Definition: JetFlavourInfo.h:58
jets_cff.hadronFlavour
hadronFlavour
Definition: jets_cff.py:591
HLT_FULL_cff.leptons
leptons
Definition: HLT_FULL_cff.py:26277
reco::JetFlavourInfo::m_partons
GenParticleRefVector m_partons
Definition: JetFlavourInfo.h:57
dqmAnalyzer_cff.partons
partons
Definition: dqmAnalyzer_cff.py:27
reco::JetFlavourInfo::m_cHadrons
GenParticleRefVector m_cHadrons
Definition: JetFlavourInfo.h:56
reco::JetFlavourInfo::m_hadronFlavour
int m_hadronFlavour
Definition: JetFlavourInfo.h:59
reco::JetFlavourInfo::m_bHadrons
GenParticleRefVector m_bHadrons
Definition: JetFlavourInfo.h:55
AK4GenJetFlavourInfos_cfi.cHadrons
cHadrons
Definition: AK4GenJetFlavourInfos_cfi.py:7
jets_cff.partonFlavour
partonFlavour
Definition: jets_cff.py:590
reco::JetFlavourInfo::m_partonFlavour
int m_partonFlavour
Definition: JetFlavourInfo.h:60
AK4GenJetFlavourInfos_cfi.bHadrons
bHadrons
Definition: AK4GenJetFlavourInfos_cfi.py:6