1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#ifndef CommonAnalyzer_h
#define CommonAnalyzer_h
#include <string>
#include <vector>
class TFile;
class TObject;
class TNamed;
class TH1F;
class CommonAnalyzer {
public:
CommonAnalyzer(TFile* file, const char* run, const char* mod, const char* path = "", const char* prefix = "");
CommonAnalyzer(const CommonAnalyzer& dtca);
CommonAnalyzer& operator=(const CommonAnalyzer& dtca);
void setRunNumber(const char* run);
void setFile(TFile* file);
void setModule(const char* mod);
void setPath(const char* path);
void setPrefix(const char* prefix);
const std::string& getRunNumber() const;
const std::string& getModule() const;
const std::string& getPath() const;
const std::string& getPrefix() const;
const std::vector<unsigned int> getRunList() const;
const std::vector<unsigned int> getFillList() const;
TObject* getObject(const char* name) const;
TNamed* getObjectWithSuffix(const char* name, const char* suffix = "") const;
TH1F* getBinomialRatio(const CommonAnalyzer& denom, const char* name, const int rebin = -1) const;
private:
const std::vector<unsigned int> getList(const char* what) const;
TFile* _file;
std::string _runnumber;
std::string _module;
std::string _path;
std::string _prefix;
};
#endif // CommonAnalyzer_h
|