CbmRoot
CbmAnaConversionCutSettings.h
Go to the documentation of this file.
1 
7 #ifndef CBM_ANA_CONVERSION_CUT_SETTINGS
8 #define CBM_ANA_CONVERSION_CUT_SETTINGS
9 
10 #include "CbmMCTrack.h"
11 #include "TLorentzVector.h"
12 #include "TMath.h"
13 
14 #define M2E 2.6112004954086e-7
15 
17 public:
18  /*
19  * Calculate cut for opening angle between electrons
20  */
21  static Double_t CalcOpeningAngleCut(Double_t pt) {
22  Double_t cut = 0;
23  //cut = 1.5 - 0.5 * pt;
24  cut = 1.8 - 0.6 * pt;
25  return cut;
26  }
27 
28 
29  static Double_t CalcOpeningAngleCutAlt1(Double_t pt) {
30  Double_t cut = 0;
31  cut = 1.5 - 0.5 * pt;
32  return cut;
33  }
34 
35 
36  static Double_t CalcOpeningAngleCutAlt2(Double_t /*pt*/) {
37  Double_t cut = 0;
38  cut = 1.8;
39  return cut;
40  }
41 
42 
43  static Double_t CalcOpeningAngleCutAlt3(Double_t /*pt*/) {
44  Double_t cut = 0;
45  cut = 1.5;
46  return cut;
47  }
48 
49 
50  static Double_t CalcOpeningAngleCutAlt4(Double_t pt) {
51  Double_t cut = 0;
52  if (pt <= 1) cut = 1.5 - 0.5 * pt;
53  if (pt > 1) cut = 1.0;
54  return cut;
55  }
56 
57 
58  static Double_t CalcOpeningAngleCutAlt5(Double_t pt) {
59  Double_t cut = 0;
60  if (pt <= 1) cut = 1.0 + 1.0 * pt;
61  if (pt > 1) cut = 2.0;
62  return cut;
63  }
64 
65 
66  /*
67  * Calculate cut for chi for reconstructed momenta
68  */
69  static Double_t CalcChiCut(Double_t pt) {
70  Double_t cut = 0;
71  if (pt < 0.4) { cut = 31. - 70. * pt; }
72  if (pt >= 0.4) { cut = 3; }
73  return cut;
74  }
75 
76 
77  static Double_t CalcChiCutAlt1(Double_t /*pt*/) {
78  Double_t cut = 0;
79  cut = 3;
80  return cut;
81  }
82 
83 
84  static Double_t CalcChiCutAlt2(Double_t pt) {
85  Double_t cut = 0;
86  if (pt < 0.4) { cut = 15. - 30. * pt; }
87  if (pt >= 0.4) { cut = 3; }
88  return cut;
89  }
90 
91 
92  static Double_t CalcChiCutAlt3(Double_t /*pt*/) {
93  Double_t cut = 0;
94  cut = 4;
95  return cut;
96  }
97 };
98 
99 #endif
CbmAnaConversionCutSettings::CalcOpeningAngleCut
static Double_t CalcOpeningAngleCut(Double_t pt)
Definition: CbmAnaConversionCutSettings.h:21
CbmAnaConversionCutSettings::CalcOpeningAngleCutAlt2
static Double_t CalcOpeningAngleCutAlt2(Double_t)
Definition: CbmAnaConversionCutSettings.h:36
CbmAnaConversionCutSettings::CalcOpeningAngleCutAlt1
static Double_t CalcOpeningAngleCutAlt1(Double_t pt)
Definition: CbmAnaConversionCutSettings.h:29
CbmAnaConversionCutSettings::CalcOpeningAngleCutAlt5
static Double_t CalcOpeningAngleCutAlt5(Double_t pt)
Definition: CbmAnaConversionCutSettings.h:58
CbmAnaConversionCutSettings::CalcChiCut
static Double_t CalcChiCut(Double_t pt)
Definition: CbmAnaConversionCutSettings.h:69
CbmAnaConversionCutSettings::CalcChiCutAlt2
static Double_t CalcChiCutAlt2(Double_t pt)
Definition: CbmAnaConversionCutSettings.h:84
CbmMCTrack.h
CbmAnaConversionCutSettings
Definition: CbmAnaConversionCutSettings.h:16
CbmAnaConversionCutSettings::CalcOpeningAngleCutAlt3
static Double_t CalcOpeningAngleCutAlt3(Double_t)
Definition: CbmAnaConversionCutSettings.h:43
CbmAnaConversionCutSettings::CalcOpeningAngleCutAlt4
static Double_t CalcOpeningAngleCutAlt4(Double_t pt)
Definition: CbmAnaConversionCutSettings.h:50
CbmAnaConversionCutSettings::CalcChiCutAlt3
static Double_t CalcChiCutAlt3(Double_t)
Definition: CbmAnaConversionCutSettings.h:92
CbmAnaConversionCutSettings::CalcChiCutAlt1
static Double_t CalcChiCutAlt1(Double_t)
Definition: CbmAnaConversionCutSettings.h:77