CbmRoot
Loading...
Searching...
No Matches
CbmStudyReport.h
Go to the documentation of this file.
1/* Copyright (C) 2011-2020 GSI/JINR-LIT, Darmstadt/Dubna
2 SPDX-License-Identifier: GPL-3.0-only
3 Authors: Semen Lebedev, Andrey Lebedev [committer], Florian Uhlig */
4
11#ifndef CBMSTUDYREPORT_H_
12#define CBMSTUDYREPORT_H_
13
14#include "CbmReport.h" // for CbmReport
15
16#include <Rtypes.h> // for THashConsistencyHolder, ClassDef
17#include <RtypesCore.h> // for Int_t
18
19#include <string> // for string
20#include <vector> // for vector
21
22class CbmHistManager;
23
30class CbmStudyReport : public CbmReport {
31public:
36
40 virtual ~CbmStudyReport();
41
55 void Create(const std::vector<CbmHistManager*>& histManagers, const std::vector<std::string>& studyNames,
56 const std::string& outputDir);
57
67 void Create(const std::vector<std::string>& fileNames, const std::vector<std::string>& studyNames,
68 const std::string& outputDir);
69
73 virtual void Create() = 0;
74
75 /* Accessors */
76 const std::vector<CbmHistManager*>& HM() const { return fHM; }
77 CbmHistManager* HM(Int_t index) const { return fHM[index]; }
78 const std::vector<std::string>& GetStudyNames() const { return fStudyNames; }
79 const std::string& GetStudyName(Int_t index) const { return fStudyNames[index]; }
80
81private:
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_ */
Histogram manager.
Base class for reports.
Definition CbmReport.h:45
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.
void Create(const std::vector< std::string > &fileNames, const std::vector< std::string > &studyNames, const std::string &outputDir)
Main function which creates report data.
void Create(const std::vector< CbmHistManager * > &histManagers, const std::vector< std::string > &studyNames, const std::string &outputDir)
Main function which creates report data.
const std::vector< std::string > & GetStudyNames() const
const std::vector< CbmHistManager * > & HM() const
const std::string & GetStudyName(Int_t index) const
CbmHistManager * HM(Int_t index) const
std::vector< std::string > fStudyNames
std::vector< CbmHistManager * > fHM