CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Attributes | Private Attributes | Friends
edm::EventAuxiliary Class Reference

#include <EventAuxiliary.h>

Public Types

enum  ExperimentType {
  Undefined = 0, PhysicsTrigger = 1, CalibrationTrigger = 2, RandomTrigger = 3,
  Reserved = 4, TracedEvent = 5, TestTrigger = 6, ErrorTrigger = 15
}
 

Public Member Functions

int bunchCrossing () const
 
EventNumber_t event () const
 
 EventAuxiliary ()
 
 EventAuxiliary (EventID const &theId, std::string const &theProcessGUID, Timestamp const &theTime, bool isReal, ExperimentType eType=Undefined, int bunchXing=invalidBunchXing, int storeNum=invalidStoreNumber, int orbitNum=invalidBunchXing)
 
ExperimentType experimentType () const
 
EventID const & id () const
 
EventIDid ()
 
bool isRealData () const
 
LuminosityBlockNumber_t luminosityBlock () const
 
LuminosityBlockNumber_t oldLuminosityBlock () const
 
int orbitNumber () const
 
std::string const & processGUID () const
 
ProcessHistoryID const & processHistoryID () const
 
void resetObsoleteInfo ()
 
RunNumber_t run () const
 
void setProcessHistoryID (ProcessHistoryID const &phid)
 
int storeNumber () const
 
Timestamp const & time () const
 
void write (std::ostream &os) const
 
 ~EventAuxiliary ()
 

Static Public Attributes

static int const invalidBunchXing = -1
 
static int const invalidStoreNumber = 0
 

Private Attributes

int bunchCrossing_
 
ExperimentType experimentType_
 
EventID id_
 
bool isRealData_
 
LuminosityBlockNumber_t luminosityBlock_
 
int orbitNumber_
 
std::string processGUID_
 
ProcessHistoryID processHistoryID_
 
int storeNumber_
 
Timestamp time_
 

Friends

void conversion (EventAux const &, EventAuxiliary &)
 

Detailed Description

Definition at line 14 of file EventAuxiliary.h.

Member Enumeration Documentation

◆ ExperimentType

Enumerator
Undefined 
PhysicsTrigger 
CalibrationTrigger 
RandomTrigger 
Reserved 
TracedEvent 
TestTrigger 
ErrorTrigger 

Definition at line 18 of file EventAuxiliary.h.

Constructor & Destructor Documentation

◆ EventAuxiliary() [1/2]

edm::EventAuxiliary::EventAuxiliary ( )
inline

Definition at line 30 of file EventAuxiliary.h.

◆ EventAuxiliary() [2/2]

edm::EventAuxiliary::EventAuxiliary ( EventID const &  theId,
std::string const &  theProcessGUID,
Timestamp const &  theTime,
bool  isReal,
ExperimentType  eType = Undefined,
int  bunchXing = invalidBunchXing,
int  storeNum = invalidStoreNumber,
int  orbitNum = invalidBunchXing 
)
inline

Definition at line 41 of file EventAuxiliary.h.

50  id_(theId),
51  processGUID_(theProcessGUID),
52  time_(theTime),
54  isRealData_(isReal),
55  experimentType_(eType),
56  bunchCrossing_(bunchXing),
57  orbitNumber_(orbitNum),
58  storeNumber_(storeNum) {}
ExperimentType experimentType_
ProcessHistoryID processHistoryID_
LuminosityBlockNumber_t luminosityBlock_
std::string processGUID_

◆ ~EventAuxiliary()

edm::EventAuxiliary::~EventAuxiliary ( )
inline

Definition at line 59 of file EventAuxiliary.h.

59 {}

Member Function Documentation

◆ bunchCrossing()

int edm::EventAuxiliary::bunchCrossing ( ) const
inline

Definition at line 76 of file EventAuxiliary.h.

References bunchCrossing_.

Referenced by edm::EventBase::bunchCrossing(), and edm::EventPrincipal::bunchCrossing().

76 { return bunchCrossing_; }

◆ event()

EventNumber_t edm::EventAuxiliary::event ( ) const
inline

◆ experimentType()

ExperimentType edm::EventAuxiliary::experimentType ( ) const
inline

Definition at line 75 of file EventAuxiliary.h.

References experimentType_.

Referenced by edm::EventBase::experimentType(), and edm::EventPrincipal::ExperimentType().

75 { return experimentType_; }
ExperimentType experimentType_

◆ id() [1/2]

EventID const& edm::EventAuxiliary::id ( ) const
inline

◆ id() [2/2]

EventID& edm::EventAuxiliary::id ( )
inline

Definition at line 64 of file EventAuxiliary.h.

References id_.

64 { return id_; }

◆ isRealData()

bool edm::EventAuxiliary::isRealData ( ) const
inline

◆ luminosityBlock()

LuminosityBlockNumber_t edm::EventAuxiliary::luminosityBlock ( ) const
inline

◆ oldLuminosityBlock()

LuminosityBlockNumber_t edm::EventAuxiliary::oldLuminosityBlock ( ) const
inline

