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  virtual void postForkReacquireResources(unsigned int childIndex, unsigned int numberOfChildren);
24 
25 private:
26  void saveForOffline(const std::string &workflow, int run, int lumi);
27  void saveForOnline(const std::string &suffix, const std::string &rewrite);
28  void saveJobReport(const std::string &filename);
29 
31  {
34  };
35 
37  std::string workflow_;
38  std::string producer_;
39  std::string dirName_;
40  std::string child_;
41  int version_;
43 
53 
54  std::string fileBaseName_;
55  std::string fileUpdate_;
56 
58 
59  int irun_;
60  int ilumi_;
62  int ievent_;
63  int nrun_;
64  int nlumi_;
65  int nevent_;
66  timeval start_;
67  timeval saved_;
68 
70  std::list<std::string> pastSavedFiles_;
71 
82 
83 
84 
85 };
86 
87 #endif // DQMSERVICES_COMPONEntS_DQMFILESAVER_H
DQMFileSaver(const edm::ParameterSet &ps)
int forceRunNumber_
Definition: DQMFileSaver.h:52
int saveReferenceQMin_
Definition: DQMFileSaver.h:51
virtual void beginRun(const edm::Run &, const edm::EventSetup &)
std::string fileUpdate_
Definition: DQMFileSaver.h:55
void saveForOnline(const std::string &suffix, const std::string &rewrite)
Convention convention_
Definition: DQMFileSaver.h:36
tuple lumi
Definition: fjr2json.py:35
MonitorElement * versTaglist_
Definition: DQMFileSaver.h:74
std::list< std::string > pastSavedFiles_
Definition: DQMFileSaver.h:70
DQMStore * dbe_
Definition: DQMFileSaver.h:57
MonitorElement * processId_
Current working directory of the job.
Definition: DQMFileSaver.h:79
std::string dirName_
Definition: DQMFileSaver.h:39
void saveJobReport(const std::string &filename)
std::string fileBaseName_
Definition: DQMFileSaver.h:54
virtual void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
int saveByLumiSection_
Definition: DQMFileSaver.h:44
MonitorElement * versCMSSW_
Definition: DQMFileSaver.h:72
MonitorElement * fileVersion_
Definition: DQMFileSaver.h:81
MonitorElement * hostName_
Definition: DQMFileSaver.h:76
bool runIsComplete_
Definition: DQMFileSaver.h:42
timeval start_
Definition: DQMFileSaver.h:66
std::string workflow_
Definition: DQMFileSaver.h:37
std::string producer_
Definition: DQMFileSaver.h:38
MonitorElement * workingDir_
DQM &quot;name&quot; of the job (eg, Hcal or DT)
Definition: DQMFileSaver.h:78
std::string child_
Definition: DQMFileSaver.h:40
int saveReference_
Definition: DQMFileSaver.h:50
virtual void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
bool saveAtJobEnd_
Definition: DQMFileSaver.h:49
void saveForOffline(const std::string &workflow, int run, int lumi)
Definition: DQMFileSaver.cc:33
MonitorElement * versGlobaltag_
Definition: DQMFileSaver.h:75
virtual void analyze(const edm::Event &e, const edm::EventSetup &)
tuple filename
Definition: lut2db_cfg.py:20
timeval saved_
Definition: DQMFileSaver.h:67
virtual void postForkReacquireResources(unsigned int childIndex, unsigned int numberOfChildren)
virtual void endRun(const edm::Run &, const edm::EventSetup &)
MonitorElement * isComplete_
The PID associated with this job.
Definition: DQMFileSaver.h:80
virtual void beginJob(void)
virtual void endJob(void)
MonitorElement * versDataset_
Definition: DQMFileSaver.h:73
Definition: Run.h:33
int numKeepSavedFiles_
Definition: DQMFileSaver.h:69
MonitorElement * processName_
Hostname of the local machine.
Definition: DQMFileSaver.h:77