CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
TinyEvent Struct Reference

#include <TinyEvent.h>

Inheritance diagram for TinyEvent:
EventWithHistory

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
 
TinyEventoperator= (const TinyEvent &se)
 
int operator== (const TinyEvent &other) const
 
 TinyEvent ()
 
 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 (const edm::Event &event)
 
 TinyEvent (const edm::EventAuxiliary &eaux)
 

Public Attributes

unsigned int _bx
 
edm::EventNumber_t _event
 
unsigned int _orbit
 

Detailed Description

Definition at line 13 of file TinyEvent.h.

Constructor & Destructor Documentation

TinyEvent::TinyEvent ( )
inline

Definition at line 15 of file TinyEvent.h.

15 :_event(0), _orbit(0), _bx(0) { }
unsigned int _bx
Definition: TinyEvent.h:89
edm::EventNumber_t _event
Definition: TinyEvent.h:87
unsigned int _orbit
Definition: TinyEvent.h:88
TinyEvent::TinyEvent ( const edm::EventNumber_t  event,
const int  orbit,
const int  bx 
)
inlineexplicit

Definition at line 17 of file TinyEvent.h.

17  :
18  _event(event), _orbit(orbit<0 ? 0 : orbit ), _bx(bx<0 ? 0 : bx) { }
unsigned int _bx
Definition: TinyEvent.h:89
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EventNumber_t _event
Definition: TinyEvent.h:87
unsigned int _orbit
Definition: TinyEvent.h:88
TinyEvent::TinyEvent ( const edm::EventNumber_t  event,
const unsigned int  orbit,
const int  bx 
)
inlineexplicit

Definition at line 20 of file TinyEvent.h.

20  :
21  _event(event), _orbit(orbit), _bx(bx<0 ? 0 : bx) { }
unsigned int _bx
Definition: TinyEvent.h:89
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
edm::EventNumber_t _event
Definition: TinyEvent.h:87
unsigned int _orbit
Definition: TinyEvent.h:88
TinyEvent::TinyEvent ( const TinyEvent se)
inline

Definition at line 23 of file TinyEvent.h.

23  :
24  _event(se._event), _orbit(se._orbit), _bx(se._bx) { }
unsigned int _bx
Definition: TinyEvent.h:89
edm::EventNumber_t _event
Definition: TinyEvent.h:87
unsigned int _orbit
Definition: TinyEvent.h:88
TinyEvent::TinyEvent ( const edm::Event event)

Definition at line 5 of file TinyEvent.cc.

5  :
6  _event(event.id().event()),
7  _orbit(event.orbitNumber() < 0 ? 0 : event.orbitNumber()),
8  _bx(event.bunchCrossing() < 0 ? 0 : event.bunchCrossing()) { }
EventNumber_t event() const
Definition: EventID.h:41
unsigned int _bx
Definition: TinyEvent.h:89
int bunchCrossing() const
Definition: EventBase.h:66
int orbitNumber() const
Definition: EventBase.h:67
edm::EventID id() const
Definition: EventBase.h:60
edm::EventNumber_t _event
Definition: TinyEvent.h:87
unsigned int _orbit
Definition: TinyEvent.h:88
TinyEvent::TinyEvent ( const edm::EventAuxiliary eaux)

Definition at line 10 of file TinyEvent.cc.

10  :
11  _event(eaux.event()),
12  _orbit(eaux.orbitNumber() < 0 ? 0 : eaux.orbitNumber()),
13  _bx(eaux.bunchCrossing() < 0 ? 0 : eaux.bunchCrossing()) { }
unsigned int _bx
Definition: TinyEvent.h:89
int bunchCrossing() const
int orbitNumber() const
edm::EventNumber_t _event
Definition: TinyEvent.h:87
unsigned int _orbit
Definition: TinyEvent.h:88
EventNumber_t event() const

Member Function Documentation

long long TinyEvent::absoluteBX ( ) const
inline

Definition at line 57 of file TinyEvent.h.

References _bx, and _orbit.

Referenced by EventWithHistory::absoluteBX(), absoluteBXinCycle(), and deltaBXinCycle().

