CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMHistoryServiceBase.h
Go to the documentation of this file.
1 #ifndef DQMServices_Diagnostic_DQMHistoryServiceBase_H
2 #define DQMServices_Diagnostic_DQMHistoryServiceBase_H
3 
9 #include <string>
10 #include <memory>
16 class HDQMfitUtilities;
17 
19  public:
20 
22  virtual ~DQMHistoryServiceBase();
23 
24  virtual void getMetaDataString(std::stringstream& ss){ss << "Run " << getRunNumber();};
25 
26  virtual bool checkForCompatibility(std::string ss);
27 
28  virtual void getObj(HDQMSummary* & obj){createSummary(); obj=obj_;}
29 
30  virtual void initialize();
31 
32  virtual void setSeparator (std::string const&);
33 
34  protected:
35 
36  virtual void createSummary();
37  virtual void openRequestedFile();
38  virtual void scanTreeAndFillSummary(const std::vector<MonitorElement*>& MEs, HDQMSummary* summary,std::string& histoName, std::vector<std::string>& Quantities);
39  virtual uint32_t getRunNumber() const;
40  virtual uint32_t returnDetComponent(const MonitorElement* MEs){return 999999;}
41 
42  virtual bool setDBLabelsForLandau(std::string& keyName, std::vector<std::string>& userDBContent);
43  virtual bool setDBLabelsForGauss (std::string& keyName, std::vector<std::string>& userDBContent);
44  virtual bool setDBLabelsForStat (std::string& keyName, std::vector<std::string>& userDBContent);
45  virtual bool setDBLabelsForUser (std::string& keyName, std::vector<std::string>& userDBContent, std::string& quantity ){return setDBLabelsForUser(keyName, userDBContent);}
46  virtual bool setDBLabelsForUser (std::string& keyName, std::vector<std::string>& userDBContent){return false;}
47 
48  virtual bool setDBValuesForLandau(std::vector<MonitorElement*>::const_iterator iterMes, HDQMSummary::InputVector& values);
49  virtual bool setDBValuesForGauss(std::vector<MonitorElement*>::const_iterator iterMes, HDQMSummary::InputVector& values );
50  virtual bool setDBValuesForStat(std::vector<MonitorElement*>::const_iterator iterMes, HDQMSummary::InputVector& values );
51  virtual bool setDBValuesForUser(std::vector<MonitorElement*>::const_iterator iterMes, HDQMSummary::InputVector& values, std::string& quantity ){return setDBValuesForUser(iterMes,values);}
52  virtual bool setDBValuesForUser(std::vector<MonitorElement*>::const_iterator iterMes, HDQMSummary::InputVector& values){return false;}
53 
58  std::string fSep;
59 };
60 
61 #endif //DQMServices_Diagnostic_DQMHistoryServiceBase_H
virtual bool setDBValuesForGauss(std::vector< MonitorElement * >::const_iterator iterMes, HDQMSummary::InputVector &values)
virtual uint32_t getRunNumber() const
virtual bool setDBLabelsForUser(std::string &keyName, std::vector< std::string > &userDBContent)
virtual void getMetaDataString(std::stringstream &ss)
virtual bool setDBValuesForUser(std::vector< MonitorElement * >::const_iterator iterMes, HDQMSummary::InputVector &values)
virtual bool checkForCompatibility(std::string ss)
virtual bool setDBValuesForUser(std::vector< MonitorElement * >::const_iterator iterMes, HDQMSummary::InputVector &values, std::string &quantity)
HDQMfitUtilities * fitME
std::vector< float > InputVector
Definition: HDQMSummary.h:58
DQMHistoryServiceBase(const edm::ParameterSet &, const edm::ActivityRegistry &)
virtual bool setDBLabelsForStat(std::string &keyName, std::vector< std::string > &userDBContent)
virtual void getObj(HDQMSummary *&obj)
edm::ParameterSet iConfig_
virtual uint32_t returnDetComponent(const MonitorElement *MEs)
virtual bool setDBLabelsForGauss(std::string &keyName, std::vector< std::string > &userDBContent)
virtual bool setDBLabelsForUser(std::string &keyName, std::vector< std::string > &userDBContent, std::string &quantity)
virtual void setSeparator(std::string const &)
virtual bool setDBLabelsForLandau(std::string &keyName, std::vector< std::string > &userDBContent)
virtual void scanTreeAndFillSummary(const std::vector< MonitorElement * > &MEs, HDQMSummary *summary, std::string &histoName, std::vector< std::string > &Quantities)
virtual bool setDBValuesForLandau(std::vector< MonitorElement * >::const_iterator iterMes, HDQMSummary::InputVector &values)
virtual bool setDBValuesForStat(std::vector< MonitorElement * >::const_iterator iterMes, HDQMSummary::InputVector &values)