test
CMS 3D CMS Logo

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