CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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)
 
void mergeAuxiliary (LuminosityBlockAuxiliary const &newAux)
 
ProcessHistoryID const & processHistoryID () const
 
RunNumber_t run () 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

Definition at line 23 of file LuminosityBlockAuxiliary.h.

25  :
27  id_(theId),
28  beginTime_(theTime),
29  endTime_(theEndTime) {}
edm::LuminosityBlockAuxiliary::LuminosityBlockAuxiliary ( RunNumber_t const &  theRun,
LuminosityBlockNumber_t const &  theLumi,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
)
inline

Definition at line 30 of file LuminosityBlockAuxiliary.h.

33  :
35  id_(theRun, theLumi),
36  beginTime_(theTime),
37  endTime_(theEndTime) {}
edm::LuminosityBlockAuxiliary::~LuminosityBlockAuxiliary ( )
inline

Definition at line 38 of file LuminosityBlockAuxiliary.h.

38 {}

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

References id_.

45 {return id_;}
LuminosityBlockNumber_t edm::LuminosityBlockAuxiliary::luminosityBlock ( ) const
inline
void edm::LuminosityBlockAuxiliary::mergeAuxiliary ( LuminosityBlockAuxiliary const &  newAux)

Definition at line 17 of file LuminosityBlockAuxiliary.cc.

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

17  {
18  assert(id_ == newAux.id_);
20  newAux.beginTime() == Timestamp::invalidTimestamp()) {
22  }
23  else if (newAux.beginTime() < beginTime_) {
24  beginTime_ = newAux.beginTime();
25  }
26 
28  newAux.endTime() == Timestamp::invalidTimestamp()) {
30  }
31  else if (newAux.endTime() > endTime_) {
32  endTime_ = newAux.endTime();
33  }
34  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:101
assert(m_qm.get())
ProcessHistoryID const& edm::LuminosityBlockAuxiliary::processHistoryID ( ) const
inline

Definition at line 40 of file LuminosityBlockAuxiliary.h.

References processHistoryID_.

Referenced by fwlite::LuminosityBlock::history().

40 {return processHistoryID_;}
RunNumber_t edm::LuminosityBlockAuxiliary::run ( ) const
inline
void edm::LuminosityBlockAuxiliary::setBeginTime ( Timestamp const &  time)
inline

Definition at line 47 of file LuminosityBlockAuxiliary.h.

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

47  {
49  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:101
void edm::LuminosityBlockAuxiliary::setEndTime ( Timestamp const &  time)
inline

Definition at line 51 of file LuminosityBlockAuxiliary.h.

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

51  {
53  }
static Timestamp invalidTimestamp()
Definition: Timestamp.h:101
void edm::LuminosityBlockAuxiliary::setProcessHistoryID ( ProcessHistoryID const &  phid)
inline
void edm::LuminosityBlockAuxiliary::write ( std::ostream &  os) const

Definition at line 11 of file LuminosityBlockAuxiliary.cc.

References id_, and processHistoryID_.

Referenced by pkg.AbstractPkg::generate(), and edm::operator<<().

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

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

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

LuminosityBlockID edm::LuminosityBlockAuxiliary::id_
private

Definition at line 62 of file LuminosityBlockAuxiliary.h.

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

ProcessHistoryID edm::LuminosityBlockAuxiliary::processHistoryID_
private