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
 
LuminosityBlockIDid ()
 
LuminosityBlockID const & id () const
 
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
 
 ~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/3]

edm::LuminosityBlockAuxiliary::LuminosityBlockAuxiliary ( )
inline

Definition at line 18 of file LuminosityBlockAuxiliary.h.

◆ LuminosityBlockAuxiliary() [2/3]

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

Definition at line 19 of file LuminosityBlockAuxiliary.h.

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

◆ LuminosityBlockAuxiliary() [3/3]

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

Definition at line 21 of file LuminosityBlockAuxiliary.h.

25  : processHistoryID_(), id_(theRun, theLumi), beginTime_(theTime), endTime_(theEndTime) {}

◆ ~LuminosityBlockAuxiliary()

edm::LuminosityBlockAuxiliary::~LuminosityBlockAuxiliary ( )
inline

Definition at line 26 of file LuminosityBlockAuxiliary.h.

26 {}

Member Function Documentation

◆ beginTime()

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

◆ endTime()

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

◆ id() [1/2]

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

Definition at line 33 of file LuminosityBlockAuxiliary.h.

33 { return id_; }

References id_.

◆ id() [2/2]

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

◆ luminosityBlock()

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

◆ mergeAuxiliary()

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

Definition at line 15 of file LuminosityBlockAuxiliary.cc.

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  }

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

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

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

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

References id_, and processHistoryID_.

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

29 { processHistoryID_ = phid; }

References processHistoryID_.

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

◆ write()

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

Definition at line 10 of file LuminosityBlockAuxiliary.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 ( 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  }

Member Data Documentation

◆ beginTime_

Timestamp edm::LuminosityBlockAuxiliary::beginTime_
private

Definition at line 58 of file LuminosityBlockAuxiliary.h.

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

◆ endTime_

Timestamp edm::LuminosityBlockAuxiliary::endTime_
private

Definition at line 59 of file LuminosityBlockAuxiliary.h.

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

◆ id_

LuminosityBlockID edm::LuminosityBlockAuxiliary::id_
private

Definition at line 56 of file LuminosityBlockAuxiliary.h.

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

◆ processHistoryID_

ProcessHistoryID edm::LuminosityBlockAuxiliary::processHistoryID_
private
to
cms::cuda::assert
assert(be >=bs)
edm::LuminosityBlockAuxiliary::id_
LuminosityBlockID id_
Definition: LuminosityBlockAuxiliary.h:56
edm::LuminosityBlockAuxiliary::id
LuminosityBlockID const & id() const
Definition: LuminosityBlockAuxiliary.h:32
edm::LuminosityBlockAuxiliary::beginTime_
Timestamp beginTime_
Definition: LuminosityBlockAuxiliary.h:58
edm::LuminosityBlockID::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: LuminosityBlockID.h:42
edm::Timestamp::invalidTimestamp
static Timestamp invalidTimestamp()
Definition: Timestamp.h:82
edm::LuminosityBlockAuxiliary::endTime_
Timestamp endTime_
Definition: LuminosityBlockAuxiliary.h:59
edm::LuminosityBlockAuxiliary::processHistoryID_
ProcessHistoryID processHistoryID_
Definition: LuminosityBlockAuxiliary.h:54
edm::LuminosityBlockID::run
RunNumber_t run() const
Definition: LuminosityBlockID.h:41
ntuplemaker.time
time
Definition: ntuplemaker.py:310