CMS 3D CMS Logo

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

#include <LuminosityBlockAuxiliary.h>

Public Member Functions

Timestamp const & beginTime () const
 
Timestamp const & endTime () const
 
LuminosityBlockID const & id () const
 
LuminosityBlockIDid ()
 
LuminosityBlockNumber_t luminosityBlock () const
 
 LuminosityBlockAuxiliary ()
 
 LuminosityBlockAuxiliary (LuminosityBlockID const &theId, Timestamp const &theTime, Timestamp const &theEndTime)
 
 LuminosityBlockAuxiliary (RunNumber_t const &theRun, LuminosityBlockNumber_t const &theLumi, Timestamp const &theTime, Timestamp const &theEndTime)
 
void mergeAuxiliary (LuminosityBlockAuxiliary const &newAux)
 
ProcessHistoryID const & processHistoryID () const
 
RunNumber_t run () const
 
bool sameIdentity (LuminosityBlockAuxiliary const &iRHS) const
 
void setBeginTime (Timestamp const &time)
 
void setEndTime (Timestamp const &time)
 
void setProcessHistoryID (ProcessHistoryID const &phid)
 
void write (std::ostream &os) const
 

Private Attributes

Timestamp beginTime_
 
Timestamp endTime_
 
LuminosityBlockID id_
 
ProcessHistoryID processHistoryID_
 

Friends

void conversion (LuminosityBlockAux const &, LuminosityBlockAuxiliary &)
 

Detailed Description

Definition at line 15 of file LuminosityBlockAuxiliary.h.

Constructor & Destructor Documentation

◆ LuminosityBlockAuxiliary() [1/3]

edm::LuminosityBlockAuxiliary::LuminosityBlockAuxiliary ( )
inline

◆ LuminosityBlockAuxiliary() [2/3]

edm::LuminosityBlockAuxiliary::LuminosityBlockAuxiliary ( LuminosityBlockID const &  theId,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
)
inline

◆ LuminosityBlockAuxiliary() [3/3]

edm::LuminosityBlockAuxiliary::LuminosityBlockAuxiliary ( RunNumber_t const &  theRun,
LuminosityBlockNumber_t const &  theLumi,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
)
inline

Member Function Documentation

◆ beginTime()

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

◆ endTime()

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

◆ id() [1/2]

LuminosityBlockID const& edm::LuminosityBlockAuxiliary::id ( ) const
inline

◆ id() [2/2]

LuminosityBlockID& edm::LuminosityBlockAuxiliary::id ( )
inline

Definition at line 32 of file LuminosityBlockAuxiliary.h.

References id_.

32 { return id_; }

◆ luminosityBlock()

LuminosityBlockNumber_t edm::LuminosityBlockAuxiliary::luminosityBlock ( ) const
inline

◆ mergeAuxiliary()

void edm::LuminosityBlockAuxiliary::mergeAuxiliary ( LuminosityBlockAuxiliary const &  newAux)

Definition at line 15 of file LuminosityBlockAuxiliary.cc.

References cms::cuda::assert(), beginTime(), beginTime_, endTime(), endTime_, id_, and edm::Timestamp::invalidTimestamp().

Referenced by edm::LuminosityBlockPrincipal::mergeAuxiliary().

15  {
16  assert(id_ == newAux.id_);
17  if (beginTime_ == Timestamp::invalidTimestamp() || newAux.beginTime() == Timestamp::invalidTimestamp()) {
19  } else if (newAux.beginTime() < beginTime_) {
20  beginTime_ = newAux.beginTime();
21  }
22 
23  if (endTime_ == Timestamp::invalidTimestamp() || newAux.endTime() == Timestamp::invalidTimestamp()) {
25  } else if (newAux.endTime() > endTime_) {
26  endTime_ = newAux.endTime();
27  }
28  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:75
assert(be >=bs)

◆ processHistoryID()

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

◆ run()

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

◆ sameIdentity()

bool edm::LuminosityBlockAuxiliary::sameIdentity ( LuminosityBlockAuxiliary const &  iRHS) const
inline

Definition at line 45 of file LuminosityBlockAuxiliary.h.

References id_, and processHistoryID_.

45  {
46  return iRHS.processHistoryID_ == processHistoryID_ && iRHS.id_ == id_;
47  }

◆ setBeginTime()

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

◆ setEndTime()

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

◆ setProcessHistoryID()

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

Definition at line 28 of file LuminosityBlockAuxiliary.h.

References processHistoryID_.

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

28 { processHistoryID_ = phid; }

◆ write()

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

Definition at line 10 of file LuminosityBlockAuxiliary.cc.

References id_, l1tGTMenu_BTagSeeds_cff::os, and processHistoryID_.

Referenced by pkg.AbstractPkg::generate().

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

Friends And Related Function Documentation

◆ conversion

void conversion ( LuminosityBlockAux const &  from,
LuminosityBlockAuxiliary to 
)
friend

Definition at line 11 of file LuminosityBlockAux.cc.

11  {
12  to.processHistoryID_ = from.processHistoryID_;
13  to.id_ = LuminosityBlockID(from.runID_, from.id_);
14  to.beginTime_ = to.endTime_ = Timestamp::invalidTimestamp();
15  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:75

Member Data Documentation

◆ beginTime_

Timestamp edm::LuminosityBlockAuxiliary::beginTime_
private

Definition at line 57 of file LuminosityBlockAuxiliary.h.

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

◆ endTime_

Timestamp edm::LuminosityBlockAuxiliary::endTime_
private

Definition at line 58 of file LuminosityBlockAuxiliary.h.

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

◆ id_

LuminosityBlockID edm::LuminosityBlockAuxiliary::id_
private

Definition at line 55 of file LuminosityBlockAuxiliary.h.

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

◆ processHistoryID_

ProcessHistoryID edm::LuminosityBlockAuxiliary::processHistoryID_
private