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
makePileupJSON.denom
denom
Definition: makePileupJSON.py:146
CommonAnalyzer::getObject
TObject * getObject(const char *name) const
Definition: CommonAnalyzer.cc:42
mod
T mod(const T &a, const T &b)
Definition: ecalDccMap.h:4
CommonAnalyzer::getPath
const std::string & getPath() const
Definition: CommonAnalyzer.cc:39
CommonAnalyzer::setPrefix
void setPrefix(const char *prefix)
Definition: CommonAnalyzer.cc:35
CommonAnalyzer::getPrefix
const std::string & getPrefix() const
Definition: CommonAnalyzer.cc:40
CommonAnalyzer::operator=
CommonAnalyzer & operator=(const CommonAnalyzer &dtca)
Definition: CommonAnalyzer.cc:20
CommonAnalyzer::_runnumber
std::string _runnumber
Definition: CommonAnalyzer.h:42
CommonAnalyzer
Definition: CommonAnalyzer.h:12
createPayload.suffix
suffix
Definition: createPayload.py:281
CommonAnalyzer::setModule
void setModule(const char *mod)
Definition: CommonAnalyzer.cc:33
CommonAnalyzer::getBinomialRatio
TH1F * getBinomialRatio(const CommonAnalyzer &denom, const char *name, const int rebin=-1) const
Definition: CommonAnalyzer.cc:101
CommonAnalyzer::_module
std::string _module
Definition: CommonAnalyzer.h:43
CommonAnalyzer::setRunNumber
void setRunNumber(const char *run)
Definition: CommonAnalyzer.cc:31
CommonAnalyzer::getFillList
const std::vector< unsigned int > getFillList() const
Definition: CommonAnalyzer.cc:70
CommonAnalyzer::setPath
void setPath(const char *path)
Definition: CommonAnalyzer.cc:34
CommonAnalyzer::setFile
void setFile(TFile *file)
Definition: CommonAnalyzer.cc:32
CommonAnalyzer::getModule
const std::string & getModule() const
Definition: CommonAnalyzer.cc:38
geometryDiff.file
file
Definition: geometryDiff.py:13
CommonAnalyzer::getList
const std::vector< unsigned int > getList(const char *what) const
Definition: CommonAnalyzer.cc:72
CommonAnalyzer::getObjectWithSuffix
TNamed * getObjectWithSuffix(const char *name, const char *suffix="") const
Definition: CommonAnalyzer.cc:55
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
CommonAnalyzer::_path
std::string _path
Definition: CommonAnalyzer.h:44
CommonAnalyzer::getRunList
const std::vector< unsigned int > getRunList() const
Definition: CommonAnalyzer.cc:68
writedatasetfile.run
run
Definition: writedatasetfile.py:27
CommonAnalyzer::CommonAnalyzer
CommonAnalyzer(TFile *file, const char *run, const char *mod, const char *path="", const char *prefix="")
Definition: CommonAnalyzer.cc:14
CommonAnalyzer::_prefix
std::string _prefix
Definition: CommonAnalyzer.h:45
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
CommonAnalyzer::_file
TFile * _file
Definition: CommonAnalyzer.h:41
hcallasereventfilter2012_cfi.prefix
prefix
Definition: hcallasereventfilter2012_cfi.py:10
CommonAnalyzer::getRunNumber
const std::string & getRunNumber() const
Definition: CommonAnalyzer.cc:37