BmnRoot
Loading...
Searching...
No Matches
BmnParticlePairCut.h
Go to the documentation of this file.
1#include <TObject.h>
2#include <TString.h>
3
4#ifndef BMNPARTICLEPAIRCUT_H
5#define BMNPARTICLEPAIRCUT_H 1
6
7class BmnParticlePairCut : public TObject {
8public:
9
11
13 ;
14 }
15
16 void SetDca0(Double_t v) {
17 fDCA0 = v;
18 }
19
20 void SetDca1(Double_t v) {
21 fDCA1 = v;
22 }
23
24 void SetDca2(Double_t v) {
25 fDCA2 = v;
26 }
27
28 void SetDca12(Double_t v) {
29 fDCA12 = v;
30 }
31
32 void SetPath(Double_t v) {
33 fPath = v;
34 }
35
36 void SetNHitsGemPos(Int_t nHits) {
37 fNhitsGemPos = nHits;
38 }
39
40 void SetNHitsGemNeg(Int_t nHits) {
41 fNhitsGemNeg = nHits;
42 }
43
44 void SetBackground(Double_t b) {
45 fBackground = b;
46 }
47
48 void SetSignalAndBackground(Double_t sb) {
49 fSignalAndBackground = sb;
50 }
51
52 void SetMass(Double_t m) {
53 fMass = m;
54 }
55
56 void SetWidth(Double_t w) {
57 fWidth = w;
58 }
59
60 void SetOrigin(TString orig) {
61 fOrigin = orig;
62 }
63
64 Double_t dca0() {
65 return fDCA0;
66 }
67
68 Double_t dca12() {
69 return fDCA12;
70 }
71
72 Double_t dca1() {
73 return fDCA1;
74 }
75
76 Double_t dca2() {
77 return fDCA2;
78 }
79
80 Double_t path() {
81 return fPath;
82 }
83
84 Int_t nHitsGemPos() {
85 return fNhitsGemPos;
86 }
87
88 Int_t nHitsGemNeg() {
89 return fNhitsGemNeg;
90 }
91
92 Double_t background() {
93 return fBackground;
94 }
95
97 return fSignalAndBackground;
98 }
99
100 Double_t mass() {
101 return fMass;
102 }
103
104 Double_t width() {
105 return fWidth;
106 }
107
108 // Useful "natural" getters ..
109
110 Double_t T() {
111 return signalAndBackground();
112 }
113
114 Double_t B() {
115 return background();
116 }
117
118 Double_t S() {
119 Double_t tmp = T() - B();
120 return tmp;
121 }
122
123 TString origin() {
124 return fOrigin;
125 }
126
127 // Overloading == ...
128
130
131 // Check assignement to itself ...
132 if (this == &cut)
133 return kTRUE;
134
135 if (fDCA0 == cut.dca0() &&
136 fDCA1 == cut.dca1() &&
137 fDCA2 == cut.dca2() &&
138 fDCA12 == cut.dca12() &&
139 fPath == cut.path() &&
140 fNhitsGemPos == cut.nHitsGemPos() &&
141 fNhitsGemNeg == cut.nHitsGemNeg())
142 return kTRUE;
143 else
144 return kFALSE;
145 }
146
147private:
148
149 Double_t fDCA0;
150 Double_t fDCA12;
151 Double_t fDCA1;
152 Double_t fDCA2;
153
154 Double_t fPath;
155
156 Int_t fNhitsGemPos;
157 Int_t fNhitsGemNeg;
158
159 Double_t fBackground;
160 Double_t fSignalAndBackground;
161
162 Double_t fMass;
163 Double_t fWidth;
164
165 TString fOrigin; // "source" if defined as wide, otherwise is "improved"
166
167 ClassDef(BmnParticlePairCut, 1)
168};
169
170#endif
__m128 v
Definition P4_F32vec4.h:1
__m128 m
Definition P4_F32vec4.h:27
void SetNHitsGemNeg(Int_t nHits)
void SetOrigin(TString orig)
void SetSignalAndBackground(Double_t sb)
void SetNHitsGemPos(Int_t nHits)
Bool_t operator==(BmnParticlePairCut &cut)
void SetDca1(Double_t v)
void SetBackground(Double_t b)
void SetDca0(Double_t v)
void SetPath(Double_t v)
void SetDca12(Double_t v)
void SetWidth(Double_t w)
void SetDca2(Double_t v)
void SetMass(Double_t m)