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)
 
 LuminosityBlockAuxiliary (LuminosityBlockAuxiliary &&)=default
 
 LuminosityBlockAuxiliary (LuminosityBlockAuxiliary const &)=default
 
void mergeAuxiliary (LuminosityBlockAuxiliary const &newAux)
 
LuminosityBlockAuxiliaryoperator= (LuminosityBlockAuxiliary &&)=default
 
LuminosityBlockAuxiliaryoperator= (LuminosityBlockAuxiliary const &)=default
 
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
 
 ~LuminosityBlockAuxiliary ()
 

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/5]

edm::LuminosityBlockAuxiliary::LuminosityBlockAuxiliary ( )
inline

◆ LuminosityBlockAuxiliary() [2/5]

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

◆ LuminosityBlockAuxiliary() [3/5]

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

◆ LuminosityBlockAuxiliary() [4/5]

edm::LuminosityBlockAuxiliary::LuminosityBlockAuxiliary ( LuminosityBlockAuxiliary &&  )
default

◆ LuminosityBlockAuxiliary() [5/5]

edm::LuminosityBlockAuxiliary::LuminosityBlockAuxiliary ( LuminosityBlockAuxiliary const &  )
default

◆ ~LuminosityBlockAuxiliary()

edm::LuminosityBlockAuxiliary::~LuminosityBlockAuxiliary ( )
inline

Definition at line 28 of file LuminosityBlockAuxiliary.h.

28 {}

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 37 of file LuminosityBlockAuxiliary.h.

References id_.

37 { 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:82
assert(be >=bs)

◆ operator=() [1/2]

LuminosityBlockAuxiliary& edm::LuminosityBlockAuxiliary::operator= ( LuminosityBlockAuxiliary &&  )
default

◆ operator=() [2/2]

LuminosityBlockAuxiliary& edm::LuminosityBlockAuxiliary::operator= ( LuminosityBlockAuxiliary const &  )
default

◆ 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 50 of file LuminosityBlockAuxiliary.h.

References id_, and processHistoryID_.

50  {
51  return iRHS.processHistoryID_ == processHistoryID_ && iRHS.id_ == id_;
52  }

◆ 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 33 of file LuminosityBlockAuxiliary.h.

References processHistoryID_.

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

33 { processHistoryID_ = phid; }

◆ write()

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

Definition at line 10 of file LuminosityBlockAuxiliary.cc.

References id_, 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:82

Member Data Documentation

◆ beginTime_

Timestamp edm::LuminosityBlockAuxiliary::beginTime_
private

Definition at line 62 of file LuminosityBlockAuxiliary.h.

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

◆ endTime_

Timestamp edm::LuminosityBlockAuxiliary::endTime_
private

Definition at line 63 of file LuminosityBlockAuxiliary.h.

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

◆ id_

LuminosityBlockID edm::LuminosityBlockAuxiliary::id_
private

Definition at line 60 of file LuminosityBlockAuxiliary.h.

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

◆ processHistoryID_

ProcessHistoryID edm::LuminosityBlockAuxiliary::processHistoryID_
private