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
CSCSP_MBblock Class Reference

#include <CSCSP_MBblock.h>

Public Member Functions

unsigned int af (void) const throw ()
 
unsigned int bc0 (void) const throw ()
 
unsigned int bxn (void) const throw ()
 
unsigned int BXN (void) const throw ()
 
unsigned int cal (void) const throw ()
 
bool check (void) const throw ()
 
 CSCSP_MBblock (void)
 
unsigned int flag (void) const throw ()
 
unsigned int id (void) const throw ()
 
unsigned int phi (void) const throw ()
 
unsigned int phi_bend (void) const throw ()
 
unsigned int quality (void) const throw ()
 
unsigned int tbin (void) const throw ()
 
unsigned int timingError (void) const throw ()
 
bool unpack (const unsigned short *&buf) throw ()
 
unsigned int vq (void) const throw ()
 

Private Attributes

unsigned int alignment_fifo
 
unsigned bc0_: 1
 
unsigned int bxBit
 
unsigned bxn0_: 1
 
unsigned bxn1_: 1
 
unsigned cal_: 1
 
unsigned flag_: 1
 
unsigned int id_
 
unsigned mb_bxn_: 12
 
unsigned phi_: 12
 
unsigned phi_bend_: 5
 
unsigned quality_: 3
 
unsigned spare_1: 3
 
unsigned spare_2: 15
 
unsigned int tbin_
 
unsigned int valid_quality
 
unsigned zero_1: 1
 
unsigned zero_2: 3
 
unsigned zero_3: 2
 
unsigned zero_4: 1
 
unsigned zero_5: 1
 
unsigned zero_6: 1
 

Friends

class CSCSPRecord
 
class CSCTFPacker
 

Detailed Description

Definition at line 4 of file CSCSP_MBblock.h.

Constructor & Destructor Documentation

CSCSP_MBblock::CSCSP_MBblock ( void  )
inline

Definition at line 60 of file CSCSP_MBblock.h.

60 {}

Member Function Documentation

unsigned int CSCSP_MBblock::af ( void  ) const
throw (
)
inline

Definition at line 55 of file CSCSP_MBblock.h.

References alignment_fifo.

55 { return alignment_fifo;}
unsigned int alignment_fifo
Definition: CSCSP_MBblock.h:35
unsigned int CSCSP_MBblock::bc0 ( void  ) const
throw (
)
inline

Definition at line 49 of file CSCSP_MBblock.h.

References bc0_.

49 { return bc0_; }
unsigned bc0_
Definition: CSCSP_MBblock.h:18
unsigned int CSCSP_MBblock::bxn ( void  ) const
throw (
)
inline

Definition at line 48 of file CSCSP_MBblock.h.

References bxn0_, and bxn1_.

48 { return (bxn1_<<1)|bxn0_; }
unsigned bxn1_
Definition: CSCSP_MBblock.h:16
unsigned bxn0_
Definition: CSCSP_MBblock.h:17
unsigned int CSCSP_MBblock::BXN ( void  ) const
throw (
)
inline

Definition at line 50 of file CSCSP_MBblock.h.

References mb_bxn_.

50 { return mb_bxn_; }
unsigned mb_bxn_
Definition: CSCSP_MBblock.h:21
unsigned int CSCSP_MBblock::cal ( void  ) const
throw (
)
inline

Definition at line 45 of file CSCSP_MBblock.h.

References cal_.

45 { return cal_; }
unsigned cal_
Definition: CSCSP_MBblock.h:12
bool CSCSP_MBblock::check ( void  ) const
throw (
)
inline

Definition at line 40 of file CSCSP_MBblock.h.

References spare_1, spare_2, zero_1, zero_2, zero_3, zero_4, zero_5, and zero_6.

Referenced by unpack().

40 { return zero_1!=0||zero_2!=0||zero_3!=0||zero_4!=0||zero_5!=0||zero_6!=0||spare_1!=0||spare_2!=0; }
unsigned zero_5
Definition: CSCSP_MBblock.h:23
unsigned zero_1
Definition: CSCSP_MBblock.h:8
unsigned spare_1
Definition: CSCSP_MBblock.h:22
unsigned zero_2
Definition: CSCSP_MBblock.h:10
unsigned zero_6
Definition: CSCSP_MBblock.h:26
unsigned spare_2
Definition: CSCSP_MBblock.h:25
unsigned zero_3
Definition: CSCSP_MBblock.h:13
unsigned zero_4
Definition: CSCSP_MBblock.h:19
unsigned int CSCSP_MBblock::flag ( void  ) const
throw (
)
inline

Definition at line 44 of file CSCSP_MBblock.h.

References flag_.

44 { return flag_; }
unsigned flag_
Definition: CSCSP_MBblock.h:11
unsigned int CSCSP_MBblock::id ( void  ) const
throw (
)
inline

Definition at line 52 of file CSCSP_MBblock.h.

References id_.

52 { return id_; }
unsigned int id_
Definition: CSCSP_MBblock.h:37
unsigned int CSCSP_MBblock::phi ( void  ) const
throw (
)
inline

Definition at line 47 of file CSCSP_MBblock.h.

References phi_.

47 { return phi_; }
unsigned phi_
Definition: CSCSP_MBblock.h:15
unsigned int CSCSP_MBblock::phi_bend ( void  ) const
throw (
)
inline

