CMS 3D CMS Logo

JetFlavourInfo.h
Go to the documentation of this file.
1 #ifndef SimDataFormats_JetMatching_JetFlavourInfo_H
2 #define SimDataFormats_JetMatching_JetFlavourInfo_H
3 
4 #include <vector>
7 
8 namespace reco
9 {
20 {
21  public:
23  m_hadronFlavour(0),
24  m_partonFlavour(0) { }
25  JetFlavourInfo(const int hadronFlavour, const int partonFlavour) :
26  m_hadronFlavour(hadronFlavour),
27  m_partonFlavour(partonFlavour) { }
33  const int hadronFlavour,
34  const int partonFlavour
35  ) :
36  m_bHadrons(bHadrons),
37  m_cHadrons(cHadrons),
38  m_partons(partons),
39  m_leptons(leptons),
40  m_hadronFlavour(hadronFlavour),
41  m_partonFlavour(partonFlavour) { }
42 
44  const GenParticleRefVector & getbHadrons() const { return m_bHadrons; }
46  const GenParticleRefVector & getcHadrons() const { return m_cHadrons; }
48  const GenParticleRefVector & getPartons() const { return m_partons; }
50  const GenParticleRefVector & getLeptons() const { return m_leptons; }
52  const int getHadronFlavour() const { return m_hadronFlavour; }
54  const int getPartonFlavour() const { return m_partonFlavour; }
55 
60 
61  private:
68 };
69 
70 }
71 #endif
void setPartonFlavour(const int partonFlavour)
Set the parton-based flavour.
const GenParticleRefVector & getbHadrons() const
Return a vector of GenParticleRef&#39;s to b hadrons clustered inside the jet.
GenParticleRefVector m_cHadrons
void setHadronFlavour(const int hadronFlavour)
Set the hadron-based flavour.
const GenParticleRefVector & getcHadrons() const
Return a vector of GenParticleRef&#39;s to c hadrons clustered inside the jet.
GenParticleRefVector m_bHadrons
Class storing the jet flavour information.
const int getPartonFlavour() const
Return the parton-based flavour.
const GenParticleRefVector & getLeptons() const
Return a vector of GenParticleRef&#39;s to leptons clustered inside the jet.
JetFlavourInfo(const GenParticleRefVector &bHadrons, const GenParticleRefVector &cHadrons, const GenParticleRefVector &partons, const GenParticleRefVector &leptons, const int hadronFlavour, const int partonFlavour)
hadronFlavour
Definition: jets_cff.py:264
JetFlavourInfo(const int hadronFlavour, const int partonFlavour)
const GenParticleRefVector & getPartons() const
Return a vector of GenParticleRef&#39;s to partons clustered inside the jet.
GenParticleRefVector m_leptons
fixed size matrix
partonFlavour
Definition: jets_cff.py:263
GenParticleRefVector m_partons
const int getHadronFlavour() const
Return the hadron-based flavour.