#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(), and edm::RunPrincipal::id().
{return id_;}
void edm::RunAuxiliary::mergeAuxiliary | ( | RunAuxiliary const & | aux | ) |
Definition at line 17 of file RunAuxiliary.cc.
References id_, mergeNewTimestampsIntoThis_(), and processHistoryID_.
{ assert(id_ == newAux.id_); assert(processHistoryID_ == newAux.processHistoryID_); mergeNewTimestampsIntoThis_(newAux); }
void edm::RunAuxiliary::mergeNewTimestampsIntoThis_ | ( | RunAuxiliary const & | newAux | ) | [private] |
Definition at line 26 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 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(), 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 58 of file RunAuxiliary.h.
Referenced by beginTime(), edm::conversion(), mergeNewTimestampsIntoThis_(), and setBeginTime().
Timestamp edm::RunAuxiliary::endTime_ [private] |
Definition at line 59 of file RunAuxiliary.h.
Referenced by edm::conversion(), endTime(), mergeNewTimestampsIntoThis_(), and setEndTime().
RunID edm::RunAuxiliary::id_ [private] |
Definition at line 56 of file RunAuxiliary.h.
Referenced by edm::conversion(), id(), mergeAuxiliary(), run(), and write().
Definition at line 53 of file RunAuxiliary.h.
Referenced by edm::conversion(), mergeAuxiliary(), processHistoryID(), setProcessHistoryID(), and write().