CbmRoot
CbmRichGeoTestOpt.h
Go to the documentation of this file.
1 
7 #ifndef CBM_RICH_GEO_TEST_OPT
8 #define CBM_RICH_GEO_TEST_OPT
9 
10 #include "TFile.h"
11 #include "TObject.h"
12 
13 #include "CbmHistManager.h"
14 
15 using namespace std;
16 
24 };
25 
32 };
33 
34 class CbmRichGeoTestOpt : public TObject {
35 public:
40 
44  virtual ~CbmRichGeoTestOpt();
45 
46  void SetFilePathes(vector<string> geoTestPathes,
47  vector<string> geoTestOmega3Pathes,
48  vector<string> geoTestOmega8Pathes,
49  vector<string> urqmdTestPathes,
50  vector<string> recoQaBoxPathes,
51  vector<string> recoQaUrqmdPathes);
52 
53  void Draw(Option_t* option = "");
54 
55  string GetFilePath(CbmRichGeoTestOptFileEnum fileType, int iFile);
56  int GetNofFiles();
57  string GetFileEnumName(CbmRichGeoTestOptFileEnum fileEnum);
58 
59  pair<double, double> H1MeanRms(CbmRichGeoTestOptFileEnum fileType,
60  int iFile,
61  const string& histName);
62  pair<double, double> H2ProjYMeanRms(CbmRichGeoTestOptFileEnum fileType,
63  int iFile,
64  const string& histName);
65  double HEntries(CbmRichGeoTestOptFileEnum fileEnum,
66  int iFile,
67  const string& histName);
68 
69  void DrawMeanRms(CbmRichGeoTestOptFileEnum fileEnum,
70  const string& histName,
72  const string& titleY,
73  double minY,
74  double maxY,
75  int nofParts,
76  int nofFilesPart);
77  void DrawMeanEff(CbmRichGeoTestOptFileEnum fileEnum,
78  const string& histName1,
79  const string& histName2,
80  const string& titleY,
81  double minY,
82  double maxY,
83  int nofParts,
84  int nofFilesPart,
85  double effCoeff);
86  void DrawLines(bool drawCamTilt, bool drawCamY, double minY, double maxY);
87  void DrawManyH1(const vector<TH1*>& hist,
88  const vector<string>& legend,
89  double minY,
90  double maxY);
91 
92  void DrawMeanRms2D(CbmRichGeoTestOptFileEnum fileEnum,
93  const string& histName,
95  const string& titleZ,
96  double minZ,
97  double maxZ,
98  int precision);
99 
100  void DrawMeanEff2D(CbmRichGeoTestOptFileEnum fileEnum,
101  const string& histName1,
102  const string& histName2,
103  const string& titleZ,
104  double minZ,
105  double maxZ,
106  double effCoeff,
107  int precision);
108 
109  void DrawTextLabelsH2(TH2* h, int precision);
110 
111  void DrawReferenceLineH1(double value);
112 
113  void DrawReferenceBoxH2(double centerX,
114  double centerY,
115  double widthX,
116  double widthY);
117 
118  void SetOutputDir(const string& outDir) { fOutputDir = outDir; }
119 
120  void SetReferenceInd(int refInd) { fReferenceInd = refInd; }
121 
122  void SetDrawReference(bool drawRef) { fDrawReference = drawRef; }
123 
124 private:
125  vector<string> fGeoTestBoxPathes;
126  vector<string> fGeoTestOmega3Pathes;
127  vector<string> fGeoTestOmega8Pathes;
128  vector<string> fUrqmdTestPathes;
129  vector<string> fRecoQaBoxPathes;
130  vector<string> fRecoQaUrqmdPathes;
131 
134 
136 
137  string fOutputDir;
138 
139  ClassDef(CbmRichGeoTestOpt, 1)
140 };
141 
142 #endif
CbmRichGeoTestOpt::fUrqmdTestPathes
vector< string > fUrqmdTestPathes
Definition: CbmRichGeoTestOpt.h:128
kHEntriesHist
@ kHEntriesHist
Definition: CbmRichGeoTestOpt.h:31
h
Generates beam ions for transport simulation.
Definition: CbmBeamGenerator.h:17
CbmRichGeoTestOptHistEnum
CbmRichGeoTestOptHistEnum
Definition: CbmRichGeoTestOpt.h:26
CbmRichGeoTestOpt::SetDrawReference
void SetDrawReference(bool drawRef)
Definition: CbmRichGeoTestOpt.h:122
CbmRichGeoTestOpt::fRecoQaBoxPathes
vector< string > fRecoQaBoxPathes
Definition: CbmRichGeoTestOpt.h:129
kH1RmsHist
@ kH1RmsHist
Definition: CbmRichGeoTestOpt.h:28
kGeoTestBoxFile
@ kGeoTestBoxFile
Definition: CbmRichGeoTestOpt.h:18
kH1MeanHist
@ kH1MeanHist
Definition: CbmRichGeoTestOpt.h:27
CbmRichGeoTestOpt::fRecoQaUrqmdPathes
vector< string > fRecoQaUrqmdPathes
Definition: CbmRichGeoTestOpt.h:130
CbmRichGeoTestOpt::fOutputDir
string fOutputDir
Definition: CbmRichGeoTestOpt.h:137
CbmHistManager.h
Histogram manager.
CbmRichGeoTestOpt::SetOutputDir
void SetOutputDir(const string &outDir)
Definition: CbmRichGeoTestOpt.h:118
CbmHistManager
Histogram manager.
Definition: CbmHistManager.h:41
kGeoTestOmega3File
@ kGeoTestOmega3File
Definition: CbmRichGeoTestOpt.h:19
CbmRichGeoTestOpt::SetReferenceInd
void SetReferenceInd(int refInd)
Definition: CbmRichGeoTestOpt.h:120
CbmRichGeoTestOptFileEnum
CbmRichGeoTestOptFileEnum
Definition: CbmRichGeoTestOpt.h:17
kRecoQaBoxFile
@ kRecoQaBoxFile
Definition: CbmRichGeoTestOpt.h:22
kH2RmsHist
@ kH2RmsHist
Definition: CbmRichGeoTestOpt.h:30
kRecoQaUrqmdFile
@ kRecoQaUrqmdFile
Definition: CbmRichGeoTestOpt.h:23
kGeoTestOmega8File
@ kGeoTestOmega8File
Definition: CbmRichGeoTestOpt.h:20
kUrqmdTestFile
@ kUrqmdTestFile
Definition: CbmRichGeoTestOpt.h:21
CbmRichGeoTestOpt::fDrawReference
bool fDrawReference
Definition: CbmRichGeoTestOpt.h:133
CbmRichGeoTestOpt::fGeoTestBoxPathes
vector< string > fGeoTestBoxPathes
Definition: CbmRichGeoTestOpt.h:125
kH2MeanHist
@ kH2MeanHist
Definition: CbmRichGeoTestOpt.h:29
CbmRichGeoTestOpt::fReferenceInd
int fReferenceInd
Definition: CbmRichGeoTestOpt.h:132
CbmRichGeoTestOpt::fGeoTestOmega3Pathes
vector< string > fGeoTestOmega3Pathes
Definition: CbmRichGeoTestOpt.h:126
CbmRichGeoTestOpt
Definition: CbmRichGeoTestOpt.h:34
CbmRichGeoTestOpt::fHM
CbmHistManager * fHM
Definition: CbmRichGeoTestOpt.h:135
CbmRichGeoTestOpt::fGeoTestOmega8Pathes
vector< string > fGeoTestOmega8Pathes
Definition: CbmRichGeoTestOpt.h:127