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 <SimDataFormats/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 (void)
 
 JetFlavourInfo (const int hadronFlavour, const int partonFlavour)
 
 JetFlavourInfo (const GenParticleRefVector &bHadrons, const GenParticleRefVector &cHadrons, const GenParticleRefVector &partons, const GenParticleRefVector &leptons, const int hadronFlavour, const int partonFlavour)
 
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

reco::JetFlavourInfo::JetFlavourInfo ( void  )
inline

Definition at line 20 of file JetFlavourInfo.h.

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

Definition at line 23 of file JetFlavourInfo.h.

29  : m_bHadrons(bHadrons),
30  m_cHadrons(cHadrons),
31  m_partons(partons),
32  m_leptons(leptons),
GenParticleRefVector m_cHadrons
GenParticleRefVector m_bHadrons
hadronFlavour
Definition: jets_cff.py:551
GenParticleRefVector m_leptons
partonFlavour
Definition: jets_cff.py:550
GenParticleRefVector m_partons

Member Function Documentation

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.

References m_bHadrons.

Referenced by GenHFHadronMatcher::findHadronJets().

37 { return m_bHadrons; }
GenParticleRefVector m_bHadrons
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.

References m_cHadrons.

Referenced by GenHFHadronMatcher::findHadronJets().

39 { return m_cHadrons; }
GenParticleRefVector m_cHadrons
const int reco::JetFlavourInfo::getHadronFlavour ( ) const
inline

Return the hadron-based flavour.

Definition at line 45 of file JetFlavourInfo.h.

References m_hadronFlavour.

45 { return m_hadronFlavour; }
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.

References m_leptons.

43 { return m_leptons; }
GenParticleRefVector m_leptons
const int reco::JetFlavourInfo::getPartonFlavour ( ) const
inline

Return the parton-based flavour.

Definition at line 47 of file JetFlavourInfo.h.

References m_partonFlavour.

47 { return m_partonFlavour; }
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.

References m_partons.

41 { return m_partons; }
GenParticleRefVector m_partons
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.

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

GenParticleRefVector reco::JetFlavourInfo::m_bHadrons
private

Definition at line 55 of file JetFlavourInfo.h.

Referenced by getbHadrons().

GenParticleRefVector reco::JetFlavourInfo::m_cHadrons
private

Definition at line 56 of file JetFlavourInfo.h.

Referenced by getcHadrons().

int reco::JetFlavourInfo::m_hadronFlavour
private

Definition at line 59 of file JetFlavourInfo.h.

Referenced by getHadronFlavour(), and setHadronFlavour().

GenParticleRefVector reco::JetFlavourInfo::m_leptons
private

Definition at line 58 of file JetFlavourInfo.h.

Referenced by getLeptons().

int reco::JetFlavourInfo::m_partonFlavour
private

Definition at line 60 of file JetFlavourInfo.h.

Referenced by getPartonFlavour(), and setPartonFlavour().

GenParticleRefVector reco::JetFlavourInfo::m_partons
private

Definition at line 57 of file JetFlavourInfo.h.

Referenced by getPartons().