CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 
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 
40 
41  TFile* _file;
46 
47 };
48 
49 
50 
51 #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
tuple path
else: Piece not in the list, fine.
std::string _module
void setModule(const char *mod)
const std::string & getPrefix() 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
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