57  {
58 
59  return (long long)_orbit * 3564 + _bx;
60 
61  }
unsigned int _bx
Definition: TinyEvent.h:89
unsigned int _orbit
Definition: TinyEvent.h:88
long long TinyEvent::absoluteBXinCycle ( const int  bx0) const
inline

Definition at line 63 of file TinyEvent.h.

References absoluteBX().

Referenced by EventWithHistory::absoluteBXinCycle().

63  {
64 
65  return (absoluteBX()-bx0);
66 
67  }
long long absoluteBX() const
Definition: TinyEvent.h:57
long long TinyEvent::deltaBX ( const TinyEvent se) const
inline

Definition at line 69 of file TinyEvent.h.

References _bx, _event, _orbit, and jetcorrextractor::sign().

Referenced by EventWithHistory::deltaBX(), and deltaBXinCycle().

69  {
70 
71  int sign = 1;
72  if(se._event > _event) sign = -1;
73 
74  long long dorb = (int)(_orbit) - (int)(se._orbit);
75  return (dorb*3564 + (int)_bx - (int)se._bx) * sign;
76 
77  }
unsigned int _bx
Definition: TinyEvent.h:89
double sign(double x)
edm::EventNumber_t _event
Definition: TinyEvent.h:87
unsigned int _orbit
Definition: TinyEvent.h:88
long long TinyEvent::deltaBXinCycle ( const TinyEvent se,
const int  bx0 
) const
inline

Definition at line 79 of file TinyEvent.h.

References absoluteBX(), and deltaBX().

Referenced by EventWithHistory::deltaBXinCycle().

79  {
80 
81  long long dbx = deltaBX(se);
82 
83  return dbx+(69 + se.absoluteBX() -bx0%70 )%70; // I could use: dbx+(69+se.absoluteBXinCycle(bx0))%70
84 
85  }
long long absoluteBX() const
Definition: TinyEvent.h:57
long long deltaBX(const TinyEvent &se) const
Definition: TinyEvent.h:69
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().

51  {
52 
53  return (se._event>0) && ((se._event + 1) == _event);
54 
55  }
edm::EventNumber_t _event
Definition: TinyEvent.h:87
int TinyEvent::operator< ( const TinyEvent other) const
inline

Definition at line 41 of file TinyEvent.h.

References _event.

41  {
42  return _event < other._event;
43  }
edm::EventNumber_t _event
Definition: TinyEvent.h:87
TinyEvent& TinyEvent::operator= ( const TinyEvent se)
inline

Definition at line 29 of file TinyEvent.h.

References _bx, _event, and _orbit.

Referenced by EventWithHistory::EventWithHistory(), and EventWithHistory::operator=().

29  {
30 
31  if(this != &se) {
32  _event = se._event;
33  _orbit = se._orbit;
34  _bx = se._bx;
35  }
36 
37  return *this;
38 
39  }
unsigned int _bx
Definition: TinyEvent.h:89
edm::EventNumber_t _event
Definition: TinyEvent.h:87
unsigned int _orbit
Definition: TinyEvent.h:88
int TinyEvent::operator== ( const TinyEvent other) const
inline

Definition at line 45 of file TinyEvent.h.

References _bx, _event, and _orbit.

Referenced by EventWithHistory::operator==().

45  {
46  return (_event == other._event) &&
47  (_orbit == other._orbit) &&
48  (_bx == other._bx) ;
49  }
unsigned int _bx
Definition: TinyEvent.h:89
edm::EventNumber_t _event
Definition: TinyEvent.h:87
unsigned int _orbit
Definition: TinyEvent.h:88

Member Data Documentation

unsigned int TinyEvent::_bx

Definition at line 89 of file TinyEvent.h.

Referenced by absoluteBX(), EventWithHistory::bx(), deltaBX(), operator=(), and operator==().

edm::EventNumber_t TinyEvent::_event
unsigned int TinyEvent::_orbit

Definition at line 88 of file TinyEvent.h.

Referenced by absoluteBX(), deltaBX(), operator=(), operator==(), and EventWithHistory::orbit().