CMS 3D CMS Logo

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