CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 28 of file LuminosityBlockAuxiliary.h.

28 {}

Member Function Documentation

Timestamp const& edm::LuminosityBlockAuxiliary::beginTime ( ) const
inline
Timestamp const& edm::LuminosityBlockAuxiliary::endTime ( ) const
inline
LuminosityBlockID const& edm::LuminosityBlockAuxiliary::id ( ) const
inline
LuminosityBlockID& edm::LuminosityBlockAuxiliary::id ( )
inline

Definition at line 37 of file LuminosityBlockAuxiliary.h.

References id_.

37 { return id_; }
LuminosityBlockNumber_t edm::LuminosityBlockAuxiliary::luminosityBlock ( ) const
inline
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)
LuminosityBlockAuxiliary& edm::LuminosityBlockAuxiliary::operator= ( LuminosityBlockAuxiliary &&  )
default
LuminosityBlockAuxiliary& edm::LuminosityBlockAuxiliary::operator= ( LuminosityBlockAuxiliary const &  )
default
ProcessHistoryID const& edm::LuminosityBlockAuxiliary::processHistoryID ( ) const
inline
RunNumber_t edm::LuminosityBlockAuxiliary::run ( ) const
inline
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  }
void edm::LuminosityBlockAuxiliary::setBeginTime ( Timestamp const &  time)
inline

Definition at line 39 of file LuminosityBlockAuxiliary.h.

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

39  {
41  beginTime_ = time;
42  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:82
void edm::LuminosityBlockAuxiliary::setEndTime ( Timestamp const &  time)
inline

Definition at line 44 of file LuminosityBlockAuxiliary.h.

References endTime_, and edm::Timestamp::invalidTimestamp().

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

44  {
46  endTime_ = time;
47  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:82
void edm::LuminosityBlockAuxiliary::setProcessHistoryID ( ProcessHistoryID const &  phid)
inline
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(), and edm::operator<<().

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

Friends And Related Function Documentation

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

Member Data Documentation

Timestamp edm::LuminosityBlockAuxiliary::beginTime_
private
Timestamp edm::LuminosityBlockAuxiliary::endTime_
private

Definition at line 63 of file LuminosityBlockAuxiliary.h.

Referenced by edm::conversion(), endTime(), mergeAuxiliary(), and setEndTime().

LuminosityBlockID edm::LuminosityBlockAuxiliary::id_
private

Definition at line 60 of file LuminosityBlockAuxiliary.h.

Referenced by edm::conversion(), id(), mergeAuxiliary(), sameIdentity(), and write().

ProcessHistoryID edm::LuminosityBlockAuxiliary::processHistoryID_
private