CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::RunAuxiliary Class Reference

#include <RunAuxiliary.h>

Public Member Functions

Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
RunIDid ()
 
RunID const & id () const
 
void mergeAuxiliary (RunAuxiliary const &aux)
 
ProcessHistoryID const & processHistoryID () const
 
RunNumber_t run () const
 
 RunAuxiliary ()
 
 RunAuxiliary (RunID const &theId, Timestamp const &theTime, Timestamp const &theEndTime)
 
 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 &)
 

Detailed Description

Definition at line 15 of file RunAuxiliary.h.

Constructor & Destructor Documentation

◆ RunAuxiliary() [1/3]

edm::RunAuxiliary::RunAuxiliary ( )
inline

Definition at line 18 of file RunAuxiliary.h.

◆ RunAuxiliary() [2/3]

edm::RunAuxiliary::RunAuxiliary ( RunID const &  theId,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
)
inline

Definition at line 19 of file RunAuxiliary.h.

20  : processHistoryID_(), id_(theId), beginTime_(theTime), endTime_(theEndTime) {}

◆ RunAuxiliary() [3/3]

edm::RunAuxiliary::RunAuxiliary ( RunNumber_t const &  run,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
)
inline

Definition at line 21 of file RunAuxiliary.h.

22  : processHistoryID_(), id_(run), beginTime_(theTime), endTime_(theEndTime) {}

◆ ~RunAuxiliary()

edm::RunAuxiliary::~RunAuxiliary ( )
inline

Definition at line 23 of file RunAuxiliary.h.

23 {}

Member Function Documentation

◆ beginTime()

Timestamp const& edm::RunAuxiliary::beginTime ( ) const
inline

◆ endTime()

Timestamp const& edm::RunAuxiliary::endTime ( ) const
inline

◆ id() [1/2]

RunID& edm::RunAuxiliary::id ( )
inline

Definition at line 28 of file RunAuxiliary.h.

28 { return id_; }

References id_.

◆ id() [2/2]

RunID const& edm::RunAuxiliary::id ( ) const
inline

Definition at line 27 of file RunAuxiliary.h.

27 { return id_; }

References id_.

Referenced by L1GtUtils::getL1GtRunCache(), edm::RunBase::id(), edm::RunForOutput::id(), and edm::RunPrincipal::id().

◆ mergeAuxiliary()

void edm::RunAuxiliary::mergeAuxiliary ( RunAuxiliary const &  aux)

Definition at line 15 of file RunAuxiliary.cc.

15  {
16  assert(id_ == newAux.id_);
18  }

References cms::cuda::assert(), id_, and mergeNewTimestampsIntoThis_().

◆ mergeNewTimestampsIntoThis_()

void edm::RunAuxiliary::mergeNewTimestampsIntoThis_ ( RunAuxiliary const &  newAux)
private

Definition at line 20 of file RunAuxiliary.cc.

20  {
21  if (beginTime_ == Timestamp::invalidTimestamp() || newAux.beginTime() == Timestamp::invalidTimestamp()) {
23  } else if (newAux.beginTime() < beginTime_) {
24  beginTime_ = newAux.beginTime();
25  }
26 
27  if (endTime_ == Timestamp::invalidTimestamp() || newAux.endTime() == Timestamp::invalidTimestamp()) {
29  } else if (newAux.endTime() > endTime_) {
30  endTime_ = newAux.endTime();
31  }
32  }

References beginTime(), beginTime_, endTime(), endTime_, and edm::Timestamp::invalidTimestamp().

Referenced by mergeAuxiliary().

◆ processHistoryID()

ProcessHistoryID const& edm::RunAuxiliary::processHistoryID ( ) const
inline

Definition at line 25 of file RunAuxiliary.h.

25 { return processHistoryID_; }

References processHistoryID_.

Referenced by fwlite::Run::history().

◆ run()

RunNumber_t edm::RunAuxiliary::run ( ) const
inline

◆ setBeginTime()

void edm::RunAuxiliary::setBeginTime ( Timestamp const &  time)
inline

Definition at line 32 of file RunAuxiliary.h.

32  {
34  beginTime_ = time;
35  }

References beginTime_, edm::Timestamp::invalidTimestamp(), and protons_cff::time.

◆ setEndTime()

void edm::RunAuxiliary::setEndTime ( Timestamp const &  time)
inline

Definition at line 36 of file RunAuxiliary.h.

36  {
38  endTime_ = time;
39  }

References endTime_, edm::Timestamp::invalidTimestamp(), and protons_cff::time.

◆ setProcessHistoryID()

void edm::RunAuxiliary::setProcessHistoryID ( ProcessHistoryID const &  phid)
inline

Definition at line 26 of file RunAuxiliary.h.

26 { processHistoryID_ = phid; }

References processHistoryID_.

Referenced by edm::RootOutputFile::writeRun().

◆ write()

void edm::RunAuxiliary::write ( std::ostream &  os) const

Definition at line 10 of file RunAuxiliary.cc.

10  {
11  os << "Process History ID = " << processHistoryID_ << std::endl;
12  os << id_ << std::endl;
13  }

References id_, and processHistoryID_.

Referenced by pkg.AbstractPkg::generate().

Friends And Related Function Documentation

◆ conversion

void conversion ( RunAux const &  from,
RunAuxiliary to 
)
friend

Definition at line 11 of file RunAux.cc.

11  {
12  to.processHistoryID_ = from.processHistoryID_;
13  to.id_ = RunID(from.id_);
14  to.beginTime_ = to.endTime_ = Timestamp::invalidTimestamp();
15  }

Member Data Documentation

◆ beginTime_

Timestamp edm::RunAuxiliary::beginTime_
private

Definition at line 51 of file RunAuxiliary.h.

Referenced by beginTime(), mergeNewTimestampsIntoThis_(), and setBeginTime().

◆ endTime_

Timestamp edm::RunAuxiliary::endTime_
private

Definition at line 52 of file RunAuxiliary.h.

Referenced by endTime(), mergeNewTimestampsIntoThis_(), and setEndTime().

◆ id_

RunID edm::RunAuxiliary::id_
private

Definition at line 49 of file RunAuxiliary.h.

Referenced by id(), mergeAuxiliary(), run(), and write().

◆ processHistoryID_

ProcessHistoryID edm::RunAuxiliary::processHistoryID_
private

Definition at line 46 of file RunAuxiliary.h.

Referenced by processHistoryID(), setProcessHistoryID(), and write().

edm::RunID::run
RunNumber_t run() const
Definition: RunID.h:36
edm::RunAuxiliary::endTime_
Timestamp endTime_
Definition: RunAuxiliary.h:52
to
cms::cuda::assert
assert(be >=bs)
protons_cff.time
time
Definition: protons_cff.py:39
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::run
RunNumber_t run() const
Definition: RunAuxiliary.h:31
edm::RunAuxiliary::beginTime_
Timestamp beginTime_
Definition: RunAuxiliary.h:51