CMS 3D CMS Logo

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

#include <CSCSPCounters.h>

Public Member Functions

bool check (void) const throw ()
 
 CSCSPCounters (void)
 
int orbit_counter (void) const throw ()
 
int track_counter (void) const throw ()
 
bool unpack (const unsigned short *&buf) throw ()
 

Private Attributes

unsigned orbit_counter_high: 15
 
unsigned orbit_counter_low: 15
 
unsigned track_counter_high: 15
 
unsigned track_counter_low: 15
 
unsigned zero_1: 1
 
unsigned zero_2: 1
 
unsigned zero_3: 1
 
unsigned zero_4: 1
 

Friends

class CSCTFPacker
 

Detailed Description

Definition at line 4 of file CSCSPCounters.h.

Constructor & Destructor Documentation

CSCSPCounters::CSCSPCounters ( void  )
inline

Definition at line 32 of file CSCSPCounters.h.

32 {}

Member Function Documentation

bool CSCSPCounters::check ( void  ) const
throw (
)
inline

Definition at line 23 of file CSCSPCounters.h.

References zero_1, zero_2, zero_3, and zero_4.

Referenced by unpack().

23  {
24  return zero_1 !=0 || zero_2 !=0 || zero_3 !=0 || zero_4 !=0 ;
25  }
unsigned zero_2
Definition: CSCSPCounters.h:12
unsigned zero_3
Definition: CSCSPCounters.h:15
unsigned zero_1
Definition: CSCSPCounters.h:9
unsigned zero_4
Definition: CSCSPCounters.h:18
int CSCSPCounters::orbit_counter ( void  ) const
throw (
)
inline

Definition at line 30 of file CSCSPCounters.h.

References orbit_counter_high, and orbit_counter_low.

Referenced by CSCTFUnpacker::produce().

30 { return (orbit_counter_high<<15) | orbit_counter_low; }
unsigned orbit_counter_low
Definition: CSCSPCounters.h:14
unsigned orbit_counter_high
Definition: CSCSPCounters.h:17
int CSCSPCounters::track_counter ( void  ) const
throw (
)
inline

Definition at line 29 of file CSCSPCounters.h.

References track_counter_high, and track_counter_low.

Referenced by CSCTFUnpacker::produce().

29 { return (track_counter_high<<15) | track_counter_low; }
unsigned track_counter_low
Definition: CSCSPCounters.h:8
unsigned track_counter_high
Definition: CSCSPCounters.h:11
bool CSCSPCounters::unpack ( const unsigned short *&  buf)
throw (
)
inline

Definition at line 27 of file CSCSPCounters.h.

References check().

27 { memcpy((void*)this,buf,4*sizeof(short)); buf+=4; return check(); }
bool check(void) const
Definition: CSCSPCounters.h:23

Friends And Related Function Documentation

friend class CSCTFPacker
friend

Definition at line 20 of file CSCSPCounters.h.

Member Data Documentation

unsigned CSCSPCounters::orbit_counter_high
private

Definition at line 17 of file CSCSPCounters.h.

Referenced by orbit_counter().

unsigned CSCSPCounters::orbit_counter_low
private

Definition at line 14 of file CSCSPCounters.h.

Referenced by orbit_counter().

unsigned CSCSPCounters::track_counter_high
private

Definition at line 11 of file CSCSPCounters.h.

Referenced by track_counter().

unsigned CSCSPCounters::track_counter_low
private

Definition at line 8 of file CSCSPCounters.h.

Referenced by track_counter().

unsigned CSCSPCounters::zero_1
private

Definition at line 9 of file CSCSPCounters.h.

Referenced by check().

unsigned CSCSPCounters::zero_2
private

Definition at line 12 of file CSCSPCounters.h.

Referenced by check().

unsigned CSCSPCounters::zero_3
private

Definition at line 15 of file CSCSPCounters.h.

Referenced by check().

unsigned CSCSPCounters::zero_4
private

Definition at line 18 of file CSCSPCounters.h.

Referenced by check().