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 (LuminosityBlockAuxiliary &&)=default
 
 LuminosityBlockAuxiliary (LuminosityBlockAuxiliary const &)=default
 
 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)
 
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

Definition at line 18 of file LuminosityBlockAuxiliary.h.

◆ LuminosityBlockAuxiliary() [2/5]

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

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() [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& edm::LuminosityBlockAuxiliary::id ( )
inline

Definition at line 37 of file LuminosityBlockAuxiliary.h.

37 { 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().

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

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

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

33 { 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 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
submitPVResolutionJobs.theLumi
string theLumi
Definition: submitPVResolutionJobs.py:383
to
cms::cuda::assert
assert(be >=bs)
edm::LuminosityBlockAuxiliary::id_
LuminosityBlockID id_
Definition: LuminosityBlockAuxiliary.h:60
edm::LuminosityBlockAuxiliary::id
LuminosityBlockID const & id() const
Definition: LuminosityBlockAuxiliary.h:36
edm::LuminosityBlockAuxiliary::beginTime_
Timestamp beginTime_
Definition: LuminosityBlockAuxiliary.h:62
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:63
edm::LuminosityBlockAuxiliary::processHistoryID_
ProcessHistoryID processHistoryID_
Definition: LuminosityBlockAuxiliary.h:58
edm::LuminosityBlockID::run
RunNumber_t run() const
Definition: LuminosityBlockID.h:41
ntuplemaker.time
time
Definition: ntuplemaker.py:310