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 {
19  public:
22  : m_hadronFlavour(hadronFlavour), m_partonFlavour(partonFlavour) {}
27  const int hadronFlavour,
28  const int partonFlavour)
29  : m_bHadrons(bHadrons),
30  m_cHadrons(cHadrons),
31  m_partons(partons),
32  m_leptons(leptons),
33  m_hadronFlavour(hadronFlavour),
34  m_partonFlavour(partonFlavour) {}
35 
37  const GenParticleRefVector& getbHadrons() const { return m_bHadrons; }
39  const GenParticleRefVector& getcHadrons() const { return m_cHadrons; }
41  const GenParticleRefVector& getPartons() const { return m_partons; }
43  const GenParticleRefVector& getLeptons() const { return m_leptons; }
45  const int getHadronFlavour() const { return m_hadronFlavour; }
47  const int getPartonFlavour() const { return m_partonFlavour; }
48 
53 
54  private:
61  };
62 
63 } // namespace reco
64 #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:581
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:580
GenParticleRefVector m_partons
const int getHadronFlavour() const
Return the hadron-based flavour.