CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

edm::LuminosityBlockAuxiliary Class Reference

#include <LuminosityBlockAuxiliary.h>

List of all members.

Public Member Functions

Timestamp const & beginTime () const
Timestamp const & endTime () const
LuminosityBlockIDid ()
LuminosityBlockID const & id () const
LuminosityBlockNumber_t luminosityBlock () const
 LuminosityBlockAuxiliary (LuminosityBlockID const &theId, Timestamp const &theTime, Timestamp const &theEndTime)
 LuminosityBlockAuxiliary ()
 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]

Definition at line 18 of file LuminosityBlockAuxiliary.h.

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

Definition at line 23 of file LuminosityBlockAuxiliary.h.

                                                          :
        processHistoryID_(),
        id_(theId),
        beginTime_(theTime),
        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.

                                                          :
        processHistoryID_(),
        id_(theRun, theLumi),
        beginTime_(theTime),
        endTime_(theEndTime) {}
edm::LuminosityBlockAuxiliary::~LuminosityBlockAuxiliary ( ) [inline]

Definition at line 38 of file LuminosityBlockAuxiliary.h.

{}

Member Function Documentation

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

Definition at line 44 of file LuminosityBlockAuxiliary.h.

References id_.

Referenced by edm::LuminosityBlockBase::id(), edm::LuminosityBlockPrincipal::id(), luminosityBlock(), and run().

{return id_;}
LuminosityBlockID& edm::LuminosityBlockAuxiliary::id ( void  ) [inline]

Definition at line 45 of file LuminosityBlockAuxiliary.h.

References id_.

{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 beginTime(), beginTime_, endTime(), endTime_, id_, and edm::Timestamp::invalidTimestamp().

                                                                                 {
    assert(id_ == newAux.id_);
    if (beginTime_ == Timestamp::invalidTimestamp() ||
        newAux.beginTime() == Timestamp::invalidTimestamp()) {
      beginTime_ = Timestamp::invalidTimestamp();
    }
    else if (newAux.beginTime() < beginTime_) {
      beginTime_ = newAux.beginTime();
    }
   
    if (endTime_ == Timestamp::invalidTimestamp() ||
        newAux.endTime() == Timestamp::invalidTimestamp()) {
      endTime_ = Timestamp::invalidTimestamp();
    }
    else if (newAux.endTime() > endTime_) {
      endTime_ = newAux.endTime();
    }
  }
ProcessHistoryID const& edm::LuminosityBlockAuxiliary::processHistoryID ( ) const [inline]

Definition at line 40 of file LuminosityBlockAuxiliary.h.

References processHistoryID_.

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

RunNumber_t edm::LuminosityBlockAuxiliary::run ( ) const [inline]
void edm::LuminosityBlockAuxiliary::setBeginTime ( Timestamp const &  time) [inline]
void edm::LuminosityBlockAuxiliary::setEndTime ( Timestamp const &  time) [inline]
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 edm::operator<<().

                                                      {
    os << "Process History ID = " <<  processHistoryID_ << std::endl;
    os << id_ << std::endl;
  }

Friends And Related Function Documentation

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

Member Data Documentation

Definition at line 65 of file LuminosityBlockAuxiliary.h.

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

Definition at line 62 of file LuminosityBlockAuxiliary.h.

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