CbmRoot
CbmModelsQA.h
Go to the documentation of this file.
1 /*
2  *====================================================================
3  *
4  * CBM Models
5  *
6  * Authors: V.Vovchenko
7  *
8  * e-mail :
9  *
10  *====================================================================
11  *
12  * KF Particles Finder performance
13  *
14  *====================================================================
15  */
16 
17 #ifndef _CbmModelsQA_h_
18 #define _CbmModelsQA_h_
19 
20 //#include "KFMCParticle.h"
21 //#include "KFParticleMatch.h"
22 #include "CbmModelBase.h"
23 #include "FairTask.h"
26 #include <cstring>
27 #include <map>
28 #include <vector>
29 
30 class TClonesArray;
31 class CbmVertex;
32 class TDirectory;
33 class TH1F;
34 class TH2F;
35 class KFParticleTopoReconstructor;
36 
37 class CbmModelsQA : public FairTask {
38 public:
39  CbmModelsQA(Int_t iVerbose = 1,
40  int findParticlesMode = 1,
41  int perf = 3,
42  KFParticleTopoReconstructor* tr = 0,
43  const char* name = "CbmModelsQA",
44  const char* title = "Cbm Models QA",
45  float ekin_ = 24.08);
46  ~CbmModelsQA();
47 
48  void SetOutFile(TString outname) { outfileName = outname; }
49 
50  virtual InitStatus ReInit();
51  virtual InitStatus Init();
52  void Exec(Option_t* option);
53  void Finish();
54 
55 
56  void AddHRGAnalysis(int TracksType = -1,
57  double SystError = 0.,
58  TString name = "MC",
59  int EventStats = 1,
60  Bool_t UseWidth = false,
61  Bool_t UseStatistics = false,
62  double rad = 0.);
63 
64  void AddMultiscatteringAnalysis(int TracksType = -1,
65  double SystError = 0.,
66  TString name = "MC",
67  int EventStats = 1);
68 
69  void AddImpactParameterAnalysis(int TracksType = -1,
70  double SystError = 0.,
71  TString name = "MC",
72  TString InputTable = "");
73 
74  void AddInverseSlopeAnalysis(int PDGID = -211,
75  const char* pname = "pi-",
76  int TracksType = -1,
77  double SystError = 0.,
78  TString name = "MC",
79  int EventStats = 1);
80 
81  void AddBoltzmannAnalysis(int PDGID = -211,
82  const char* pname = "pi-",
83  int TracksType = -1,
84  double SystError = 0.,
85  TString name = "MC",
86  int EventStats = 1);
87 
88  void AddBlastWaveAnalysis(int PDGID = -211,
89  const char* pname = "pi-",
90  int TracksType = -1,
91  double SystError = 0.,
92  TString name = "MC",
93  int EventStats = 1,
94  double Tlong = 0.132);
95 
96 private:
97  void WriteHistos(TObject* obj);
98  void WriteHistosCurFile(TObject* obj);
99 
101 
102  // Names of files
103  TString outfileName;
104 
105  TDirectory* histodir;
106 
107  std::vector<int> vStsHitMatch;
108  std::vector<int> vStsPointMatch;
109  std::vector<int> vMvdPointMatch;
110  std::vector<int> vMCTrackMatch;
111 
112  int fNEvents;
113 
114  KFParticleTopoReconstructor* fTopoReconstructor;
115 
116  float ekin;
117 
119 
120 private:
122  void operator=(const CbmModelsQA&);
123  std::vector<CbmModelBase*> Models;
124  TDirectory* histodirmod;
125 };
126 
127 #endif // _CbmModelsQA_h_
CbmModelsQA::Init
virtual InitStatus Init()
Definition: CbmModelsQA.cxx:104
CbmModelsQA::~CbmModelsQA
~CbmModelsQA()
Definition: CbmModelsQA.cxx:96
CbmModelsQA::AddInverseSlopeAnalysis
void AddInverseSlopeAnalysis(int PDGID=-211, const char *pname="pi-", int TracksType=-1, double SystError=0., TString name="MC", int EventStats=1)
Definition: CbmModelsQA.cxx:228
CbmModelsQA::histodirmod
TDirectory * histodirmod
Definition: CbmModelsQA.h:124
CbmModelsQA::Models
std::vector< CbmModelBase * > Models
Definition: CbmModelsQA.h:123
CbmModelsQA::AddImpactParameterAnalysis
void AddImpactParameterAnalysis(int TracksType=-1, double SystError=0., TString name="MC", TString InputTable="")
Definition: CbmModelsQA.cxx:325
CbmModelsQA::vStsPointMatch
std::vector< int > vStsPointMatch
Definition: CbmModelsQA.h:108
CbmModelsQA::vStsHitMatch
std::vector< int > vStsHitMatch
Definition: CbmModelsQA.h:107
CbmModelsQA::ekin
float ekin
Definition: CbmModelsQA.h:116
CbmModelsQA::vMvdPointMatch
std::vector< int > vMvdPointMatch
Definition: CbmModelsQA.h:109
CbmModelsQA::AddMultiscatteringAnalysis
void AddMultiscatteringAnalysis(int TracksType=-1, double SystError=0., TString name="MC", int EventStats=1)
Definition: CbmModelsQA.cxx:216
CbmModelsQA::fNEvents
int fNEvents
Definition: CbmModelsQA.h:112
CbmKFTrErrMCPoints.h
CbmModelsQA::AddHRGAnalysis
void AddHRGAnalysis(int TracksType=-1, double SystError=0., TString name="MC", int EventStats=1, Bool_t UseWidth=false, Bool_t UseStatistics=false, double rad=0.)
Definition: CbmModelsQA.cxx:178
CbmModelsQA::fPrimVtx
CbmVertex * fPrimVtx
Definition: CbmModelsQA.h:100
CbmModelsQA::operator=
void operator=(const CbmModelsQA &)
CbmModelsQA::outfileName
TString outfileName
Definition: CbmModelsQA.h:103
CbmModelsQA::AddBlastWaveAnalysis
void AddBlastWaveAnalysis(int PDGID=-211, const char *pname="pi-", int TracksType=-1, double SystError=0., TString name="MC", int EventStats=1, double Tlong=0.132)
Definition: CbmModelsQA.cxx:291
CbmModelBase.h
CbmModelsQA::fTopoReconstructor
KFParticleTopoReconstructor * fTopoReconstructor
Definition: CbmModelsQA.h:114
CbmModelsQA
Definition: CbmModelsQA.h:37
CbmModelsQA::Finish
void Finish()
Definition: CbmModelsQA.cxx:126
CbmModelsQA::WriteHistos
void WriteHistos(TObject *obj)
Definition: CbmModelsQA.cxx:148
CbmModelsQA::vMCTrackMatch
std::vector< int > vMCTrackMatch
Definition: CbmModelsQA.h:110
CbmModelsQA::WriteHistosCurFile
void WriteHistosCurFile(TObject *obj)
Definition: CbmModelsQA.cxx:163
CbmVertex
Definition: CbmVertex.h:26
CbmModelsQA::ClassDef
ClassDef(CbmModelsQA, 1)
CbmKFPartEfficiencies.h
CbmModelsQA::SetOutFile
void SetOutFile(TString outname)
Definition: CbmModelsQA.h:48
CbmModelsQA::Exec
void Exec(Option_t *option)
Definition: CbmModelsQA.cxx:117
CbmModelsQA::histodir
TDirectory * histodir
Definition: CbmModelsQA.h:105
CbmModelsQA::AddBoltzmannAnalysis
void AddBoltzmannAnalysis(int PDGID=-211, const char *pname="pi-", int TracksType=-1, double SystError=0., TString name="MC", int EventStats=1)
Definition: CbmModelsQA.cxx:270
CbmModelsQA::ReInit
virtual InitStatus ReInit()
Definition: CbmModelsQA.cxx:102
CbmModelsQA::CbmModelsQA
CbmModelsQA(const CbmModelsQA &)
CbmModelsQA::CbmModelsQA
CbmModelsQA(Int_t iVerbose=1, int findParticlesMode=1, int perf=3, KFParticleTopoReconstructor *tr=0, const char *name="CbmModelsQA", const char *title="Cbm Models QA", float ekin_=24.08)