14#include <TDirectory.h>
24using std::stringstream;
32 const string& outputDir)
34 assert(histManagers.size() == studyNames.size());
41void CbmStudyReport::Create(
const vector<string>& fileNames,
const vector<string>& studyNames,
const string& outputDir)
43 assert(fileNames.size() == studyNames.size());
44 Int_t nofStudies = fileNames.size();
45 vector<TFile*> files(nofStudies);
46 fHM.resize(nofStudies);
48 TFile* oldFile = gFile;
49 TDirectory* oldDir = gDirectory;
51 for (Int_t i = 0; i < nofStudies; i++) {
53 files[i] =
new TFile(fileNames[i].c_str());
54 fHM[i]->ReadFromFile(files[i]);
ClassImp(CbmConverterManager)
Base class for study reports.
void SetOutputDir(const std::string &outputDir)
void CreateReports()
Create all available report types.
Base class for study reports.
virtual void Create()=0
Inherited from CbmReport. Pure abstract function which is called from public Create() function.
virtual ~CbmStudyReport()
Destructor.
CbmStudyReport()
Constructor.
std::vector< std::string > fStudyNames
std::vector< CbmHistManager * > fHM