TruthVariables.hh
Go to the documentation of this file.
1 
4 #pragma once
5 
9 #include "boca/units/Units.hh"
10 
11 namespace boca
12 {
13 
19 {
20 
21 public:
22 
23  Momentum TopPt() const {
24  return top_.Pt();
25  }
26 
27  Momentum BottomPt() const {
28  return bottom_.Pt();
29  }
30 
31  Momentum WPt() const {
32  return W_.Pt();
33  }
34 
35  Momentum Quark1Pt() const {
36  return quark_1_.Pt();
37  }
38 
39  Momentum Quark2Pt() const {
40  return quark_2_.Pt();
41  }
42 
43  Angle DeltaRTop() const {
44  return W_.DeltaRTo(bottom_) ;
45  }
46 
47  double RhoTop() const {
48  return 2_rad * MassOf(Id::top) / DeltaRTop() / TopPt();
49  }
50 
51  double RhoW() const {
52  return 2_rad * MassOf(Id::W) / DeltaRW() / WPt();
53  }
54 
55  Angle DeltaRW() const {
56  return quark_1_.DeltaRTo(quark_2_) ;
57  }
58 
59  void SetTop(Particle const& top) {
60  top_ = top;
61  }
62 
63  void SetW(Particle const& W) {
64  W_ = W;
65  }
66 
67  void SetBottom(Particle const& bottom) {
68  bottom_ = bottom;
69  }
70 
71  void SetQuark1(Particle const& quark_1) {
72  quark_1_ = quark_1;
73  }
74 
75  void SetQuark2(Particle const& quark_2) {
76  quark_2_ = quark_2;
77  }
78 
79 private:
80 
81  Particle top_;
82  Particle W_;
83  Particle bottom_;
84  Particle quark_1_;
85  Particle quark_2_;
86 
87 };
88 
89 
90 }
91 
92 
boost::units::quantity< boost::units::si::plane_angle > Angle
Angle measured in radian.
Definition: Si.hh:35
void SetQuark1(Particle const &quark_1)
Definition: TruthVariables.hh:71
void SetBottom(Particle const &bottom)
Definition: TruthVariables.hh:67
Definition: Particle.hh:12
Bottom Quark.
void SetQuark2(Particle const &quark_2)
Definition: TruthVariables.hh:75
Angle DeltaRTo(PseudoJet const &jet) const
Difference to a jet.
Definition: PseudoJet.cpp:173
Momentum Quark1Pt() const
Definition: TruthVariables.hh:35
Momentum BottomPt() const
Definition: TruthVariables.hh:27
Momentum WPt() const
Definition: TruthVariables.hh:31
Boosted Collider Analysis.
Definition: Analysis.hh:15
double RhoW() const
Definition: TruthVariables.hh:51
void SetTop(Particle const &top)
Definition: TruthVariables.hh:59
Angle DeltaRW() const
Definition: TruthVariables.hh:55
Mass MassOf(Id id)
Mass of particle with given Id.
Definition: Id.cpp:103
void SetW(Particle const &W)
Definition: TruthVariables.hh:63
Momentum Pt() const
Transverse Momentum.
Definition: PseudoJet.cpp:93
Top Quark.
Definition: Identification.hh:10
Variables for truth level analyses.
Definition: TruthVariables.hh:18
Energy Momentum
Momentum measured in electronvolt.
Definition: ElectronVolt.hh:68
Angle DeltaRTop() const
Definition: TruthVariables.hh:43
Momentum TopPt() const
Definition: TruthVariables.hh:23
double RhoTop() const
Definition: TruthVariables.hh:47
Momentum Quark2Pt() const
Definition: TruthVariables.hh:39