CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
JetFlavour.h
Go to the documentation of this file.
1 #ifndef DataFormats_JetMatching_JetFlavour_H
2 #define DataFormats_JetMatching_JetFlavour_H
3 
4 #include <vector>
7 
8 namespace reco {
16  class JetFlavour {
17  public:
23  struct Leptons {
24  int electron;
25  int muon;
26  int tau;
27 
28  Leptons() : electron(0), muon(0), tau(0) {}
29  };
30 
31  JetFlavour(void) {}
32  JetFlavour(const LorentzVector& lv, const Point& pt, int fl, const Leptons& le)
33  : m_partonMomentum(lv), m_partonVertex(pt), m_flavour(fl), m_leptons(le) {}
34  JetFlavour(const LorentzVector& lv, const Point& pt, int fl)
35  : m_partonMomentum(lv), m_partonVertex(pt), m_flavour(fl) {}
36 
38  const Point getPartonVertex() const { return m_partonVertex; }
39  const int getFlavour() const { return m_flavour; }
40  const Leptons getLeptons() const { return m_leptons; }
41 
42  private:
44  Point m_partonVertex; // is it needed?
45  int m_flavour;
47  };
48 
49 } // namespace reco
50 #endif
JetFlavour(const LorentzVector &lv, const Point &pt, int fl, const Leptons &le)
Definition: JetFlavour.h:32
LorentzVector m_partonMomentum
Definition: JetFlavour.h:43
const int getFlavour() const
Definition: JetFlavour.h:39
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
Definition: LorentzVector.h:29
math::XYZTLorentzVector LorentzVector
Lorentz vector.
Definition: JetFlavour.h:19
JetFlavour(const LorentzVector &lv, const Point &pt, int fl)
Definition: JetFlavour.h:34
lepton info struct
Definition: JetFlavour.h:23
Point m_partonVertex
Definition: JetFlavour.h:44
const Leptons getLeptons() const
Definition: JetFlavour.h:40
XYZPointD XYZPoint
point in space with cartesian internal representation
Definition: Point3D.h:12
Leptons m_leptons
Definition: JetFlavour.h:46
math::XYZPoint Point
point in the space
Definition: JetFlavour.h:21
const LorentzVector getLorentzVector() const
Definition: JetFlavour.h:37
const Point getPartonVertex() const
Definition: JetFlavour.h:38
Structure Point Contains parameters of Gaussian fits to DMRs.
Definition: DMRtrends.cc:57