Definition at line 70 of file EventAuxiliary.h.

References luminosityBlock_.

70 { return luminosityBlock_; }
LuminosityBlockNumber_t luminosityBlock_

◆ orbitNumber()

int edm::EventAuxiliary::orbitNumber ( ) const
inline

Definition at line 77 of file EventAuxiliary.h.

References orbitNumber_.

Referenced by edm::EventBase::orbitNumber().

77 { return orbitNumber_; }

◆ processGUID()

std::string const& edm::EventAuxiliary::processGUID ( ) const
inline

Definition at line 65 of file EventAuxiliary.h.

References processGUID_.

65 { return processGUID_; }
std::string processGUID_

◆ processHistoryID()

ProcessHistoryID const& edm::EventAuxiliary::processHistoryID ( ) const
inline

◆ resetObsoleteInfo()

void edm::EventAuxiliary::resetObsoleteInfo ( )
inline

Definition at line 71 of file EventAuxiliary.h.

References luminosityBlock_.

71 { luminosityBlock_ = 0; }
LuminosityBlockNumber_t luminosityBlock_

◆ run()

RunNumber_t edm::EventAuxiliary::run ( ) const
inline

◆ setProcessHistoryID()

void edm::EventAuxiliary::setProcessHistoryID ( ProcessHistoryID const &  phid)
inline

◆ storeNumber()

int edm::EventAuxiliary::storeNumber ( ) const
inline

Definition at line 78 of file EventAuxiliary.h.

References storeNumber_.

Referenced by edm::EventPrincipal::storeNumber().

78 { return storeNumber_; }

◆ time()

Timestamp const& edm::EventAuxiliary::time ( ) const
inline

Definition at line 66 of file EventAuxiliary.h.

References time_.

Referenced by edm::EventForOutput::time(), edm::EventBase::time(), and edm::EventPrincipal::time().

66 { return time_; }

◆ write()

void edm::EventAuxiliary::write ( std::ostream &  os) const

Definition at line 9 of file EventAuxiliary.cc.

References id_, l1tGTMenu_BTagSeeds_cff::os, and processHistoryID_.

Referenced by pkg.AbstractPkg::generate().

9  {
10  os << "Process History ID = " << processHistoryID_ << std::endl;
11  os << id_ << std::endl;
12  //os << "TimeStamp = " << time_ << std::endl;
13  }
ProcessHistoryID processHistoryID_

Friends And Related Function Documentation

◆ conversion

void conversion ( EventAux const &  from,
EventAuxiliary to 
)
friend

Definition at line 9 of file EventAux.cc.

9  {
10  to.processHistoryID_ = from.processHistoryID_;
11  to.id_ = from.id_;
12  to.time_ = from.time_;
13  to.luminosityBlock_ = from.luminosityBlockID_;
14  }

Member Data Documentation

◆ bunchCrossing_

int edm::EventAuxiliary::bunchCrossing_
private

Definition at line 97 of file EventAuxiliary.h.

Referenced by bunchCrossing().

◆ experimentType_

ExperimentType edm::EventAuxiliary::experimentType_
private

Definition at line 95 of file EventAuxiliary.h.

Referenced by experimentType().

◆ id_

EventID edm::EventAuxiliary::id_
private

Definition at line 85 of file EventAuxiliary.h.

Referenced by event(), id(), luminosityBlock(), run(), and write().

◆ invalidBunchXing

int const edm::EventAuxiliary::invalidBunchXing = -1
static

Definition at line 28 of file EventAuxiliary.h.

◆ invalidStoreNumber

int const edm::EventAuxiliary::invalidStoreNumber = 0
static

Definition at line 29 of file EventAuxiliary.h.

Referenced by edm::EventAuxiliaryHistoryProducer::produce().

◆ isRealData_

bool edm::EventAuxiliary::isRealData_
private

Definition at line 93 of file EventAuxiliary.h.

Referenced by isRealData().

◆ luminosityBlock_

LuminosityBlockNumber_t edm::EventAuxiliary::luminosityBlock_
private

Definition at line 91 of file EventAuxiliary.h.

Referenced by luminosityBlock(), oldLuminosityBlock(), and resetObsoleteInfo().

◆ orbitNumber_

int edm::EventAuxiliary::orbitNumber_
private

Definition at line 99 of file EventAuxiliary.h.

Referenced by orbitNumber().

◆ processGUID_

std::string edm::EventAuxiliary::processGUID_
private

Definition at line 87 of file EventAuxiliary.h.

Referenced by processGUID().

◆ processHistoryID_

ProcessHistoryID edm::EventAuxiliary::processHistoryID_
private

Definition at line 83 of file EventAuxiliary.h.

Referenced by processHistoryID(), setProcessHistoryID(), and write().

◆ storeNumber_

int edm::EventAuxiliary::storeNumber_
private

Definition at line 101 of file EventAuxiliary.h.

Referenced by storeNumber().

◆ time_

Timestamp edm::EventAuxiliary::time_
private

Definition at line 89 of file EventAuxiliary.h.

Referenced by time().