CMS 3D CMS Logo

EventAuxiliary.h
Go to the documentation of this file.
1 #ifndef DataFormats_Provenance_EventAuxiliary_h
2 #define DataFormats_Provenance_EventAuxiliary_h
3 
4 #include <iosfwd>
5 
9 
10 // Auxiliary event data that is persistent
11 
12 namespace edm {
13  class EventAux;
15  public:
16  friend void conversion(EventAux const&, EventAuxiliary&);
17  // Updated on 9 Feb. '09 on a request from Emelio Meschi
19  Undefined = 0,
23  Reserved = 4,
27  };
28  static int const invalidBunchXing = -1;
29  static int const invalidStoreNumber = 0;
32  id_(),
33  processGUID_(),
34  time_(),
41  EventAuxiliary(EventID const& theId,
42  std::string const& theProcessGUID,
43  Timestamp const& theTime,
44  bool isReal,
45  ExperimentType eType = Undefined,
46  int bunchXing = invalidBunchXing,
47  int storeNum = invalidStoreNumber,
48  int orbitNum = invalidBunchXing)
50  id_(theId),
51  processGUID_(theProcessGUID),
52  time_(theTime),
54  isRealData_(isReal),
55  experimentType_(eType),
56  bunchCrossing_(bunchXing),
57  orbitNumber_(orbitNum),
58  storeNumber_(storeNum) {}
60  void write(std::ostream& os) const;
63  EventID const& id() const { return id_; }
64  EventID& id() { return id_; }
65  std::string const& processGUID() const { return processGUID_; }
66  Timestamp const& time() const { return time_; }
69  }
72  EventNumber_t event() const { return id_.event(); }
73  RunNumber_t run() const { return id_.run(); }
74  bool isRealData() const { return isRealData_; }
76  int bunchCrossing() const { return bunchCrossing_; }
77  int orbitNumber() const { return orbitNumber_; }
78  int storeNumber() const { return storeNumber_; }
79 
80  private:
81  // Process history ID of the full process history (not the reduced process history)
83  // Event ID
85  // Globally unique process ID of process that created event.
87  // Time from DAQ
89  // Associated Luminosity Block identifier (obsolete. for backward compatibility only)
91  // Is this real data (i.e. not simulated)
93  // Something descriptive of the source of the data
95  // The bunch crossing number
97  // The orbit number
99  // The LHC store number
101  };
102 
103  bool isSameEvent(EventAuxiliary const& a, EventAuxiliary const& b);
104 
105  inline std::ostream& operator<<(std::ostream& os, const EventAuxiliary& p) {
106  p.write(os);
107  return os;
108  }
109 
110 } // namespace edm
111 
112 #endif
edm::RunNumber_t
unsigned int RunNumber_t
Definition: RunLumiEventNumber.h:14
edm::EventAuxiliary::event
EventNumber_t event() const
Definition: EventAuxiliary.h:72
ProcessHistoryID.h
funct::false
false
Definition: Factorize.h:29
edm::EventAuxiliary::invalidStoreNumber
static const int invalidStoreNumber
Definition: EventAuxiliary.h:29
edm::EventAuxiliary::storeNumber
int storeNumber() const
Definition: EventAuxiliary.h:78
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::EventAuxiliary::id
EventID & id()
Definition: EventAuxiliary.h:64
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::EventAuxiliary::CalibrationTrigger
Definition: EventAuxiliary.h:21
edm::EventAuxiliary::oldLuminosityBlock
LuminosityBlockNumber_t oldLuminosityBlock() const
Definition: EventAuxiliary.h:70
edm::EventID::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: EventID.h:39
edm::LuminosityBlockNumber_t
unsigned int LuminosityBlockNumber_t
Definition: RunLumiEventNumber.h:13
edm::EventAuxiliary::bunchCrossing
int bunchCrossing() const
Definition: EventAuxiliary.h:76
edm::EventAuxiliary::orbitNumber_
int orbitNumber_
Definition: EventAuxiliary.h:98
edm::operator<<
std::ostream & operator<<(std::ostream &ost, const HLTGlobalStatus &hlt)
Formatted printout of trigger tbale.
Definition: HLTGlobalStatus.h:106
edm::EventAuxiliary::run
RunNumber_t run() const
Definition: EventAuxiliary.h:73
edm::EventAuxiliary::experimentType_
ExperimentType experimentType_
Definition: EventAuxiliary.h:94
edm::EventAuxiliary::resetObsoleteInfo
void resetObsoleteInfo()
Definition: EventAuxiliary.h:71
EventID.h
edm::EventAuxiliary::processGUID_
std::string processGUID_
Definition: EventAuxiliary.h:86
edm::EventAuxiliary::id
EventID const & id() const
Definition: EventAuxiliary.h:63
edm::EventAuxiliary::~EventAuxiliary
~EventAuxiliary()
Definition: EventAuxiliary.h:59
edm::Hash< ProcessHistoryType >
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
edm::EventAux
Definition: EventAux.h:15
edm::EventAuxiliary::storeNumber_
int storeNumber_
Definition: EventAuxiliary.h:100
b
double b
Definition: hdecay.h:118
edm::EventAuxiliary::experimentType
ExperimentType experimentType() const
Definition: EventAuxiliary.h:75
edm::EventID::run
RunNumber_t run() const
Definition: EventID.h:38
mitigatedMETSequence_cff.U
U
Definition: mitigatedMETSequence_cff.py:36
edm::EventAuxiliary
Definition: EventAuxiliary.h:14
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::EventAuxiliary::orbitNumber
int orbitNumber() const
Definition: EventAuxiliary.h:77
edm::EventAuxiliary::Reserved
Definition: EventAuxiliary.h:23
edm::EventAuxiliary::id_
EventID id_
Definition: EventAuxiliary.h:84
a
double a
Definition: hdecay.h:119
Timestamp.h
edm::EventAuxiliary::luminosityBlock
LuminosityBlockNumber_t luminosityBlock() const
Definition: EventAuxiliary.h:67
edm::EventAuxiliary::conversion
friend void conversion(EventAux const &, EventAuxiliary &)
Definition: EventAux.cc:9
edm::EventAuxiliary::processHistoryID_
ProcessHistoryID processHistoryID_
Definition: EventAuxiliary.h:82
edm::EventID::event
EventNumber_t event() const
Definition: EventID.h:40
edm::EventAuxiliary::TracedEvent
Definition: EventAuxiliary.h:24
edm::EventAuxiliary::luminosityBlock_
LuminosityBlockNumber_t luminosityBlock_
Definition: EventAuxiliary.h:90
edm::EventAuxiliary::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)
Definition: EventAuxiliary.h:41
edm::EventAuxiliary::time
Timestamp const & time() const
Definition: EventAuxiliary.h:66
edm::EventAuxiliary::Undefined
Definition: EventAuxiliary.h:19
edm::EventAuxiliary::bunchCrossing_
int bunchCrossing_
Definition: EventAuxiliary.h:96
edm::EventAuxiliary::PhysicsTrigger
Definition: EventAuxiliary.h:20
edm::EventAuxiliary::processHistoryID
ProcessHistoryID const & processHistoryID() const
Definition: EventAuxiliary.h:61
edm::EventAuxiliary::ExperimentType
ExperimentType
Definition: EventAuxiliary.h:18
edm::isSameEvent
bool isSameEvent(EventAuxiliary const &a, EventAuxiliary const &b)
Definition: EventAuxiliary.cc:15
edm::EventAuxiliary::ErrorTrigger
Definition: EventAuxiliary.h:26
edm::EventAuxiliary::invalidBunchXing
static const int invalidBunchXing
Definition: EventAuxiliary.h:28
edm::EventAuxiliary::isRealData_
bool isRealData_
Definition: EventAuxiliary.h:92
edm::EventAuxiliary::EventAuxiliary
EventAuxiliary()
Definition: EventAuxiliary.h:30
edm::EventAuxiliary::write
void write(std::ostream &os) const
Definition: EventAuxiliary.cc:9
edm::EventAuxiliary::time_
Timestamp time_
Definition: EventAuxiliary.h:88
edm::EventAuxiliary::processGUID
std::string const & processGUID() const
Definition: EventAuxiliary.h:65
edm::EventAuxiliary::isRealData
bool isRealData() const
Definition: EventAuxiliary.h:74
edm::EventID
Definition: EventID.h:31
edm::EventAuxiliary::TestTrigger
Definition: EventAuxiliary.h:25
edm::EventAuxiliary::setProcessHistoryID
void setProcessHistoryID(ProcessHistoryID const &phid)
Definition: EventAuxiliary.h:62
edm::EventAuxiliary::RandomTrigger
Definition: EventAuxiliary.h:22
edm::Timestamp
Definition: Timestamp.h:30