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
long long absoluteBXinCycle(const unsigned int ev1, const int bx0) const
unsigned long long EventNumber_t
const unsigned int orbit() const
const edm::EventNumber_t event() const
Class to contain information from TCDS FED.
Definition: TCDSRecord.h:19
std::vector< TinyEvent > _prevse
long long absoluteBX() const
const int bx() const
int operator==(const EventWithHistory &other) const
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
unsigned int depth() const
int add(const EventWithHistory &he, const int idepth)
bool isFutureHistory() const
HLT enums.
EventWithHistory & operator=(const EventWithHistory &he)
long long deltaBX() const
long long deltaBXinCycle(const unsigned int ev2, const unsigned int ev1, const int bx0) const
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
Definition: event.py:1