#include <RunAuxiliary.h>
Public Member Functions | |
Timestamp const & | beginTime () const |
Timestamp const & | endTime () const |
RunID const & | id () const |
RunID & | id () |
void | mergeAuxiliary (RunAuxiliary const &aux) |
ProcessHistoryID const & | processHistoryID () const |
RunNumber_t | run () const |
RunAuxiliary (RunID const &theId, Timestamp const &theTime, Timestamp const &theEndTime) | |
RunAuxiliary () | |
RunAuxiliary (RunNumber_t const &run, Timestamp const &theTime, Timestamp const &theEndTime) | |
void | setBeginTime (Timestamp const &time) |
void | setEndTime (Timestamp const &time) |
void | setProcessHistoryID (ProcessHistoryID const &phid) |
void | write (std::ostream &os) const |
~RunAuxiliary () | |
Private Member Functions | |
void | mergeNewTimestampsIntoThis_ (RunAuxiliary const &newAux) |
Private Attributes | |
Timestamp | beginTime_ |
Timestamp | endTime_ |
RunID | id_ |
ProcessHistoryID | processHistoryID_ |
Friends | |
void | conversion (RunAux const &, RunAuxiliary &) |
Definition at line 15 of file RunAuxiliary.h.
edm::RunAuxiliary::RunAuxiliary | ( | ) | [inline] |
Definition at line 18 of file RunAuxiliary.h.
: processHistoryID_(), id_(), beginTime_(), endTime_() {}
edm::RunAuxiliary::RunAuxiliary | ( | RunID const & | theId, |
Timestamp const & | theTime, | ||
Timestamp const & | theEndTime | ||
) | [inline] |
Definition at line 23 of file RunAuxiliary.h.
: processHistoryID_(), id_(theId), beginTime_(theTime), endTime_(theEndTime) {}
edm::RunAuxiliary::RunAuxiliary | ( | RunNumber_t const & | run, |
Timestamp const & | theTime, | ||
Timestamp const & | theEndTime | ||
) | [inline] |
Definition at line 28 of file RunAuxiliary.h.
: processHistoryID_(), id_(run), beginTime_(theTime), endTime_(theEndTime) {}
edm::RunAuxiliary::~RunAuxiliary | ( | ) | [inline] |
Definition at line 33 of file RunAuxiliary.h.
{}
Timestamp const& edm::RunAuxiliary::beginTime | ( | ) | const [inline] |
Definition at line 39 of file RunAuxiliary.h.
References beginTime_.
Referenced by edm::RunPrincipal::beginTime(), edm::RunBase::beginTime(), and mergeNewTimestampsIntoThis_().
{return beginTime_;}
Timestamp const& edm::RunAuxiliary::endTime | ( | ) | const [inline] |
Definition at line 40 of file RunAuxiliary.h.
References endTime_.
Referenced by edm::RunPrincipal::endTime(), edm::RunBase::endTime(), and mergeNewTimestampsIntoThis_().
{return endTime_;}
RunID& edm::RunAuxiliary::id | ( | void | ) | [inline] |
RunID const& edm::RunAuxiliary::id | ( | void | ) | const [inline] |
Definition at line 37 of file RunAuxiliary.h.
References id_.
Referenced by edm::RunBase::id(), edm::RunPrincipal::id(), and DQMRootSource::readNextItemType().
{return id_;}
void edm::RunAuxiliary::mergeAuxiliary | ( | RunAuxiliary const & | aux | ) |
Definition at line 17 of file RunAuxiliary.cc.
References id_, and mergeNewTimestampsIntoThis_().
{ assert(id_ == newAux.id_); mergeNewTimestampsIntoThis_(newAux); }
void edm::RunAuxiliary::mergeNewTimestampsIntoThis_ | ( | RunAuxiliary const & | newAux | ) | [private] |
Definition at line 24 of file RunAuxiliary.cc.
References beginTime(), beginTime_, endTime(), endTime_, and edm::Timestamp::invalidTimestamp().
Referenced by mergeAuxiliary().
{ if (beginTime_ == Timestamp::invalidTimestamp() || newAux.beginTime() == Timestamp::invalidTimestamp()) { beginTime_ = Timestamp::invalidTimestamp(); } else if (newAux.beginTime() < beginTime_) { beginTime_ = newAux.beginTime(); } if (endTime_ == Timestamp::invalidTimestamp() || newAux.endTime() == Timestamp::invalidTimestamp()) { endTime_ = Timestamp::invalidTimestamp(); } else if (newAux.endTime() > endTime_) { endTime_ = newAux.endTime(); } }
ProcessHistoryID const& edm::RunAuxiliary::processHistoryID | ( | ) | const [inline] |
Definition at line 35 of file RunAuxiliary.h.
References processHistoryID_.
Referenced by edm::SubProcess::beginRun(), and fwlite::Run::history().
{return processHistoryID_;}
RunNumber_t edm::RunAuxiliary::run | ( | ) | const [inline] |
Definition at line 41 of file RunAuxiliary.h.
References id_, and edm::RunID::run().
Referenced by edm::RunPrincipal::run(), edm::RunBase::run(), and edm::RootOutputFile::writeRun().
{return id_.run();}
void edm::RunAuxiliary::setBeginTime | ( | Timestamp const & | time | ) | [inline] |
Definition at line 42 of file RunAuxiliary.h.
References beginTime_, edm::Timestamp::invalidTimestamp(), and cond::rpcobgas::time.
{ if (beginTime_ == Timestamp::invalidTimestamp()) beginTime_ = time; }
void edm::RunAuxiliary::setEndTime | ( | Timestamp const & | time | ) | [inline] |
Definition at line 45 of file RunAuxiliary.h.
References endTime_, edm::Timestamp::invalidTimestamp(), and cond::rpcobgas::time.
{ if (endTime_ == Timestamp::invalidTimestamp()) endTime_ = time; }
void edm::RunAuxiliary::setProcessHistoryID | ( | ProcessHistoryID const & | phid | ) | [inline] |
Definition at line 36 of file RunAuxiliary.h.
References processHistoryID_.
Referenced by edm::StreamerInputSource::deserializeEvent(), DQMRootSource::readRunAuxiliary_(), and edm::RootOutputFile::writeRun().
{processHistoryID_ = phid;}
void edm::RunAuxiliary::write | ( | std::ostream & | os | ) | const |
Definition at line 11 of file RunAuxiliary.cc.
References id_, and processHistoryID_.
Referenced by edm::operator<<().
{ os << "Process History ID = " << processHistoryID_ << std::endl; os << id_ << std::endl; }
void conversion | ( | RunAux const & | from, |
RunAuxiliary & | to | ||
) | [friend] |
Timestamp edm::RunAuxiliary::beginTime_ [private] |
Definition at line 59 of file RunAuxiliary.h.
Referenced by beginTime(), edm::conversion(), mergeNewTimestampsIntoThis_(), and setBeginTime().
Timestamp edm::RunAuxiliary::endTime_ [private] |
Definition at line 60 of file RunAuxiliary.h.
Referenced by edm::conversion(), endTime(), mergeNewTimestampsIntoThis_(), and setEndTime().
RunID edm::RunAuxiliary::id_ [private] |
Definition at line 57 of file RunAuxiliary.h.
Referenced by edm::conversion(), id(), mergeAuxiliary(), run(), and write().
Definition at line 54 of file RunAuxiliary.h.
Referenced by edm::conversion(), processHistoryID(), setProcessHistoryID(), and write().