#include <L1AcceptBunchCrossing.h>
Public Types | |
enum | { ORBIT_NUMBER_SHIFT = 32ULL, ORBIT_NUMBER_MASK = 0xFFFFFFFFULL, BUNCH_CROSSING_SHIFT = 4ULL, BUNCH_CROSSING_MASK = 0xFFFULL, EVENT_TYPE_SHIFT = 0, EVENT_TYPE_MASK = 0xFULL } |
Public Member Functions | |
unsigned int | bunchCrossing () const |
bool | empty () const |
empty method (= false) | |
unsigned int | eventType () const |
L1AcceptBunchCrossing (const int l1AcceptOffset__, const unsigned int orbitNumber__, const unsigned int bunchCrossing__, const unsigned int eventType__) | |
L1AcceptBunchCrossing () | |
L1AcceptBunchCrossing (const int index, const unsigned long long data) | |
int | l1AcceptOffset () const |
std::string | name () const |
name method | |
int | operator!= (const L1AcceptBunchCrossing &e) const |
inequality operator | |
int | operator== (const L1AcceptBunchCrossing &e) const |
equality operator | |
unsigned int | orbitNumber () const |
virtual | ~L1AcceptBunchCrossing () |
Protected Attributes | |
unsigned int | bunchCrossing_ |
unsigned int | eventType_ |
int | l1AcceptOffset_ |
unsigned int | orbitNumber_ |
Definition at line 38 of file L1AcceptBunchCrossing.h.
anonymous enum |
ORBIT_NUMBER_SHIFT | |
ORBIT_NUMBER_MASK | |
BUNCH_CROSSING_SHIFT | |
BUNCH_CROSSING_MASK | |
EVENT_TYPE_SHIFT | |
EVENT_TYPE_MASK |
Definition at line 51 of file L1AcceptBunchCrossing.h.
{ ORBIT_NUMBER_SHIFT = 32ULL, ORBIT_NUMBER_MASK = 0xFFFFFFFFULL, BUNCH_CROSSING_SHIFT = 4ULL, BUNCH_CROSSING_MASK = 0xFFFULL, EVENT_TYPE_SHIFT = 0, EVENT_TYPE_MASK = 0xFULL };
L1AcceptBunchCrossing::L1AcceptBunchCrossing | ( | ) |
Definition at line 9 of file L1AcceptBunchCrossing.cc.
: l1AcceptOffset_(0), orbitNumber_(0), bunchCrossing_(0), eventType_(0) { }
L1AcceptBunchCrossing::L1AcceptBunchCrossing | ( | const int | l1AcceptOffset__, |
const unsigned int | orbitNumber__, | ||
const unsigned int | bunchCrossing__, | ||
const unsigned int | eventType__ | ||
) |
Definition at line 17 of file L1AcceptBunchCrossing.cc.
: l1AcceptOffset_(l1AcceptOffset__), orbitNumber_(orbitNumber__), bunchCrossing_(bunchCrossing__), eventType_(eventType__) { }
L1AcceptBunchCrossing::L1AcceptBunchCrossing | ( | const int | index, |
const unsigned long long | data | ||
) |
Definition at line 28 of file L1AcceptBunchCrossing.cc.
References BUNCH_CROSSING_MASK, BUNCH_CROSSING_SHIFT, bunchCrossing_, EVENT_TYPE_MASK, EVENT_TYPE_SHIFT, eventType_, getHLTprescales::index, l1AcceptOffset_, ORBIT_NUMBER_MASK, ORBIT_NUMBER_SHIFT, and orbitNumber_.
{ l1AcceptOffset_ = - index; orbitNumber_ = (unsigned int) (( data >> ORBIT_NUMBER_SHIFT ) & ORBIT_NUMBER_MASK); bunchCrossing_ = (unsigned int) (( data >> BUNCH_CROSSING_SHIFT ) & BUNCH_CROSSING_MASK ); eventType_ = (unsigned int) (( data >> EVENT_TYPE_SHIFT ) & EVENT_TYPE_MASK); }
L1AcceptBunchCrossing::~L1AcceptBunchCrossing | ( | ) | [virtual] |
Definition at line 40 of file L1AcceptBunchCrossing.cc.
{ }
unsigned int L1AcceptBunchCrossing::bunchCrossing | ( | ) | const [inline] |
Definition at line 69 of file L1AcceptBunchCrossing.h.
References bunchCrossing_.
Referenced by operator<<().
{ return(bunchCrossing_);}
bool L1AcceptBunchCrossing::empty | ( | ) | const [inline] |
unsigned int L1AcceptBunchCrossing::eventType | ( | ) | const [inline] |
Definition at line 70 of file L1AcceptBunchCrossing.h.
References eventType_.
Referenced by operator<<().
{ return(eventType_);}
int L1AcceptBunchCrossing::l1AcceptOffset | ( | ) | const [inline] |
Definition at line 67 of file L1AcceptBunchCrossing.h.
References l1AcceptOffset_.
Referenced by operator<<().
{ return(l1AcceptOffset_);}
std::string L1AcceptBunchCrossing::name | ( | ) | const [inline] |
name method
Definition at line 62 of file L1AcceptBunchCrossing.h.
{ return "L1AcceptBunchCrossing"; }
int L1AcceptBunchCrossing::operator!= | ( | const L1AcceptBunchCrossing & | e | ) | const [inline] |
int L1AcceptBunchCrossing::operator== | ( | const L1AcceptBunchCrossing & | e | ) | const [inline] |
unsigned int L1AcceptBunchCrossing::orbitNumber | ( | ) | const [inline] |
Definition at line 68 of file L1AcceptBunchCrossing.h.
References orbitNumber_.
Referenced by operator<<().
{ return(orbitNumber_);}
unsigned int L1AcceptBunchCrossing::bunchCrossing_ [protected] |
Definition at line 82 of file L1AcceptBunchCrossing.h.
Referenced by bunchCrossing(), and L1AcceptBunchCrossing().
unsigned int L1AcceptBunchCrossing::eventType_ [protected] |
Definition at line 83 of file L1AcceptBunchCrossing.h.
Referenced by eventType(), and L1AcceptBunchCrossing().
int L1AcceptBunchCrossing::l1AcceptOffset_ [protected] |
Definition at line 80 of file L1AcceptBunchCrossing.h.
Referenced by L1AcceptBunchCrossing(), and l1AcceptOffset().
unsigned int L1AcceptBunchCrossing::orbitNumber_ [protected] |
Definition at line 81 of file L1AcceptBunchCrossing.h.
Referenced by L1AcceptBunchCrossing(), and orbitNumber().