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
 
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.

18  :
20  id_(),
21  beginTime_(),
22  endTime_() {}
ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:54
Timestamp endTime_
Definition: RunAuxiliary.h:60
Timestamp beginTime_
Definition: RunAuxiliary.h:59
edm::RunAuxiliary::RunAuxiliary ( RunID const &  theId,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
)
inline

Definition at line 23 of file RunAuxiliary.h.

23  :
25  id_(theId),
26  beginTime_(theTime),
27  endTime_(theEndTime) {}
ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:54
Timestamp endTime_
Definition: RunAuxiliary.h:60
Timestamp beginTime_
Definition: RunAuxiliary.h:59
edm::RunAuxiliary::RunAuxiliary ( RunNumber_t const &  run,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
)
inline

Definition at line 28 of file RunAuxiliary.h.

28  :
30  id_(run),
31  beginTime_(theTime),
32  endTime_(theEndTime) {}
ProcessHistoryID processHistoryID_
Definition: RunAuxiliary.h:54
Timestamp endTime_
Definition: RunAuxiliary.h:60
Timestamp beginTime_
Definition: RunAuxiliary.h:59
RunNumber_t run() const
Definition: RunAuxiliary.h:41
edm::RunAuxiliary::~RunAuxiliary ( )
inline

Definition at line 33 of file RunAuxiliary.h.

References write().

33 {}

Member Function Documentation

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

Definition at line 39 of file RunAuxiliary.h.

References beginTime_.

Referenced by edm::RunBase::beginTime(), edm::RunPrincipal::beginTime(), and mergeNewTimestampsIntoThis_().

39 {return beginTime_;}
Timestamp beginTime_
Definition: RunAuxiliary.h:59
Timestamp const& edm::RunAuxiliary::endTime ( ) const
inline

Definition at line 40 of file RunAuxiliary.h.

References endTime_.

Referenced by edm::RunBase::endTime(), edm::RunPrincipal::endTime(), and mergeNewTimestampsIntoThis_().

40 {return endTime_;}
Timestamp endTime_
Definition: RunAuxiliary.h:60
RunID const& edm::RunAuxiliary::id ( ) const
inline

Definition at line 37 of file RunAuxiliary.h.

References id_.

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

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

Definition at line 38 of file RunAuxiliary.h.

References id_.

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

Definition at line 17 of file RunAuxiliary.cc.

References id_, and mergeNewTimestampsIntoThis_().

Referenced by setEndTime().

17  {
18 
19  assert(id_ == newAux.id_);
21  }
void mergeNewTimestampsIntoThis_(RunAuxiliary const &newAux)
Definition: RunAuxiliary.cc:24
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().

24  {
26  newAux.beginTime() == Timestamp::invalidTimestamp()) {
28  }
29  else if (newAux.beginTime() < beginTime_) {
30  beginTime_ = newAux.beginTime();
31  }
32 
34  newAux.endTime() == Timestamp::invalidTimestamp()) {
36  }
37  else if (newAux.endTime() > endTime_) {
38  endTime_ = newAux.endTime();
39  }
40  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:101
Timestamp endTime_
Definition: RunAuxiliary.h:60
Timestamp beginTime_
Definition: RunAuxiliary.h:59
ProcessHistoryID const& edm::RunAuxiliary::processHistoryID ( ) const
inline

Definition at line 35 of file RunAuxiliary.h.

References processHistoryID_.

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

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

Definition at line 42 of file RunAuxiliary.h.

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

42  {
44  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:101
Timestamp beginTime_
Definition: RunAuxiliary.h:59
void edm::RunAuxiliary::setEndTime ( Timestamp const &  time)
inline
void edm::RunAuxiliary::setProcessHistoryID ( ProcessHistoryID const &  phid)
inline
void edm::RunAuxiliary::write ( std::ostream &  os) const

Definition at line 11 of file RunAuxiliary.cc.

References id_, and processHistoryID_.

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

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

Friends And Related Function Documentation

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  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:101

Member Data Documentation

Timestamp edm::RunAuxiliary::beginTime_
private
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().

ProcessHistoryID edm::RunAuxiliary::processHistoryID_
private

Definition at line 54 of file RunAuxiliary.h.

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