CMS 3D CMS Logo

Public Member Functions | Private Member Functions | Private Attributes | Friends

edm::RunAuxiliary Class Reference

#include <RunAuxiliary.h>

List of all members.

Public Member Functions

Timestamp const & beginTime () const
Timestamp const & endTime () const
RunID const & id () const
RunIDid ()
void mergeAuxiliary (RunAuxiliary const &aux)
ProcessHistoryID const & processHistoryID () const
RunNumber_t run () const
 RunAuxiliary (RunID const &theId, Timestamp const &theTime, Timestamp const &theEndTime)
 RunAuxiliary ()
 RunAuxiliary (RunNumber_t const &run, Timestamp const &theTime, Timestamp const &theEndTime)
void setBeginTime (Timestamp const &time)
void setEndTime (Timestamp const &time)
void setProcessHistoryID (ProcessHistoryID const &phid)
void write (std::ostream &os) const
 ~RunAuxiliary ()

Private Member Functions

void mergeNewTimestampsIntoThis_ (RunAuxiliary const &newAux)

Private Attributes

Timestamp beginTime_
Timestamp endTime_
RunID id_
ProcessHistoryID processHistoryID_

Friends

void conversion (RunAux const &, RunAuxiliary &)

Detailed Description

Definition at line 15 of file RunAuxiliary.h.


Constructor & Destructor Documentation

edm::RunAuxiliary::RunAuxiliary ( ) [inline]

Definition at line 18 of file RunAuxiliary.h.

edm::RunAuxiliary::RunAuxiliary ( RunID const &  theId,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
) [inline]

Definition at line 23 of file RunAuxiliary.h.

                                                                                            :
        processHistoryID_(),
        id_(theId),
        beginTime_(theTime),
        endTime_(theEndTime) {}
edm::RunAuxiliary::RunAuxiliary ( RunNumber_t const &  run,
Timestamp const &  theTime,
Timestamp const &  theEndTime 
) [inline]

Definition at line 28 of file RunAuxiliary.h.

                                                                                                :
        processHistoryID_(),
        id_(run),
        beginTime_(theTime),
        endTime_(theEndTime) {}
edm::RunAuxiliary::~RunAuxiliary ( ) [inline]

Definition at line 33 of file RunAuxiliary.h.

{}

Member Function Documentation

Timestamp const& edm::RunAuxiliary::beginTime ( ) const [inline]
Timestamp const& edm::RunAuxiliary::endTime ( ) const [inline]

Definition at line 40 of file RunAuxiliary.h.

References endTime_.

Referenced by edm::RunPrincipal::endTime(), edm::RunBase::endTime(), and mergeNewTimestampsIntoThis_().

{return endTime_;}
RunID& edm::RunAuxiliary::id ( void  ) [inline]

Definition at line 38 of file RunAuxiliary.h.

References id_.

{return id_;}
RunID const& edm::RunAuxiliary::id ( void  ) const [inline]

Definition at line 37 of file RunAuxiliary.h.

References id_.

Referenced by edm::RunBase::id(), and edm::RunPrincipal::id().

{return id_;}
void edm::RunAuxiliary::mergeAuxiliary ( RunAuxiliary const &  aux)

Definition at line 17 of file RunAuxiliary.cc.

References id_, mergeNewTimestampsIntoThis_(), and processHistoryID_.

                                                         {

    assert(id_ == newAux.id_);
    assert(processHistoryID_ == newAux.processHistoryID_);
    mergeNewTimestampsIntoThis_(newAux);

  }
void edm::RunAuxiliary::mergeNewTimestampsIntoThis_ ( RunAuxiliary const &  newAux) [private]

Definition at line 26 of file RunAuxiliary.cc.

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

Referenced by mergeAuxiliary().

                                                                      {
    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::RunAuxiliary::processHistoryID ( ) const [inline]

Definition at line 35 of file RunAuxiliary.h.

References processHistoryID_.

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

RunNumber_t edm::RunAuxiliary::run ( ) const [inline]

Definition at line 41 of file RunAuxiliary.h.

References id_, and edm::RunID::run().

Referenced by edm::RunPrincipal::run(), edm::RunBase::run(), and edm::RootOutputFile::writeRun().

{return id_.run();}
void edm::RunAuxiliary::setBeginTime ( Timestamp const &  time) [inline]
void edm::RunAuxiliary::setEndTime ( Timestamp const &  time) [inline]
void edm::RunAuxiliary::setProcessHistoryID ( ProcessHistoryID const &  phid) [inline]
void edm::RunAuxiliary::write ( std::ostream &  os) const

Definition at line 11 of file RunAuxiliary.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 ( RunAux const &  from,
RunAuxiliary to 
) [friend]

Member Data Documentation

Definition at line 59 of file RunAuxiliary.h.

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

Definition at line 56 of file RunAuxiliary.h.

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