CMS 3D CMS Logo

RunAuxiliary.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_RunAuxiliary_h
2 #define DataFormats_Provenance_RunAuxiliary_h
3 
4 #include <iosfwd>
5 #include <set>
6 
10 
11 // Auxiliary run data that is persistent
12 
13 namespace edm {
14  class RunAux;
15  class RunAuxiliary {
16  public:
17  friend void conversion(RunAux const&, RunAuxiliary&);
20  id_(),
21  beginTime_(),
22  endTime_() {}
23  RunAuxiliary(RunID const& theId, Timestamp const& theTime, Timestamp const& theEndTime) :
25  id_(theId),
26  beginTime_(theTime),
27  endTime_(theEndTime) {}
28  RunAuxiliary(RunNumber_t const& run, Timestamp const& theTime, Timestamp const& theEndTime) :
30  id_(run),
31  beginTime_(theTime),
32  endTime_(theEndTime) {}
34  void write(std::ostream& os) const;
37  RunID const& id() const {return id_;}
38  RunID& id() {return id_;}
39  Timestamp const& beginTime() const {return beginTime_;}
40  Timestamp const& endTime() const {return endTime_;}
41  RunNumber_t run() const {return id_.run();}
42  void setBeginTime(Timestamp const& time) {
44  }
45  void setEndTime(Timestamp const& time) {
47  }
48  void mergeAuxiliary(RunAuxiliary const& aux);
49 
50  private:
51  // This is the ID of the full process history (not the reduced process history).
52  // In cases where Run's are merged, the ID of the first process history encountered
53  // is stored here.
55 
56  // Run ID
58  // Times from DAQ
61 
62  private:
63  void mergeNewTimestampsIntoThis_(RunAuxiliary const& newAux);
64  };
65 
66  inline
67  std::ostream&
68  operator<<(std::ostream& os, const RunAuxiliary& p) {
69  p.write(os);
70  return os;
71  }
72 
73 }
74 
75 #endif
static Timestamp invalidTimestamp()
Definition: Timestamp.h:101
ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:54
RunNumber_t run() const
Definition: RunID.h:39
Timestamp const & endTime() const
Definition: RunAuxiliary.h:40
RunID const & id() const
Definition: RunAuxiliary.h:37
Timestamp const & beginTime() const
Definition: RunAuxiliary.h:39
RunAuxiliary(RunID const &theId, Timestamp const &theTime, Timestamp const &theEndTime)
Definition: RunAuxiliary.h:23
Timestamp endTime_
Definition: RunAuxiliary.h:60
RunAuxiliary(RunNumber_t const &run, Timestamp const &theTime, Timestamp const &theEndTime)
Definition: RunAuxiliary.h:28
void mergeNewTimestampsIntoThis_(RunAuxiliary const &newAux)
Definition: RunAuxiliary.cc:24
friend void conversion(RunAux const &, RunAuxiliary &)
Definition: RunAux.cc:11
void write(std::ostream &os) const
Definition: RunAuxiliary.cc:11
Timestamp beginTime_
Definition: RunAuxiliary.h:59
void mergeAuxiliary(RunAuxiliary const &aux)
Definition: RunAuxiliary.cc:17
ProcessHistoryID const & processHistoryID() const
Definition: RunAuxiliary.h:35
HLT enums.
void setEndTime(Timestamp const &time)
Definition: RunAuxiliary.h:45
void setBeginTime(Timestamp const &time)
Definition: RunAuxiliary.h:42
void setProcessHistoryID(ProcessHistoryID const &phid)
Definition: RunAuxiliary.h:36
unsigned int RunNumber_t
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
RunNumber_t run() const
Definition: RunAuxiliary.h:41