CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
 
RunID const & id () const
 
RunIDid ()
 
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

edm::RunAuxiliary::RunAuxiliary ( )
inline

Definition at line 18 of file RunAuxiliary.h.

ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:46
Timestamp endTime_
Definition: RunAuxiliary.h:52
Timestamp beginTime_
Definition: RunAuxiliary.h:51
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) {}
ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:46
Timestamp endTime_
Definition: RunAuxiliary.h:52
Timestamp beginTime_
Definition: RunAuxiliary.h:51
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) {}
ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:46
Timestamp endTime_
Definition: RunAuxiliary.h:52
Timestamp beginTime_
Definition: RunAuxiliary.h:51
RunNumber_t run() const
Definition: RunAuxiliary.h:31
edm::RunAuxiliary::~RunAuxiliary ( )
inline

Definition at line 23 of file RunAuxiliary.h.

23 {}

Member Function Documentation

Timestamp const& edm::RunAuxiliary::beginTime ( ) const
inline
Timestamp const& edm::RunAuxiliary::endTime ( ) const
inline
RunID const& edm::RunAuxiliary::id ( ) const
inline

Definition at line 27 of file RunAuxiliary.h.

References id_.

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

27 { return id_; }
RunID& edm::RunAuxiliary::id ( )
inline

Definition at line 28 of file RunAuxiliary.h.

References id_.

28 { return id_; }
void edm::RunAuxiliary::mergeAuxiliary ( RunAuxiliary const &  aux)

Definition at line 15 of file RunAuxiliary.cc.

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

15  {
16  assert(id_ == newAux.id_);
18  }
assert(be >=bs)
void mergeNewTimestampsIntoThis_(RunAuxiliary const &newAux)
Definition: RunAuxiliary.cc:20
void edm::RunAuxiliary::mergeNewTimestampsIntoThis_ ( RunAuxiliary const &  newAux)
private

Definition at line 20 of file RunAuxiliary.cc.

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

Referenced by mergeAuxiliary().

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  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:82
Timestamp endTime_
Definition: RunAuxiliary.h:52
Timestamp beginTime_
Definition: RunAuxiliary.h:51
ProcessHistoryID const& edm::RunAuxiliary::processHistoryID ( ) const
inline

Definition at line 25 of file RunAuxiliary.h.

References processHistoryID_.

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

25 { return processHistoryID_; }
ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:46
RunNumber_t edm::RunAuxiliary::run ( ) const
inline
void edm::RunAuxiliary::setBeginTime ( Timestamp const &  time)
inline

Definition at line 32 of file RunAuxiliary.h.

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

32  {
34  beginTime_ = time;
35  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:82
Timestamp beginTime_
Definition: RunAuxiliary.h:51
void edm::RunAuxiliary::setEndTime ( Timestamp const &  time)
inline

Definition at line 36 of file RunAuxiliary.h.

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

36  {
38  endTime_ = time;
39  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:82
Timestamp endTime_
Definition: RunAuxiliary.h:52
void edm::RunAuxiliary::setProcessHistoryID ( ProcessHistoryID const &  phid)
inline

Definition at line 26 of file RunAuxiliary.h.

References processHistoryID_.

Referenced by edm::StreamerInputSource::deserializeEvent(), and edm::RootOutputFile::writeRun().

26 { processHistoryID_ = phid; }
ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:46
void edm::RunAuxiliary::write ( std::ostream &  os) const

Definition at line 10 of file RunAuxiliary.cc.

References id_, and processHistoryID_.

Referenced by pkg.AbstractPkg::generate(), and edm::operator<<().

10  {
11  os << "Process History ID = " << processHistoryID_ << std::endl;
12  os << id_ << std::endl;
13  }
ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:46

Friends And Related Function Documentation

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

Member Data Documentation

Timestamp edm::RunAuxiliary::beginTime_
private
Timestamp edm::RunAuxiliary::endTime_
private

Definition at line 52 of file RunAuxiliary.h.

Referenced by edm::conversion(), endTime(), mergeNewTimestampsIntoThis_(), and setEndTime().

RunID edm::RunAuxiliary::id_
private

Definition at line 49 of file RunAuxiliary.h.

Referenced by edm::conversion(), id(), mergeAuxiliary(), run(), and write().

ProcessHistoryID edm::RunAuxiliary::processHistoryID_
private

Definition at line 46 of file RunAuxiliary.h.

Referenced by edm::conversion(), processHistoryID(), setProcessHistoryID(), and write().