#include <TinyEvent.h>
Public Member Functions | |
long long | absoluteBX () const |
long long | absoluteBXinCycle (const int bx0) const |
long long | deltaBX (const TinyEvent &se) const |
long long | deltaBXinCycle (const TinyEvent &se, const int bx0) const |
int | isNextOf (const TinyEvent &se) const |
int | operator< (const TinyEvent &other) const |
TinyEvent & | operator= (const TinyEvent &se) |
int | operator== (const TinyEvent &other) const |
TinyEvent () | |
TinyEvent (const unsigned int event, const unsigned int orbit, const int bx) | |
TinyEvent (const edm::Event &event) | |
TinyEvent (const unsigned int event, const int orbit, const int bx) | |
TinyEvent (const edm::EventAuxiliary &eaux) | |
TinyEvent (const TinyEvent &se) | |
Public Attributes | |
unsigned int | _bx |
unsigned int | _event |
unsigned int | _orbit |
Definition at line 13 of file TinyEvent.h.
TinyEvent::TinyEvent | ( | ) | [inline] |
Definition at line 15 of file TinyEvent.h.
TinyEvent::TinyEvent | ( | const unsigned int | event, |
const int | orbit, | ||
const int | bx | ||
) | [inline, explicit] |
TinyEvent::TinyEvent | ( | const unsigned int | event, |
const unsigned int | orbit, | ||
const int | bx | ||
) | [inline, explicit] |
TinyEvent::TinyEvent | ( | const TinyEvent & | se | ) | [inline] |
TinyEvent::TinyEvent | ( | const edm::Event & | event | ) |
Definition at line 6 of file TinyEvent.cc.
: _event(event.id().event()), _orbit(event.orbitNumber() < 0 ? 0 : event.orbitNumber()), _bx(event.bunchCrossing() < 0 ? 0 : event.bunchCrossing()) { }
TinyEvent::TinyEvent | ( | const edm::EventAuxiliary & | eaux | ) |
Definition at line 11 of file TinyEvent.cc.
: _event(eaux.event()), _orbit(eaux.orbitNumber() < 0 ? 0 : eaux.orbitNumber()), _bx(eaux.bunchCrossing() < 0 ? 0 : eaux.bunchCrossing()) { }
long long TinyEvent::absoluteBX | ( | ) | const [inline] |
Reimplemented in EventWithHistory.
Definition at line 57 of file TinyEvent.h.
Referenced by absoluteBXinCycle(), and deltaBXinCycle().
long long TinyEvent::absoluteBXinCycle | ( | const int | bx0 | ) | const [inline] |
Reimplemented in EventWithHistory.
Definition at line 63 of file TinyEvent.h.
References absoluteBX().
{ return (absoluteBX()-bx0); }
long long TinyEvent::deltaBX | ( | const TinyEvent & | se | ) | const [inline] |
Reimplemented in EventWithHistory.
Definition at line 69 of file TinyEvent.h.
References _bx, _event, and _orbit.
Referenced by deltaBXinCycle().
long long TinyEvent::deltaBXinCycle | ( | const TinyEvent & | se, |
const int | bx0 | ||
) | const [inline] |
Reimplemented in EventWithHistory.
Definition at line 79 of file TinyEvent.h.
References absoluteBX(), and deltaBX().
{ long long dbx = deltaBX(se); return dbx+(69 + se.absoluteBX() -bx0%70 )%70; // I could use: dbx+(69+se.absoluteBXinCycle(bx0))%70 }
int TinyEvent::isNextOf | ( | const TinyEvent & | se | ) | const [inline] |
Definition at line 51 of file TinyEvent.h.
References _event.
Referenced by EventWithHistory::add(), and EventWithHistory::isFutureHistory().
int TinyEvent::operator< | ( | const TinyEvent & | other | ) | const [inline] |
int TinyEvent::operator== | ( | const TinyEvent & | other | ) | const [inline] |
unsigned int TinyEvent::_bx |
Definition at line 89 of file TinyEvent.h.
Referenced by absoluteBX(), EventWithHistory::bx(), deltaBX(), operator=(), and operator==().
unsigned int TinyEvent::_event |
Definition at line 87 of file TinyEvent.h.
Referenced by deltaBX(), EventWithHistory::event(), isNextOf(), operator<(), operator=(), operator==(), and EventWithHistoryProducer::produce().
unsigned int TinyEvent::_orbit |
Definition at line 88 of file TinyEvent.h.
Referenced by absoluteBX(), deltaBX(), operator=(), operator==(), and EventWithHistory::orbit().