CMS 3D CMS Logo

LuminosityBlockAuxiliary.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_LuminosityBlockAuxiliary_h
2 #define DataFormats_Provenance_LuminosityBlockAuxiliary_h
3 
4 #include <iosfwd>
5 
10 
11 // Auxiliary luminosity block data that is persistent
12 
13 namespace edm {
14  class LuminosityBlockAux;
16  public:
19  LuminosityBlockAuxiliary(LuminosityBlockID const& theId, Timestamp const& theTime, Timestamp const& theEndTime)
20  : processHistoryID_(), id_(theId), beginTime_(theTime), endTime_(theEndTime) {}
23  Timestamp const& theTime,
24  Timestamp const& theEndTime)
25  : processHistoryID_(), id_(theRun, theLumi), beginTime_(theTime), endTime_(theEndTime) {}
26  void write(std::ostream& os) const;
30  RunNumber_t run() const { return id().run(); }
31  LuminosityBlockID const& id() const { return id_; }
32  LuminosityBlockID& id() { return id_; }
33  Timestamp const& beginTime() const { return beginTime_; }
34  void setBeginTime(Timestamp const& time) {
36  beginTime_ = time;
37  }
38  Timestamp const& endTime() const { return endTime_; }
39  void setEndTime(Timestamp const& time) {
41  endTime_ = time;
42  }
43  void mergeAuxiliary(LuminosityBlockAuxiliary const& newAux);
44 
45  bool sameIdentity(LuminosityBlockAuxiliary const& iRHS) const {
46  return iRHS.processHistoryID_ == processHistoryID_ && iRHS.id_ == id_;
47  }
48 
49  private:
50  // This is the ID of the full process history (not the reduced process history).
51  // In cases where LuminosityBlock's are merged, the ID of the first process history encountered
52  // is stored here.
54 
56  // Times from DAQ
59  };
60 
61  inline std::ostream& operator<<(std::ostream& os, const LuminosityBlockAuxiliary& p) {
62  p.write(os);
63  return os;
64  }
65 
66 } // namespace edm
67 #endif
LuminosityBlockNumber_t luminosityBlock() const
LuminosityBlockID const & id() const
static Timestamp invalidTimestamp()
Definition: Timestamp.h:75
ProcessHistoryID const & processHistoryID() const
void setEndTime(Timestamp const &time)
LuminosityBlockAuxiliary(LuminosityBlockID const &theId, Timestamp const &theTime, Timestamp const &theEndTime)
void setBeginTime(Timestamp const &time)
unsigned int LuminosityBlockNumber_t
friend void conversion(LuminosityBlockAux const &, LuminosityBlockAuxiliary &)
Timestamp const & endTime() const
bool sameIdentity(LuminosityBlockAuxiliary const &iRHS) const
LuminosityBlockNumber_t luminosityBlock() const
void mergeAuxiliary(LuminosityBlockAuxiliary const &newAux)
void setProcessHistoryID(ProcessHistoryID const &phid)
RunNumber_t run() const
void write(std::ostream &os) const
HLT enums.
LuminosityBlockAuxiliary(RunNumber_t const &theRun, LuminosityBlockNumber_t const &theLumi, Timestamp const &theTime, Timestamp const &theEndTime)
unsigned int RunNumber_t
Timestamp const & beginTime() const
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.