CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Protected Attributes
L1AcceptBunchCrossing Class Reference

#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) More...
 
unsigned int eventType () const
 
 L1AcceptBunchCrossing ()
 
 L1AcceptBunchCrossing (const int l1AcceptOffset__, const unsigned int orbitNumber__, const unsigned int bunchCrossing__, const unsigned int eventType__)
 
 L1AcceptBunchCrossing (const int index, const unsigned long long data)
 
int l1AcceptOffset () const
 
std::string name () const
 name method More...
 
int operator!= (const L1AcceptBunchCrossing &e) const
 inequality operator More...
 
int operator== (const L1AcceptBunchCrossing &e) const
 equality operator More...
 
unsigned int orbitNumber () const
 
virtual ~L1AcceptBunchCrossing ()
 

Protected Attributes

unsigned int bunchCrossing_
 
unsigned int eventType_
 
int l1AcceptOffset_
 
unsigned int orbitNumber_
 

Detailed Description

Definition at line 37 of file L1AcceptBunchCrossing.h.

Member Enumeration Documentation

anonymous enum
Enumerator
ORBIT_NUMBER_SHIFT 
ORBIT_NUMBER_MASK 
BUNCH_CROSSING_SHIFT 
BUNCH_CROSSING_MASK 
EVENT_TYPE_SHIFT 
EVENT_TYPE_MASK 

Definition at line 47 of file L1AcceptBunchCrossing.h.

Constructor & Destructor Documentation

L1AcceptBunchCrossing::L1AcceptBunchCrossing ( )
L1AcceptBunchCrossing::L1AcceptBunchCrossing ( const int  l1AcceptOffset__,
const unsigned int  orbitNumber__,
const unsigned int  bunchCrossing__,
const unsigned int  eventType__ 
)

Definition at line 12 of file L1AcceptBunchCrossing.cc.

16  : l1AcceptOffset_(l1AcceptOffset__),
17  orbitNumber_(orbitNumber__),
18  bunchCrossing_(bunchCrossing__),
19  eventType_(eventType__) {}
L1AcceptBunchCrossing::L1AcceptBunchCrossing ( const int  index,
const unsigned long long  data 
)

Definition at line 21 of file L1AcceptBunchCrossing.cc.

References BUNCH_CROSSING_MASK, BUNCH_CROSSING_SHIFT, bunchCrossing_, EVENT_TYPE_MASK, EVENT_TYPE_SHIFT, eventType_, l1AcceptOffset_, ORBIT_NUMBER_MASK, ORBIT_NUMBER_SHIFT, and orbitNumber_.

L1AcceptBunchCrossing::~L1AcceptBunchCrossing ( )
virtual

Definition at line 28 of file L1AcceptBunchCrossing.cc.

28 {}

Member Function Documentation

unsigned int L1AcceptBunchCrossing::bunchCrossing ( ) const
inline

Definition at line 64 of file L1AcceptBunchCrossing.h.

References bunchCrossing_.

Referenced by operator<<().

64 { return (bunchCrossing_); }
bool L1AcceptBunchCrossing::empty ( ) const
inline

empty method (= false)

Definition at line 60 of file L1AcceptBunchCrossing.h.

60 { return false; }
unsigned int L1AcceptBunchCrossing::eventType ( ) const
inline

Definition at line 65 of file L1AcceptBunchCrossing.h.

References eventType_.

Referenced by operator<<().

65 { return (eventType_); }
int L1AcceptBunchCrossing::l1AcceptOffset ( ) const
inline

Definition at line 62 of file L1AcceptBunchCrossing.h.

References l1AcceptOffset_.

Referenced by operator<<().

std::string L1AcceptBunchCrossing::name ( ) const
inline
int L1AcceptBunchCrossing::operator!= ( const L1AcceptBunchCrossing e) const
inline

inequality operator

Definition at line 71 of file L1AcceptBunchCrossing.h.

71 { return false; }
int L1AcceptBunchCrossing::operator== ( const L1AcceptBunchCrossing e) const
inline

equality operator

Definition at line 68 of file L1AcceptBunchCrossing.h.

68 { return false; }
unsigned int L1AcceptBunchCrossing::orbitNumber ( ) const
inline

Definition at line 63 of file L1AcceptBunchCrossing.h.

References orbitNumber_.

Referenced by operator<<().

63 { return (orbitNumber_); }

Member Data Documentation

unsigned int L1AcceptBunchCrossing::bunchCrossing_
protected

Definition at line 76 of file L1AcceptBunchCrossing.h.

Referenced by bunchCrossing(), and L1AcceptBunchCrossing().

unsigned int L1AcceptBunchCrossing::eventType_
protected

Definition at line 77 of file L1AcceptBunchCrossing.h.

Referenced by eventType(), and L1AcceptBunchCrossing().

int L1AcceptBunchCrossing::l1AcceptOffset_
protected

Definition at line 74 of file L1AcceptBunchCrossing.h.

Referenced by L1AcceptBunchCrossing(), and l1AcceptOffset().

unsigned int L1AcceptBunchCrossing::orbitNumber_
protected

Definition at line 75 of file L1AcceptBunchCrossing.h.

Referenced by L1AcceptBunchCrossing(), and orbitNumber().