BmnRoot
Loading...
Searching...
No Matches
BmnParticlePair.cxx
Go to the documentation of this file.
1// @(#)bmnroot/physics/particles:$Id$
2// Author: Pavel Batyuk <pavel.batyuk@jinr.ru> 2017-06-20
3
5// //
6// BmnParticlePair //
7// //
8// A class to consider selected pair of particles //
9// //
11
12#include "BmnParticlePair.h"
13
15: fInvMass(0.),
16 fAngleDecayProducts(0.),
17 fBeta400Part1(0.), fBeta400Part2(0.),
18 fBeta700Part1(0.), fBeta700Part2(0.),
19 fV0X(0.), fV0Y(0.), fV0Z(0.),
20 fDCA0(0.),
21 fDCA1(0.),
22 fDCA2(0.),
23 fDCA12(0.),
24 fPath(0.),
25 fMomPart1(0.), fMomPart2(0.),
26 fEtaPart1(0.), fEtaPart2(0.),
27 fNHitsSilPart1(0), fNHitsGemPart1(0),
28 fNHitsSilPart2(0),
29 fNHitsGemPart2(0),
30 fTxPart1(-1.), fTxPart2(-1.),
31 fTyPart1(-1.), fTyPart2(-1.),
32 fChi2Part1(0.), fChi2Part2(0.),
33 fNDFPart1(0.), fNDFPart2(0.),
34 fAlpha(0.), fPtPodol(0.),
35 fMCTrackIdPart1(-1), fMCTrackIdPart2(-1),
36 fRecoTrackIdPart1(-1), fRecoTrackIdPart2(-1)
37{
38 fMCMomPart1.SetXYZ(0., 0., 0.);
39 fMCMomPart2.SetXYZ(0., 0., 0.);
40 fRecoMomPart1.SetXYZ(0., 0., 0.);
41 fRecoMomPart2.SetXYZ(0., 0., 0.);
42}
43
44// Setters
45
46void BmnParticlePair::SetMCMomPart1(Double_t px, Double_t py, Double_t pz) {
47 fMCMomPart1.SetXYZ(px, py, pz);
48}
49
50void BmnParticlePair::SetMCMomPart2(Double_t px, Double_t py, Double_t pz) {
51 fMCMomPart2.SetXYZ(px, py, pz);
52}
53
54// Getters
55
57 return fMCMomPart1;
58}
59
61 return fMCMomPart2;
62}
63
65 return fMCTrackIdPart1;
66}
67
69 return fMCTrackIdPart2;
70}
71
73 return fRecoTrackIdPart1;
74}
75
77 return fRecoTrackIdPart2;
78}
79
81 fMCTrackIdPart1 = id;
82}
83
85 fMCTrackIdPart2 = id;
86}
87
89 fRecoTrackIdPart1 = id;
90}
91
93 fRecoTrackIdPart2 = id;
94}
95
void SetMCTrackIdPart2(Int_t id)
TVector3 GetMCMomPart2()
void SetRecoTrackIdPart2(Int_t id)
void SetMCMomPart2(Double_t px, Double_t py, Double_t pz)
void SetMCMomPart1(Double_t px, Double_t py, Double_t pz)
void SetMCTrackIdPart1(Int_t id)
virtual ~BmnParticlePair()
void SetRecoTrackIdPart1(Int_t id)
TVector3 GetMCMomPart1()