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 
14  public:
15  CommonAnalyzer(TFile* file, const char* run, const char* mod, const char* path ="", const char* prefix="");
16  CommonAnalyzer(const CommonAnalyzer& dtca);
17 
19 
20  void setRunNumber(const char* run);
21  void setFile(TFile* file);
22  void setModule(const char* mod);
23  void setPath(const char* path);
24  void setPrefix(const char* prefix);
25 
26  const std::string& getRunNumber() const;
27  const std::string& getModule() const;
28  const std::string& getPath() const;
29  const std::string& getPrefix() const;
30 
31  const std::vector<unsigned int> getRunList() const;
32  const std::vector<unsigned int> getFillList() const;
33 
34  TObject* getObject(const char* name) const;
35  TNamed* getObjectWithSuffix(const char* name, const char* suffix="") const;
36 
37  TH1F* getBinomialRatio(const CommonAnalyzer& denom, const char* name, const int rebin=-1) const;
38 
39  private:
40 
41  const std::vector<unsigned int> getList(const char* what) const;
42 
43  TFile* _file;
48 
49 };
50 
51 
52 
53 #endif // CommonAnalyzer_h
TH1F * getBinomialRatio(const CommonAnalyzer &denom, const char *name, const int rebin=-1) const
const std::string & getRunNumber() const
TNamed * getObjectWithSuffix(const char *name, const char *suffix="") const
std::string _prefix
void setRunNumber(const char *run)
TObject * getObject(const char *name) const
std::string _runnumber
const std::string & getPath() const
std::string _module
void setModule(const char *mod)
const std::string & getPrefix() const
CommonAnalyzer & operator=(const CommonAnalyzer &dtca)
std::string _path
const std::vector< unsigned int > getList(const char *what) const
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
const std::string & getModule() 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