1 #ifndef DPGanalysis_SiStripTools_TinyEvent_H 2 #define DPGanalysis_SiStripTools_TinyEvent_H 18 _event(event), _orbit(orbit<0 ? 0 : orbit ), _bx(bx<0 ? 0 : bx) { }
21 _event(event), _orbit(orbit), _bx(bx<0 ? 0 : bx) { }
24 _event(se._event), _orbit(se._orbit), _bx(se._bx) { }
42 return _event < other.
_event;
46 return (_event == other.
_event) &&
47 (_orbit == other.
_orbit) &&
59 return (
long long)_orbit * 3564 + _bx;
65 return (absoluteBX()-bx0);
72 if(se.
_event > _event) sign = -1;
75 return (dorb*3564 + (
int)_bx - (
int)se.
_bx) *
sign;
81 long long dbx = deltaBX(se);
95 #endif // DPGanalysis_SiStripTools_TinyEvent_H long long absoluteBXinCycle(const int bx0) const
int operator<(const TinyEvent &other) const
std::vector< TinyEvent > TinyEventCollection
unsigned long long EventNumber_t
TinyEvent(const edm::EventNumber_t event, const int orbit, const int bx)
TinyEvent(const edm::EventNumber_t event, const unsigned int orbit, const int bx)
TinyEvent(const TinyEvent &se)
TinyEvent & operator=(const TinyEvent &se)
long long absoluteBX() const
long long deltaBX(const TinyEvent &se) const
int isNextOf(const TinyEvent &se) const
edm::EventNumber_t _event
int operator==(const TinyEvent &other) const
long long deltaBXinCycle(const TinyEvent &se, const int bx0) const