Class Reference for E1039 Core & Analysis Software
SQDimuon_v1.cxx
Go to the documentation of this file.
1 #include "SQDimuon_v1.h"
2 #include <GlobalConsts.h>
3 
4 using namespace std;
5 
7  : _id(-1)
8  , _rec_id(-1)
9  , _pdg_id(0)
10  , _track_id_pos(0)
11  , _track_id_neg(0)
12  , _pos(0,0,0)
13  , _mom(0,0,0,0)
14  , _mom_pos(0,0,0,0)
15  , _mom_neg(0,0,0,0)
16 {
17  ;
18 }
19 
21 {
22  ;
23 }
24 
25 void SQDimuon_v1::identify(std::ostream& os) const
26 {
27  ;
28 }
29 
31 {
32  ;
33 }
34 
35 double SQDimuon_v1::get_x1() const
36 {
37  TLorentzVector p_beam(0., 0., sqrt(E_BEAM*E_BEAM - M_P*M_P), E_BEAM);
38  TLorentzVector p_target(0., 0., 0., M_P);
39 
40  TLorentzVector p_cms = p_beam + p_target;
41  TLorentzVector p_sum = _mom_pos + _mom_neg;
42 
43  return (p_target*p_sum)/(p_target*p_cms);
44 }
45 
46 double SQDimuon_v1::get_x2() const
47 {
48  TLorentzVector p_beam(0., 0., sqrt(E_BEAM*E_BEAM - M_P*M_P), E_BEAM);
49  TLorentzVector p_target(0., 0., 0., M_P);
50 
51  TLorentzVector p_cms = p_beam + p_target;
52  TLorentzVector p_sum = _mom_pos + _mom_neg;
53 
54  return (p_beam*p_sum)/(p_beam*p_cms);
55 }
56 
57 double SQDimuon_v1::get_xf() const
58 {
59  TLorentzVector p_beam(0., 0., sqrt(E_BEAM*E_BEAM - M_P*M_P), E_BEAM);
60  TLorentzVector p_target(0., 0., 0., M_P);
61 
62  TLorentzVector p_cms = p_beam + p_target;
63  TLorentzVector p_sum = _mom_pos + _mom_neg;
64 
65  double mass = p_sum.M();
66  double sqrts = p_cms.M();
67 
68  return 2.*p_sum.Pz()/sqrts/(1. - mass*mass/sqrts/sqrts);
69 }
70 
#define E_BEAM
Definition: GlobalConsts.h:14
#define M_P
Definition: GlobalConsts.h:13
TLorentzVector _mom_pos
Definition: SQDimuon_v1.h:57
virtual double get_xf() const
Definition: SQDimuon_v1.cxx:57
virtual double get_x1() const
Definition: SQDimuon_v1.cxx:35
void Reset()
Clear Event.
Definition: SQDimuon_v1.cxx:30
TLorentzVector _mom_neg
Definition: SQDimuon_v1.h:58
virtual ~SQDimuon_v1()
Definition: SQDimuon_v1.cxx:20
virtual double get_x2() const
Definition: SQDimuon_v1.cxx:46
void identify(std::ostream &os=std::cout) const
Definition: SQDimuon_v1.cxx:25