CMS 3D CMS Logo

L1AcceptBunchCrossing Class Reference

#include <DataFormats/Scalers/interface/L1AcceptBunchCrossing.h>

List of all members.

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 index, const unsigned long long data)
 L1AcceptBunchCrossing (const int l1AcceptOffset__, const unsigned int orbitNumber__, const unsigned int bunchCrossing__, const unsigned int eventType__)
 L1AcceptBunchCrossing ()
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_


Detailed Description

Definition at line 38 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 51 of file L1AcceptBunchCrossing.h.

00052   {
00053     ORBIT_NUMBER_SHIFT   = 32ULL,
00054     ORBIT_NUMBER_MASK    = 0xFFFFFFFFULL,
00055     BUNCH_CROSSING_SHIFT = 4ULL,
00056     BUNCH_CROSSING_MASK  = 0xFFFULL,
00057     EVENT_TYPE_SHIFT     = 0,
00058     EVENT_TYPE_MASK      = 0xFULL
00059   };


Constructor & Destructor Documentation

L1AcceptBunchCrossing::L1AcceptBunchCrossing (  ) 

Definition at line 8 of file L1AcceptBunchCrossing.cc.

00008                                              : 
00009   l1AcceptOffset_(0),
00010   orbitNumber_(0),
00011   bunchCrossing_(0),
00012   eventType_(0)
00013 { 
00014 }

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

Definition at line 16 of file L1AcceptBunchCrossing.cc.

00019                                                                              : 
00020   l1AcceptOffset_(l1AcceptOffset__),
00021   orbitNumber_(orbitNumber__),
00022   bunchCrossing_(bunchCrossing__),
00023   eventType_(eventType__)
00024 { 
00025 }

L1AcceptBunchCrossing::L1AcceptBunchCrossing ( const int  index,
const unsigned long long  data 
)

Definition at line 27 of file L1AcceptBunchCrossing.cc.

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

00029 { 
00030   l1AcceptOffset_ =  - index;
00031   orbitNumber_    = (unsigned int) (( data >> ORBIT_NUMBER_SHIFT ) 
00032                                     & ORBIT_NUMBER_MASK);
00033   bunchCrossing_  = (unsigned int) (( data >> BUNCH_CROSSING_SHIFT ) 
00034                                     & BUNCH_CROSSING_MASK );
00035   eventType_      = (unsigned int) (( data >> EVENT_TYPE_SHIFT )
00036                                     & EVENT_TYPE_MASK);
00037 }

L1AcceptBunchCrossing::~L1AcceptBunchCrossing (  )  [virtual]

Definition at line 39 of file L1AcceptBunchCrossing.cc.

00039 { } 


Member Function Documentation

unsigned int L1AcceptBunchCrossing::bunchCrossing (  )  const [inline]

Definition at line 69 of file L1AcceptBunchCrossing.h.

References bunchCrossing_.

Referenced by operator<<().

00069 { return(bunchCrossing_);}

bool L1AcceptBunchCrossing::empty (  )  const [inline]

empty method (= false)

Definition at line 65 of file L1AcceptBunchCrossing.h.

00065 { return false; }

unsigned int L1AcceptBunchCrossing::eventType (  )  const [inline]

Definition at line 70 of file L1AcceptBunchCrossing.h.

References eventType_.

Referenced by operator<<().

00070 { return(eventType_);}

int L1AcceptBunchCrossing::l1AcceptOffset (  )  const [inline]

Definition at line 67 of file L1AcceptBunchCrossing.h.

References l1AcceptOffset_.

Referenced by operator<<().

00067 { return(l1AcceptOffset_);}

std::string L1AcceptBunchCrossing::name (  )  const [inline]

name method

Definition at line 62 of file L1AcceptBunchCrossing.h.

00062 { return "L1AcceptBunchCrossing"; }

int L1AcceptBunchCrossing::operator!= ( const L1AcceptBunchCrossing e  )  const [inline]

inequality operator

Definition at line 76 of file L1AcceptBunchCrossing.h.

00076 { return false; }

int L1AcceptBunchCrossing::operator== ( const L1AcceptBunchCrossing e  )  const [inline]

equality operator

Definition at line 73 of file L1AcceptBunchCrossing.h.

00073 { return false; }

unsigned int L1AcceptBunchCrossing::orbitNumber (  )  const [inline]

Definition at line 68 of file L1AcceptBunchCrossing.h.

References orbitNumber_.

Referenced by operator<<().

00068 { return(orbitNumber_);}


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:26:24 2009 for CMSSW by  doxygen 1.5.4