Definition at line 43 of file CSCSP_MBblock.h.

References phi_bend_.

43 { return phi_bend_; }
unsigned phi_bend_
Definition: CSCSP_MBblock.h:9
unsigned int CSCSP_MBblock::quality ( void  ) const
throw (
)
inline

Definition at line 42 of file CSCSP_MBblock.h.

References quality_.

42 { return quality_; }
unsigned quality_
Definition: CSCSP_MBblock.h:7
unsigned int CSCSP_MBblock::tbin ( void  ) const
throw (
)
inline

Definition at line 53 of file CSCSP_MBblock.h.

References tbin_.

53 { return tbin_; }
unsigned int tbin_
Definition: CSCSP_MBblock.h:33
unsigned int CSCSP_MBblock::timingError ( void  ) const
throw (
)
inline

Definition at line 56 of file CSCSP_MBblock.h.

References bxBit.

56 { return bxBit; }
unsigned int bxBit
Definition: CSCSP_MBblock.h:36
bool CSCSP_MBblock::unpack ( const unsigned short *&  buf)
throw (
)
inline

Definition at line 58 of file CSCSP_MBblock.h.

References check().

58 { memcpy(this, buf, 4*sizeof(short)); buf+=4; return check(); }
bool check(void) const
Definition: CSCSP_MBblock.h:40
unsigned int CSCSP_MBblock::vq ( void  ) const
throw (
)
inline

Definition at line 54 of file CSCSP_MBblock.h.

References valid_quality.

54 { return valid_quality; }
unsigned int valid_quality
Definition: CSCSP_MBblock.h:34

Friends And Related Function Documentation

friend class CSCSPRecord
friend

Definition at line 30 of file CSCSP_MBblock.h.

friend class CSCTFPacker
friend

Definition at line 31 of file CSCSP_MBblock.h.

Member Data Documentation

unsigned int CSCSP_MBblock::alignment_fifo
private

Definition at line 35 of file CSCSP_MBblock.h.

Referenced by af().

unsigned CSCSP_MBblock::bc0_
private

Definition at line 18 of file CSCSP_MBblock.h.

Referenced by bc0(), and CSCTFPacker::produce().

unsigned int CSCSP_MBblock::bxBit
private

Definition at line 36 of file CSCSP_MBblock.h.

Referenced by timingError().

unsigned CSCSP_MBblock::bxn0_
private

Definition at line 17 of file CSCSP_MBblock.h.

Referenced by bxn(), and CSCTFPacker::produce().

unsigned CSCSP_MBblock::bxn1_
private

Definition at line 16 of file CSCSP_MBblock.h.

Referenced by bxn(), and CSCTFPacker::produce().

unsigned CSCSP_MBblock::cal_
private

Definition at line 12 of file CSCSP_MBblock.h.

Referenced by cal(), and CSCTFPacker::produce().

unsigned CSCSP_MBblock::flag_
private

Definition at line 11 of file CSCSP_MBblock.h.

Referenced by flag(), and CSCTFPacker::produce().

unsigned int CSCSP_MBblock::id_
private

Definition at line 37 of file CSCSP_MBblock.h.

Referenced by id(), and CSCTFPacker::produce().

unsigned CSCSP_MBblock::mb_bxn_
private

Definition at line 21 of file CSCSP_MBblock.h.

Referenced by BXN(), and CSCTFPacker::produce().

unsigned CSCSP_MBblock::phi_
private

Definition at line 15 of file CSCSP_MBblock.h.

Referenced by phi(), and CSCTFPacker::produce().

unsigned CSCSP_MBblock::phi_bend_
private

Definition at line 9 of file CSCSP_MBblock.h.

Referenced by phi_bend(), and CSCTFPacker::produce().

unsigned CSCSP_MBblock::quality_
private

Definition at line 7 of file CSCSP_MBblock.h.

Referenced by CSCTFPacker::produce(), and quality().

unsigned CSCSP_MBblock::spare_1
private

Definition at line 22 of file CSCSP_MBblock.h.

Referenced by check().

unsigned CSCSP_MBblock::spare_2
private

Definition at line 25 of file CSCSP_MBblock.h.

Referenced by check().

unsigned int CSCSP_MBblock::tbin_
private

Definition at line 33 of file CSCSP_MBblock.h.

Referenced by tbin().

unsigned int CSCSP_MBblock::valid_quality
private

Definition at line 34 of file CSCSP_MBblock.h.

Referenced by vq().

unsigned CSCSP_MBblock::zero_1
private

Definition at line 8 of file CSCSP_MBblock.h.

Referenced by check().

unsigned CSCSP_MBblock::zero_2
private

Definition at line 10 of file CSCSP_MBblock.h.

Referenced by check().

unsigned CSCSP_MBblock::zero_3
private

Definition at line 13 of file CSCSP_MBblock.h.

Referenced by check().

unsigned CSCSP_MBblock::zero_4
private

Definition at line 19 of file CSCSP_MBblock.h.

Referenced by check().

unsigned CSCSP_MBblock::zero_5
private

Definition at line 23 of file CSCSP_MBblock.h.

Referenced by check().

unsigned CSCSP_MBblock::zero_6
private

Definition at line 26 of file CSCSP_MBblock.h.

Referenced by check().