test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 }
11 
12 class EventBXHistory;
14 typedef std::vector<L1AcceptBunchCrossing> L1AcceptBunchCrossingCollection;
15 
16 class EventWithHistory: public TinyEvent {
17 
18  public:
19 
21  explicit EventWithHistory(const TinyEvent& se);
22  explicit EventWithHistory(const edm::EventNumber_t event,const int orbit,const int bx);
23  explicit EventWithHistory(const edm::EventNumber_t event,const unsigned int orbit,const int bx);
24  explicit EventWithHistory(const edm::Event& event);
25  EventWithHistory(const std::vector<edm::EventAuxiliary>& he);
26  EventWithHistory(const edm::Event& event, const L1AcceptBunchCrossingCollection& l11bcc,
27  const long long orbitoffset=0, const int bxoffset=0);
29 
31 
32  // int operator<(const EventWithHistory& other) const;
33  int operator==(const EventWithHistory& other) const;
34 
35  int add(const EventWithHistory& he, const int idepth); // return false if depth limit reached or not consecutive
36  int add(const TinyEvent& he, const int idepth); // return false if depth limit reached or not consecutive
37 
38  const edm::EventNumber_t event() const;
39  const unsigned int orbit() const;
40  const int bx() const;
41 
42  const TinyEvent* get(const unsigned int ev) const;
43  unsigned int depth() const;
44  bool isFutureHistory() const;
45 
46  long long deltaBX(const unsigned int ev2, const unsigned int ev1) const;
47  long long deltaBX(const unsigned int ev1) const;
48  long long deltaBX() const;
49  long long deltaBX(const TinyEvent& se) const;
50 
51  long long absoluteBX(const unsigned int ev1) const;
52  long long absoluteBX() const;
53 
54  long long absoluteBXinCycle(const unsigned int ev1, const int bx0) const;
55  long long absoluteBXinCycle(const int bx0) const;
56 
57  long long deltaBXinCycle(const unsigned int ev2, const unsigned int ev1, const int bx0) const;
58  long long deltaBXinCycle(const unsigned int ev1, const int bx0) const;
59  long long deltaBXinCycle(const int bx0) const;
60  long long deltaBXinCycle(const TinyEvent& se, const int bx0) const;
61 
62  private:
63 
64  std::vector<TinyEvent> _prevse;
65 
66 };
67 
68 
69 
70 
71 #endif // DPGAnalysis_SiStripTools_EventWithHistory_H
72 
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
bool ev
Definition: Event.h:16
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