BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
8{
9 public:
11
12 virtual ~BmnParticlePairCut() { ; }
13
14 void SetDca0(Double_t v) { fDCA0 = v; }
15
16 void SetDca1(Double_t v) { fDCA1 = v; }
17
18 void SetDca2(Double_t v) { fDCA2 = v; }
19
20 void SetDca12(Double_t v) { fDCA12 = v; }
21
22 void SetPath(Double_t v) { fPath = v; }
23
24 void SetNHitsGemPos(Int_t nHits) { fNhitsGemPos = nHits; }
25
26 void SetNHitsGemNeg(Int_t nHits) { fNhitsGemNeg = nHits; }
27
29
31
32 void SetMass(Double_t m) { fMass = m; }
33
34 void SetWidth(Double_t w) { fWidth = w; }
35
36 void SetOrigin(TString orig) { fOrigin = orig; }
37
38 Double_t dca0() { return fDCA0; }
39
40 Double_t dca12() { return fDCA12; }
41
42 Double_t dca1() { return fDCA1; }
43
44 Double_t dca2() { return fDCA2; }
45
46 Double_t path() { return fPath; }
47
49
51
53
55
56 Double_t mass() { return fMass; }
57
58 Double_t width() { return fWidth; }
59
60 // Useful "natural" getters ..
61
63
64 Double_t B() { return background(); }
65
67 {
68 Double_t tmp = T() - B();
69 return tmp;
70 }
71
72 TString origin() { return fOrigin; }
73
74 // Overloading == ...
75
77 {
78
79 // Check assignement to itself ...
80 if (this == &cut)
81 return kTRUE;
82
83 if (fDCA0 == cut.dca0() && fDCA1 == cut.dca1() && fDCA2 == cut.dca2() && fDCA12 == cut.dca12()
84 && fPath == cut.path() && fNhitsGemPos == cut.nHitsGemPos() && fNhitsGemNeg == cut.nHitsGemNeg())
85 return kTRUE;
86 else
87 return kFALSE;
88 }
89
90 private:
95
97
100
103
106
107 TString fOrigin; // "source" if defined as wide, otherwise is "improved"
108
110};
111
112#endif
__m128 v
Definition P4_F32vec4.h:1
__m128 m
Definition P4_F32vec4.h:27
bool Bool_t
int Int_t
constexpr Bool_t kFALSE
double Double_t
constexpr Bool_t kTRUE
#define ClassDef(name, id)
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)