CMS 3D CMS Logo

EventWithHistory.h
Go to the documentation of this file.
1 #ifndef DPGAnalysis_SiStripTools_EventWithHistory_H
2 #define DPGAnalysis_SiStripTools_EventWithHistory_H
3 
4 #include <vector>
6 
7 namespace edm {
8  class Event;
9  class EventAuxiliary;
10 } // namespace edm
11 
12 class EventBXHistory;
14 typedef std::vector<L1AcceptBunchCrossing> L1AcceptBunchCrossingCollection;
15 class TCDSRecord;
16 
17 class EventWithHistory : public TinyEvent {
18 public:
20  explicit EventWithHistory(const TinyEvent& se);
21  explicit EventWithHistory(const edm::EventNumber_t event, const int orbit, const int bx);
22  explicit EventWithHistory(const edm::EventNumber_t event, const unsigned int orbit, const int bx);
23  explicit EventWithHistory(const edm::Event& event);
24  EventWithHistory(const std::vector<edm::EventAuxiliary>& he);
26  const L1AcceptBunchCrossingCollection& l11bcc,
27  const long long orbitoffset = 0,
28  const int bxoffset = 0);
30  const TCDSRecord& tcdsRecord,
31  const long long orbitoffset = 0,
32  const int bxoffset = 0);
34 
36 
37  // int operator<(const EventWithHistory& other) const;
38  int operator==(const EventWithHistory& other) const;
39 
40  int add(const EventWithHistory& he, const int idepth); // return false if depth limit reached or not consecutive
41  int add(const TinyEvent& he, const int idepth); // return false if depth limit reached or not consecutive
42 
43  const edm::EventNumber_t event() const;
44  const unsigned int orbit() const;
45  const int bx() const;
46 
47  const TinyEvent* get(const unsigned int ev) const;
48  unsigned int depth() const;
49  bool isFutureHistory() const;
50 
51  long long deltaBX(const unsigned int ev2, const unsigned int ev1) const;
52  long long deltaBX(const unsigned int ev1) const;
53  long long deltaBX() const;
54  long long deltaBX(const TinyEvent& se) const;
55 
56  long long absoluteBX(const unsigned int ev1) const;
57  long long absoluteBX() const;
58 
59  long long absoluteBXinCycle(const unsigned int ev1, const int bx0) const;
60  long long absoluteBXinCycle(const int bx0) const;
61 
62  long long deltaBXinCycle(const unsigned int ev2, const unsigned int ev1, const int bx0) const;
63  long long deltaBXinCycle(const unsigned int ev1, const int bx0) const;
64  long long deltaBXinCycle(const int bx0) const;
65  long long deltaBXinCycle(const TinyEvent& se, const int bx0) const;
66 
67 private:
68  std::vector<TinyEvent> _prevse;
69 };
70 
71 #endif // DPGAnalysis_SiStripTools_EventWithHistory_H
EventWithHistory::_prevse
std::vector< TinyEvent > _prevse
Definition: EventWithHistory.h:68
simpleEdmComparison.ev2
ev2
Definition: simpleEdmComparison.py:153
edm
HLT enums.
Definition: AlignableModifier.h:19
L1AcceptBunchCrossing
Definition: L1AcceptBunchCrossing.h:37
EventWithHistory::operator==
int operator==(const EventWithHistory &other) const
Definition: EventWithHistory.cc:197
EventWithHistory::depth
unsigned int depth() const
Definition: EventWithHistory.cc:269
EventWithHistory::isFutureHistory
bool isFutureHistory() const
Definition: EventWithHistory.cc:271
L1AcceptBunchCrossingCollection
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
Definition: L1AcceptBunchCrossing.h:83
Event
trackingPlots.other
other
Definition: trackingPlots.py:1465
edm::EventNumber_t
unsigned long long EventNumber_t
Definition: RunLumiEventNumber.h:12
EventWithHistory::EventWithHistory
EventWithHistory()
Definition: EventWithHistory.cc:9
EventWithHistory::get
const TinyEvent * get(const unsigned int ev) const
Definition: EventWithHistory.cc:261
EventWithHistory::operator=
EventWithHistory & operator=(const EventWithHistory &he)
Definition: EventWithHistory.cc:187
EventWithHistory::deltaBX
long long deltaBX() const
Definition: EventWithHistory.cc:288
EventWithHistory::orbit
const unsigned int orbit() const
Definition: EventWithHistory.cc:258
EventWithHistory::event
const edm::EventNumber_t event() const
Definition: EventWithHistory.cc:257
EventWithHistory
Definition: EventWithHistory.h:17
EventWithHistory::deltaBXinCycle
long long deltaBXinCycle(const unsigned int ev2, const unsigned int ev1, const int bx0) const
Definition: EventWithHistory.cc:314
EventWithHistory::absoluteBX
long long absoluteBX() const
Definition: EventWithHistory.cc:301
simpleEdmComparison.ev1
ev1
Definition: simpleEdmComparison.py:153
TinyEvent
Definition: TinyEvent.h:13
hcalSimParameters_cfi.he
he
Definition: hcalSimParameters_cfi.py:75
EventWithHistory::bx
const int bx() const
Definition: EventWithHistory.cc:259
TCDSRecord
Class to contain information from TCDS FED.
Definition: TCDSRecord.h:19
ev
bool ev
Definition: Hydjet2Hadronizer.cc:95
EventWithHistory::absoluteBXinCycle
long long absoluteBXinCycle(const unsigned int ev1, const int bx0) const
Definition: EventWithHistory.cc:303
event
Definition: event.py:1
edm::Event
Definition: Event.h:73
L1AcceptBunchCrossingCollection
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
Definition: EventWithHistory.h:13
EventWithHistory::add
int add(const EventWithHistory &he, const int idepth)
Definition: EventWithHistory.cc:213
TinyEvent.h