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&);
19  RunAuxiliary(RunID const& theId, Timestamp const& theTime, Timestamp const& theEndTime)
20  : processHistoryID_(), id_(theId), beginTime_(theTime), endTime_(theEndTime) {}
21  RunAuxiliary(RunNumber_t const& run, Timestamp const& theTime, Timestamp const& theEndTime)
22  : processHistoryID_(), id_(run), beginTime_(theTime), endTime_(theEndTime) {}
24  void write(std::ostream& os) const;
27  RunID const& id() const { return id_; }
28  RunID& id() { return id_; }
29  Timestamp const& beginTime() const { return beginTime_; }
30  Timestamp const& endTime() const { return endTime_; }
31  RunNumber_t run() const { return id_.run(); }
32  void setBeginTime(Timestamp const& time) {
34  beginTime_ = time;
35  }
36  void setEndTime(Timestamp const& time) {
38  endTime_ = time;
39  }
40  void mergeAuxiliary(RunAuxiliary const& aux);
41 
42  private:
43  // This is the ID of the full process history (not the reduced process history).
44  // In cases where Run's are merged, the ID of the first process history encountered
45  // is stored here.
47 
48  // Run ID
50  // Times from DAQ
53 
54  private:
55  void mergeNewTimestampsIntoThis_(RunAuxiliary const& newAux);
56  };
57 
58  inline std::ostream& operator<<(std::ostream& os, const RunAuxiliary& p) {
59  p.write(os);
60  return os;
61  }
62 
63 } // namespace edm
64 
65 #endif
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
ProcessHistoryID.h
edm::RunAuxiliary::setEndTime
void setEndTime(Timestamp const &time)
Definition: RunAuxiliary.h:36
edm::RunID
Definition: RunID.h:28
edm::RunAuxiliary::RunAuxiliary
RunAuxiliary(RunID const &theId, Timestamp const &theTime, Timestamp const &theEndTime)
Definition: RunAuxiliary.h:19
edm::RunID::run
RunNumber_t run() const
Definition: RunID.h:36
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::RunAuxiliary::endTime_
Timestamp endTime_
Definition: RunAuxiliary.h:52
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
protons_cff.time
time
Definition: protons_cff.py:39
edm::RunAuxiliary::~RunAuxiliary
~RunAuxiliary()
Definition: RunAuxiliary.h:23
edm::operator<<
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
Definition: HLTGlobalStatus.h:106
edm::Hash< ProcessHistoryType >
edm::RunAuxiliary::mergeAuxiliary
void mergeAuxiliary(RunAuxiliary const &aux)
Definition: RunAuxiliary.cc:15
Timestamp.h
edm::RunAuxiliary::conversion
friend void conversion(RunAux const &, RunAuxiliary &)
Definition: RunAux.cc:11
edm::RunAuxiliary::processHistoryID
ProcessHistoryID const & processHistoryID() const
Definition: RunAuxiliary.h:25
edm::RunAuxiliary::beginTime
Timestamp const & beginTime() const
Definition: RunAuxiliary.h:29
printConversionInfo.aux
aux
Definition: printConversionInfo.py:19
edm::RunAuxiliary::RunAuxiliary
RunAuxiliary()
Definition: RunAuxiliary.h:18
edm::RunAuxiliary::endTime
Timestamp const & endTime() const
Definition: RunAuxiliary.h:30
edm::RunAuxiliary::setBeginTime
void setBeginTime(Timestamp const &time)
Definition: RunAuxiliary.h:32
edm::RunAuxiliary::write
void write(std::ostream &os) const
Definition: RunAuxiliary.cc:10
edm::RunAux
Definition: RunAux.h:14
edm::RunAuxiliary::mergeNewTimestampsIntoThis_
void mergeNewTimestampsIntoThis_(RunAuxiliary const &newAux)
Definition: RunAuxiliary.cc:20
edm::RunAuxiliary::id_
RunID id_
Definition: RunAuxiliary.h:49
edm::Timestamp::invalidTimestamp
static Timestamp invalidTimestamp()
Definition: Timestamp.h:82
edm::RunAuxiliary::processHistoryID_
ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:46
edm::RunAuxiliary::setProcessHistoryID
void setProcessHistoryID(ProcessHistoryID const &phid)
Definition: RunAuxiliary.h:26
edm::RunAuxiliary::run
RunNumber_t run() const
Definition: RunAuxiliary.h:31
edm::RunAuxiliary::beginTime_
Timestamp beginTime_
Definition: RunAuxiliary.h:51
edm::RunAuxiliary::id
RunID const & id() const
Definition: RunAuxiliary.h:27
edm::RunAuxiliary::id
RunID & id()
Definition: RunAuxiliary.h:28
RunID.h
edm::RunAuxiliary
Definition: RunAuxiliary.h:15
edm::Timestamp
Definition: Timestamp.h:30
edm::RunAuxiliary::RunAuxiliary
RunAuxiliary(RunNumber_t const &run, Timestamp const &theTime, Timestamp const &theEndTime)
Definition: RunAuxiliary.h:21