CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMHistoryCreateTrend.h
Go to the documentation of this file.
1 #ifndef DQMHISTORYCREATETREND_H
2 #define DQMHISTORYCREATETREND_H
3 
7 
8 #include <string>
9 #include <boost/shared_ptr.hpp>
10 
15 {
16  public:
17  inline DQMHistoryCreateTrend(const HDQMInspectorConfigBase * HDQMconfig) { inspector_.reset(new HDQMInspector(HDQMconfig)); }
22  void operator()(const DQMHistoryTrendsConfig & trend);
24  inspector_->setDB(dbName, dbTag, authPath);
25  }
26  inline void setDebug(const int i) {
27  inspector_->setDebug(i);
28  }
29  inline void setDoStat(const int i) {
30  inspector_->setDoStat(i);
31  }
32  inline void setBlackList(const std::string & listItems) {
33  inspector_->setBlackList(listItems);
34  }
35  inline void setWhiteList(const std::string & listItems) {
36  inspector_->setWhiteList(listItems);
37  }
38  inline void setWhiteListFromFile(const std::string & listFileName) {
39  std::cout << "Reading white list from file: " << listFileName << std::endl;
40  inspector_->setWhiteList(inspector_->readListFromFile(listFileName));
41  }
42  inline void closeFile() {
43  inspector_->closeFile();
44  }
45  inline void setSkip99s(bool const in) {
46  inspector_->setSkip99s(in);
47  }
48  inline void setSkip0s(bool const in) {
49  inspector_->setSkip0s(in);
50  }
51  inline void setSeparator(std::string const in) {
52  inspector_->setSeparator(in);
53  }
54 
55  protected:
56  // Do not use auto_ptr if you want to use the object with stl algorithms.
57  boost::shared_ptr<HDQMInspector> inspector_;
58 };
59 
60 #endif
int i
Definition: DBlmapReader.cc:9
void setWhiteListFromFile(const std::string &listFileName)
void setDebug(const int i)
string dbName
Definition: EcalCondDB.py:76
DQMHistoryCreateTrend(const HDQMInspectorConfigBase *HDQMconfig)
void setSkip0s(bool const in)
void setSeparator(std::string const in)
void setSkip99s(bool const in)
void setDB(std::string dbName, std::string dbTag, std::string authPath="")
boost::shared_ptr< HDQMInspector > inspector_
void setWhiteList(const std::string &listItems)
void setBlackList(const std::string &listItems)
tuple cout
Definition: gather_cfg.py:121
void setDoStat(const int i)
void operator()(const DQMHistoryTrendsConfig &trend)