CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMFileSaver.h
Go to the documentation of this file.
1 #ifndef DQMSERVICES_COMPONENTS_DQMFILESAVER_H
2 #define DQMSERVICES_COMPONENTS_DQMFILESAVER_H
3 
6 #include <sys/time.h>
7 #include <string>
8 
9 class DQMStore;
11 {
12 public:
14 
15 protected:
16  virtual void beginJob(void);
17  virtual void beginRun(const edm::Run &, const edm::EventSetup &);
18  virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &);
19  virtual void analyze(const edm::Event &e, const edm::EventSetup &);
20  virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &);
21  virtual void endRun(const edm::Run &, const edm::EventSetup &);
22  virtual void endJob(void);
23 
24 private:
25  void saveForOffline(const std::string &workflow, int run, int lumi);
26  void saveForOnline(const std::string &suffix, const std::string &rewrite);
27  void saveJobReport(const std::string &filename);
28 
30  {
33  };
34 
39  int version_;
41 
51 
54 
56 
57  int irun_;
58  int ilumi_;
60  int ievent_;
61  int nrun_;
62  int nlumi_;
63  int nevent_;
64  timeval start_;
65  timeval saved_;
66 
68  std::list<std::string> pastSavedFiles_;
69 
80 
81 
82 
83 };
84 
85 #endif // DQMSERVICES_COMPONEntS_DQMFILESAVER_H
DQMFileSaver(const edm::ParameterSet &ps)
int forceRunNumber_
Definition: DQMFileSaver.h:50
int saveReferenceQMin_
Definition: DQMFileSaver.h:49
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
std::string fileUpdate_
Definition: DQMFileSaver.h:53
void saveForOnline(const std::string &suffix, const std::string &rewrite)
Convention convention_
Definition: DQMFileSaver.h:35
tuple lumi
Definition: fjr2json.py:35
MonitorElement * versTaglist_
Definition: DQMFileSaver.h:72
std::list< std::string > pastSavedFiles_
Definition: DQMFileSaver.h:68
DQMStore * dbe_
Definition: DQMFileSaver.h:55
MonitorElement * processId_
Current working directory of the job.
Definition: DQMFileSaver.h:77
std::string dirName_
Definition: DQMFileSaver.h:38
void saveJobReport(const std::string &filename)
std::string fileBaseName_
Definition: DQMFileSaver.h:52
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
int saveByLumiSection_
Definition: DQMFileSaver.h:42
MonitorElement * versCMSSW_
Definition: DQMFileSaver.h:70
MonitorElement * fileVersion_
Definition: DQMFileSaver.h:79
MonitorElement * hostName_
Definition: DQMFileSaver.h:74
bool runIsComplete_
Definition: DQMFileSaver.h:40
timeval start_
Definition: DQMFileSaver.h:64
std::string workflow_
Definition: DQMFileSaver.h:36
std::string producer_
Definition: DQMFileSaver.h:37
MonitorElement * workingDir_
DQM &quot;name&quot; of the job (eg, Hcal or DT)
Definition: DQMFileSaver.h:76
int saveReference_
Definition: DQMFileSaver.h:48
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
bool saveAtJobEnd_
Definition: DQMFileSaver.h:47
void saveForOffline(const std::string &workflow, int run, int lumi)
Definition: DQMFileSaver.cc:32
MonitorElement * versGlobaltag_
Definition: DQMFileSaver.h:73
virtual void analyze(const edm::Event &e, const edm::EventSetup &)
tuple filename
Definition: lut2db_cfg.py:20
timeval saved_
Definition: DQMFileSaver.h:65
virtual void endRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * isComplete_
The PID associated with this job.
Definition: DQMFileSaver.h:78
virtual void beginJob(void)
virtual void endJob(void)
MonitorElement * versDataset_
Definition: DQMFileSaver.h:71
Definition: Run.h:36
int numKeepSavedFiles_
Definition: DQMFileSaver.h:67
MonitorElement * processName_
Hostname of the local machine.
Definition: DQMFileSaver.h:75