CbmRoot
CbmLmvmCuts.h
Go to the documentation of this file.
1 
8 #ifndef CBM_LMVM_CUTS_H
9 #define CBM_LMVM_CUTS_H
10 
11 #include "TObject.h"
12 
13 #include <iostream>
14 
15 class CbmLmvmCuts {
16 public:
18  : fMomentumCut(0.)
19  , fChiPrimCut(0.)
20  , fPtCut(0.)
21  , fAngleCut(0.)
22  , fGammaCut(0.)
23  , fStCutAngle(0.)
24  , fStCutPP(0.)
25  , fTtCutAngle(0.)
26  , fTtCutPP(0.)
27  , fRtCutAngle(0.)
28  , fRtCutPP(0.)
29  , fMvd1CutP(0.)
30  , fMvd1CutD(0.)
31  , fMvd2CutP(0.)
32  , fMvd2CutD(0.) {
34  }
35 
36  /*
37  * Set default electron ID and analysis cuts.
38  */
39  void SetDefaultCuts() {
40  //electron ID cuts, we use CbmLitGlobalElectronId for identification
41  fMomentumCut = -1.; // if cut < 0 it is not used
42 
43  // analysis cuts auau
44  fPtCut = 0.2;
45  fAngleCut = 1.;
46  fChiPrimCut = 3.;
47  fGammaCut = 0.025;
48  //fStCutAngle = 1.5;
49  //fStCutPP = 1.5;
50  fStCutAngle = 2.4;
51  fStCutPP = 1.;
52  //fTtCutAngle = 0.75;
53  //fTtCutPP = 4.0;
54  fTtCutAngle = 1.5;
55  fTtCutPP = 1.7;
56  //fRtCutAngle = 1.0;
57  //fRtCutPP = 2.5;
58  fRtCutAngle = 1.2;
59  fRtCutPP = 1.6;
60  fMvd1CutP = 1.2;
61  fMvd1CutD = 0.4;
62  fMvd2CutP = 1.5;
63  fMvd2CutD = 0.5;
64 
65  // analysis cuts agag
66  /* fPtCut = 0.2;
67  fAngleCut = 1.;
68  fChiPrimCut = 3.;
69  fGammaCut = 0.025;
70  fStCutAngle = 2.4;
71  fStCutPP = 1.;
72  fTtCutAngle = 1.5;
73  fTtCutPP = 1.7;
74  fRtCutAngle = 1.2;
75  fRtCutPP = 1.6;
76  fMvd1CutP = 1.2;
77  fMvd1CutD = 0.4;
78  fMvd2CutP = 1.5;
79  fMvd2CutD = 0.5;
80  */
81  }
82 
83  /*
84  * Print out cuts.
85  */
86  void Print() {
87  std::cout << "Used cuts:" << std::endl
88  << "fChiPrimCut = " << fChiPrimCut << std::endl
89  << "fPtCut = " << fPtCut << std::endl
90  << "fAngleCut = " << fAngleCut << std::endl
91  << "fGammaCut = " << fGammaCut << std::endl
92  << "fStCut (ang,pp) = (" << fStCutAngle << "," << fStCutPP << ")"
93  << std::endl
94  << "fRtCut (ang,pp) = (" << fRtCutAngle << "," << fRtCutPP << ")"
95  << std::endl
96  << "fTtCut (ang,pp) = (" << fTtCutAngle << "," << fTtCutPP << ")"
97  << std::endl
98  << "fMvd1Cut (p,d) = (" << fMvd1CutP << "," << fMvd1CutD << ")"
99  << std::endl
100  << "fMvd2Cut (p,d) = (" << fMvd2CutP << "," << fMvd2CutD << ")"
101  << std::endl
102  << "fMomentumCut = " << fMomentumCut << std::endl;
103  }
104 
105 public:
106  // ID cuts, we use CbmLitGlobalElectronId for identification
107  Double_t fMomentumCut; // if cut < 0 then it will not be used
108 
109  // Analysis cuts
110  Double_t fChiPrimCut;
111  Double_t fPtCut;
112  Double_t fAngleCut;
113  Double_t fGammaCut;
114  Double_t fStCutAngle;
115  Double_t fStCutPP;
116  Double_t fTtCutAngle;
117  Double_t fTtCutPP;
118  Double_t fRtCutAngle;
119  Double_t fRtCutPP;
120  Double_t fMvd1CutP;
121  Double_t fMvd1CutD;
122  Double_t fMvd2CutP;
123  Double_t fMvd2CutD;
124 };
125 
126 #endif
CbmLmvmCuts::fMomentumCut
Double_t fMomentumCut
Definition: CbmLmvmCuts.h:107
CbmLmvmCuts::fTtCutAngle
Double_t fTtCutAngle
Definition: CbmLmvmCuts.h:116
CbmLmvmCuts::fChiPrimCut
Double_t fChiPrimCut
Definition: CbmLmvmCuts.h:110
CbmLmvmCuts::SetDefaultCuts
void SetDefaultCuts()
Definition: CbmLmvmCuts.h:39
CbmLmvmCuts::fMvd2CutP
Double_t fMvd2CutP
Definition: CbmLmvmCuts.h:122
CbmLmvmCuts::fRtCutAngle
Double_t fRtCutAngle
Definition: CbmLmvmCuts.h:118
CbmLmvmCuts::fMvd1CutP
Double_t fMvd1CutP
Definition: CbmLmvmCuts.h:120
CbmLmvmCuts::fGammaCut
Double_t fGammaCut
Definition: CbmLmvmCuts.h:113
CbmLmvmCuts::fMvd2CutD
Double_t fMvd2CutD
Definition: CbmLmvmCuts.h:123
CbmLmvmCuts::fMvd1CutD
Double_t fMvd1CutD
Definition: CbmLmvmCuts.h:121
CbmLmvmCuts::fPtCut
Double_t fPtCut
Definition: CbmLmvmCuts.h:111
CbmLmvmCuts::CbmLmvmCuts
CbmLmvmCuts()
Definition: CbmLmvmCuts.h:17
CbmLmvmCuts
Definition: CbmLmvmCuts.h:15
CbmLmvmCuts::fRtCutPP
Double_t fRtCutPP
Definition: CbmLmvmCuts.h:119
CbmLmvmCuts::fAngleCut
Double_t fAngleCut
Definition: CbmLmvmCuts.h:112
CbmLmvmCuts::fStCutAngle
Double_t fStCutAngle
Definition: CbmLmvmCuts.h:114
CbmLmvmCuts::fStCutPP
Double_t fStCutPP
Definition: CbmLmvmCuts.h:115
CbmLmvmCuts::Print
void Print()
Definition: CbmLmvmCuts.h:86
CbmLmvmCuts::fTtCutPP
Double_t fTtCutPP
Definition: CbmLmvmCuts.h:117