CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

CSCSP_MBblock Class Reference

#include <CSCSP_MBblock.h>

List of all members.

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.

{}

Member Function Documentation

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

Definition at line 55 of file CSCSP_MBblock.h.

References alignment_fifo.

{ return alignment_fifo;}
unsigned int CSCSP_MBblock::bc0 ( void  ) const throw () [inline]

Definition at line 49 of file CSCSP_MBblock.h.

References bc0_.

{ return bc0_;    }
unsigned int CSCSP_MBblock::bxn ( void  ) const throw () [inline]

Definition at line 48 of file CSCSP_MBblock.h.

References bxn0_, and bxn1_.

{ return (bxn1_<<1)|bxn0_; }
unsigned int CSCSP_MBblock::BXN ( void  ) const throw () [inline]

Definition at line 50 of file CSCSP_MBblock.h.

References mb_bxn_.

{ return mb_bxn_; }
unsigned int CSCSP_MBblock::cal ( void  ) const throw () [inline]

Definition at line 45 of file CSCSP_MBblock.h.

References cal_.

{ return cal_;      }
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().

{ 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 int CSCSP_MBblock::flag ( void  ) const throw () [inline]

Definition at line 44 of file CSCSP_MBblock.h.

References flag_.

{ return flag_;     }
unsigned int CSCSP_MBblock::id ( void  ) const throw () [inline]

Definition at line 52 of file CSCSP_MBblock.h.

References id_.

{ return id_;           }
unsigned int CSCSP_MBblock::phi ( void  ) const throw () [inline]

Definition at line 47 of file CSCSP_MBblock.h.

References phi_.

{ return phi_;    }
unsigned int CSCSP_MBblock::phi_bend ( void  ) const throw () [inline]

Definition at line 43 of file CSCSP_MBblock.h.

References phi_bend_.

{ return phi_bend_; }
unsigned int CSCSP_MBblock::quality ( void  ) const throw () [inline]

Definition at line 42 of file CSCSP_MBblock.h.

References quality_.

{ return quality_;  }
unsigned int CSCSP_MBblock::tbin ( void  ) const throw () [inline]

Definition at line 53 of file CSCSP_MBblock.h.

References tbin_.

{ return tbin_;         }
unsigned int CSCSP_MBblock::timingError ( void  ) const throw () [inline]

Definition at line 56 of file CSCSP_MBblock.h.

References bxBit.

{ return bxBit; }
bool CSCSP_MBblock::unpack ( const unsigned short *&  buf) throw () [inline]

Definition at line 58 of file CSCSP_MBblock.h.

References check().

{ memcpy(this, buf, 4*sizeof(short)); buf+=4; return check(); }
unsigned int CSCSP_MBblock::vq ( void  ) const throw () [inline]

Definition at line 54 of file CSCSP_MBblock.h.

References valid_quality.

{ return valid_quality; }

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