CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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);
25  EventWithHistory(const edm::Event& event,
26  const L1AcceptBunchCrossingCollection& l11bcc,
27  const long long orbitoffset = 0,
28  const int bxoffset = 0);
29  EventWithHistory(const edm::Event& event,
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
unsigned int depth() const
long long deltaBX() const
const unsigned int orbit() const
unsigned long long EventNumber_t
long long absoluteBXinCycle(const unsigned int ev1, const int bx0) const
Class to contain information from TCDS FED.
Definition: TCDSRecord.h:19
std::vector< TinyEvent > _prevse
std::vector< L1AcceptBunchCrossing > L1AcceptBunchCrossingCollection
int add(const EventWithHistory &he, const int idepth)
const int bx() const
const edm::EventNumber_t event() const
long long deltaBXinCycle(const unsigned int ev2, const unsigned int ev1, const int bx0) const
bool isFutureHistory() const
long long absoluteBX() const
EventWithHistory & operator=(const EventWithHistory &he)
int operator==(const EventWithHistory &other) const