CbmRoot
CbmStudyReport.h
Go to the documentation of this file.
1 
7 #ifndef CBMSTUDYREPORT_H_
8 #define CBMSTUDYREPORT_H_
9 
10 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
11 #include <RtypesCore.h> // for Int_t
12 
13 #include <string> // for string
14 #include <vector> // for vector
15 
16 #include "CbmReport.h" // for CbmReport
17 
18 class CbmHistManager;
19 
26 class CbmStudyReport : public CbmReport {
27 public:
32 
36  virtual ~CbmStudyReport();
37 
51  void Create(const std::vector<CbmHistManager*>& histManagers,
52  const std::vector<std::string>& studyNames,
53  const std::string& outputDir);
54 
64  void Create(const std::vector<std::string>& fileNames,
65  const std::vector<std::string>& studyNames,
66  const std::string& outputDir);
67 
71  virtual void Create() = 0;
72 
73  /* Accessors */
74  const std::vector<CbmHistManager*>& HM() const { return fHM; }
75  CbmHistManager* HM(Int_t index) const { return fHM[index]; }
76  const std::vector<std::string>& GetStudyNames() const { return fStudyNames; }
77  const std::string& GetStudyName(Int_t index) const {
78  return fStudyNames[index];
79  }
80 
81 private:
82  std::vector<CbmHistManager*> fHM; // Histogram managers for each study
83  std::vector<std::string> fStudyNames; // Names of studies
84 
85  ClassDef(CbmStudyReport, 1)
86 };
87 
88 #endif /* CBMSTUDYREPORT_H_ */
CbmStudyReport::GetStudyName
const std::string & GetStudyName(Int_t index) const
Definition: CbmStudyReport.h:77
CbmStudyReport::CbmStudyReport
CbmStudyReport()
Constructor.
Definition: CbmStudyReport.cxx:22
CbmStudyReport
Base class for study reports.
Definition: CbmStudyReport.h:26
CbmStudyReport::Create
void Create(const std::vector< CbmHistManager * > &histManagers, const std::vector< std::string > &studyNames, const std::string &outputDir)
Main function which creates report data.
CbmStudyReport::fHM
std::vector< CbmHistManager * > fHM
Definition: CbmStudyReport.h:82
CbmStudyReport::Create
virtual void Create()=0
Inherited from CbmReport. Pure abstract function which is called from public Create() function.
CbmHistManager
Histogram manager.
Definition: CbmHistManager.h:41
CbmStudyReport::HM
const std::vector< CbmHistManager * > & HM() const
Definition: CbmStudyReport.h:74
CbmStudyReport::fStudyNames
std::vector< std::string > fStudyNames
Definition: CbmStudyReport.h:83
CbmStudyReport::HM
CbmHistManager * HM(Int_t index) const
Definition: CbmStudyReport.h:75
CbmStudyReport::~CbmStudyReport
virtual ~CbmStudyReport()
Destructor.
Definition: CbmStudyReport.cxx:24
CbmStudyReport::GetStudyNames
const std::vector< std::string > & GetStudyNames() const
Definition: CbmStudyReport.h:76
CbmReport
Base class for reports.
Definition: CbmReport.h:35
CbmStudyReport::Create
void Create(const std::vector< std::string > &fileNames, const std::vector< std::string > &studyNames, const std::string &outputDir)
Main function which creates report data.
CbmReport.h