Go to the documentation of this file.
36 #include "TClonesArray.h"
37 #include "TDirectory.h"
45 #include "FairRunAna.h"
69 KFParticleTopoReconstructor* tr,
73 : FairTask(name, iVerbose)
75 , outfileName(
"CbmModelsQA.root")
82 , fTopoReconstructor(tr)
86 TDirectory* currentDir = gDirectory;
88 gDirectory->mkdir(
"Models");
89 gDirectory->cd(
"Models");
91 histodirmod = gDirectory;
93 gDirectory = currentDir;
97 for (
unsigned int i = 0;
i <
Models.size(); ++
i) {
105 FairRootManager* fManger = FairRootManager::Instance();
107 for (
unsigned int i = 0;
i <
Models.size(); ++
i) {
118 for (
unsigned int i = 0;
i <
Models.size(); ++
i) {
127 for (
unsigned int i = 0;
i <
Models.size(); ++
i) {
131 TDirectory* curr = gDirectory;
132 TFile* currentFile = gFile;
136 outfile =
new TFile(
outfileName.Data(),
"RECREATE");
149 if (!obj->IsFolder())
152 TDirectory* cur = gDirectory;
153 TDirectory* sub = cur->mkdir(obj->GetName());
155 TList* listSub = (
static_cast<TDirectory*
>(obj))->GetList();
157 while (TObject* obj1 = it())
164 if (!obj->IsFolder())
167 TDirectory* cur = gDirectory;
168 TDirectory* sub = cur->GetDirectory(obj->GetName());
170 TList* listSub = (
static_cast<TDirectory*
>(obj))->GetList();
172 while (TObject* obj1 = it())
183 Bool_t UseStatistics,
195 HRGModel->
AddRatio(-211, 211, SystError);
196 HRGModel->
AddRatio(-321, 321, SystError);
197 HRGModel->
AddRatio(321, 211, SystError);
198 HRGModel->
AddRatio(2212, -211, SystError);
328 TString InputTable) {
virtual InitStatus Init()
void AddInverseSlopeAnalysis(int PDGID=-211, const char *pname="pi-", int TracksType=-1, double SystError=0., TString name="MC", int EventStats=1)
std::vector< CbmModelBase * > Models
void AddImpactParameterAnalysis(int TracksType=-1, double SystError=0., TString name="MC", TString InputTable="")
void AddMultiscatteringAnalysis(int TracksType=-1, double SystError=0., TString name="MC", int EventStats=1)
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.)
Data class for STS tracks.
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)
KFParticleTopoReconstructor * fTopoReconstructor
void WriteHistos(TObject *obj)
ClassImp(CbmModelsQA) CbmModelsQA
void WriteHistosCurFile(TObject *obj)
void AddRatio(int pdgid1, int pdgid2, double SystError=0.)
void Exec(Option_t *option)
void AddBoltzmannAnalysis(int PDGID=-211, const char *pname="pi-", int TracksType=-1, double SystError=0., TString name="MC", int EventStats=1)
virtual InitStatus ReInit()
Data class for STS clusters.
Data class for a reconstructed hit in the STS.
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)