CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes | Friends

CSCSP_MEblock Class Reference

#include <CSCSP_MEblock.h>

List of all members.

Public Types

enum  AF { EMPTY = 1, FULL = 2 }
enum  RS { IDLE_CHARs = 0, CARRIER_EXTEND = 1, NORMAL_DATA = 2, ERROR_PROP = 3 }

Public Member Functions

unsigned int af (void) const throw ()
unsigned int aligment_fifo (void) const throw ()
unsigned int bc0 (void) const throw ()
unsigned int bx0 (void) const throw ()
unsigned int BXN (void) const throw ()
bool check (void) const throw ()
unsigned int csc (void) const throw ()
 CSCSP_MEblock (void)
unsigned int errCnt (void) const throw ()
unsigned int l_r (void) const throw ()
unsigned int link (void) const throw ()
unsigned int mpc (void) const throw ()
unsigned int pattern (void) const throw ()
unsigned int quality (void) const throw ()
unsigned int receiver_status_frame1 (void) const throw ()
unsigned int receiver_status_frame2 (void) const throw ()
unsigned int se (void) const throw ()
unsigned int sm (void) const throw ()
unsigned int spInput (void) const throw ()
unsigned int strip (void) const throw ()
unsigned int tbin (void) const throw ()
unsigned int timingError (void) const throw ()
bool unpack (const unsigned short *&buf) throw ()
unsigned int vp (void) const throw ()
unsigned int wireGroup (void) const throw ()

Private Attributes

unsigned aligment_fifo_empty: 1
unsigned aligment_fifo_full: 1
unsigned int alignment_fifo
unsigned bc0_: 1
unsigned bx0_: 1
unsigned int bxBit
unsigned clct_pattern_id: 8
unsigned clct_pattern_number: 4
unsigned csc_id: 4
unsigned err_prop_cnt: 4
unsigned left_right: 1
unsigned link_id: 2
unsigned me_bxn: 12
unsigned mpc_id: 6
unsigned quality_: 4
unsigned receiver_status_dv1: 1
unsigned receiver_status_dv2: 1
unsigned receiver_status_er1: 1
unsigned receiver_status_er2: 1
unsigned int spInput_
unsigned int sync_error
unsigned int sync_modified
unsigned int tbin_
unsigned int valid_pattern
unsigned wire_group_id: 7
unsigned zero_1: 1
unsigned zero_2: 1
unsigned zero_3: 1
unsigned zero_4: 1

Friends

class CSCSPRecord
class CSCTFPacker

Detailed Description

Definition at line 4 of file CSCSP_MEblock.h.


Member Enumeration Documentation

Enumerator:
EMPTY 
FULL 

Definition at line 71 of file CSCSP_MEblock.h.

{ EMPTY=1, FULL=2 };
Enumerator:
IDLE_CHARs 
CARRIER_EXTEND 
NORMAL_DATA 
ERROR_PROP 

Definition at line 74 of file CSCSP_MEblock.h.


Constructor & Destructor Documentation

CSCSP_MEblock::CSCSP_MEblock ( void  ) [inline]

Definition at line 89 of file CSCSP_MEblock.h.

{}

Member Function Documentation

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

Definition at line 84 of file CSCSP_MEblock.h.

References alignment_fifo.

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

Definition at line 72 of file CSCSP_MEblock.h.

References aligment_fifo_empty, and aligment_fifo_full.

unsigned int CSCSP_MEblock::bc0 ( void  ) const throw () [inline]

Definition at line 59 of file CSCSP_MEblock.h.

References bc0_.

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

Definition at line 58 of file CSCSP_MEblock.h.

References bx0_.

{ return bx0_;     }
unsigned int CSCSP_MEblock::BXN ( void  ) const throw () [inline]

Definition at line 57 of file CSCSP_MEblock.h.

References me_bxn.

{ return me_bxn;   }
bool CSCSP_MEblock::check ( void  ) const throw () [inline]

Definition at line 54 of file CSCSP_MEblock.h.

References zero_1, zero_2, zero_3, and zero_4.

Referenced by unpack().

{ return zero_1!=0||zero_2!=0||zero_3!=0||zero_4!=0; }
unsigned int CSCSP_MEblock::csc ( void  ) const throw () [inline]

Definition at line 64 of file CSCSP_MEblock.h.

References csc_id.

{ return csc_id;   }
unsigned int CSCSP_MEblock::errCnt ( void  ) const throw () [inline]

Definition at line 78 of file CSCSP_MEblock.h.

References err_prop_cnt.

{ return err_prop_cnt; }
unsigned int CSCSP_MEblock::l_r ( void  ) const throw () [inline]

Definition at line 66 of file CSCSP_MEblock.h.

References left_right.

{ return left_right;        }
unsigned int CSCSP_MEblock::link ( void  ) const throw () [inline]

Definition at line 62 of file CSCSP_MEblock.h.

References link_id.

{ return link_id;  }
unsigned int CSCSP_MEblock::mpc ( void  ) const throw () [inline]

Definition at line 63 of file CSCSP_MEblock.h.

References mpc_id.

{ return mpc_id;   }
unsigned int CSCSP_MEblock::pattern ( void  ) const throw () [inline]

Definition at line 69 of file CSCSP_MEblock.h.

References clct_pattern_number.

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

Definition at line 56 of file CSCSP_MEblock.h.

References quality_.

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

Definition at line 75 of file CSCSP_MEblock.h.

References receiver_status_dv1, and receiver_status_er1.

unsigned int CSCSP_MEblock::receiver_status_frame2 ( void  ) const throw () [inline]

Definition at line 76 of file CSCSP_MEblock.h.

References receiver_status_dv2, and receiver_status_er2.

unsigned int CSCSP_MEblock::se ( void  ) const throw () [inline]

Definition at line 82 of file CSCSP_MEblock.h.

References sync_error.

{ return sync_error;    }
unsigned int CSCSP_MEblock::sm ( void  ) const throw () [inline]

Definition at line 83 of file CSCSP_MEblock.h.

References sync_modified.

{ return sync_modified; }
unsigned int CSCSP_MEblock::spInput ( void  ) const throw () [inline]

Definition at line 61 of file CSCSP_MEblock.h.

References spInput_.

{ return spInput_; }
unsigned int CSCSP_MEblock::strip ( void  ) const throw () [inline]

Definition at line 68 of file CSCSP_MEblock.h.

References clct_pattern_id.

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

Definition at line 80 of file CSCSP_MEblock.h.

References tbin_.

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

Definition at line 85 of file CSCSP_MEblock.h.

References bxBit.

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

Definition at line 87 of file CSCSP_MEblock.h.

References check().

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

Definition at line 81 of file CSCSP_MEblock.h.

References valid_pattern.

{ return valid_pattern; }
unsigned int CSCSP_MEblock::wireGroup ( void  ) const throw () [inline]

Definition at line 67 of file CSCSP_MEblock.h.

References wire_group_id.

{ return wire_group_id;   }

Friends And Related Function Documentation

friend class CSCSPRecord [friend]

Definition at line 42 of file CSCSP_MEblock.h.

friend class CSCTFPacker [friend]

Definition at line 43 of file CSCSP_MEblock.h.


Member Data Documentation

Definition at line 30 of file CSCSP_MEblock.h.

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

Definition at line 22 of file CSCSP_MEblock.h.

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

unsigned int CSCSP_MEblock::alignment_fifo [private]

Definition at line 49 of file CSCSP_MEblock.h.

Referenced by af().

unsigned CSCSP_MEblock::bc0_ [private]

Definition at line 16 of file CSCSP_MEblock.h.

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

unsigned CSCSP_MEblock::bx0_ [private]

Definition at line 15 of file CSCSP_MEblock.h.

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

unsigned int CSCSP_MEblock::bxBit [private]

Definition at line 50 of file CSCSP_MEblock.h.

Referenced by timingError().

unsigned CSCSP_MEblock::clct_pattern_id [private]

Definition at line 12 of file CSCSP_MEblock.h.

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

Definition at line 7 of file CSCSP_MEblock.h.

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

unsigned CSCSP_MEblock::csc_id [private]

Definition at line 13 of file CSCSP_MEblock.h.

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

unsigned CSCSP_MEblock::err_prop_cnt [private]

Definition at line 27 of file CSCSP_MEblock.h.

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

unsigned CSCSP_MEblock::left_right [private]

Definition at line 14 of file CSCSP_MEblock.h.

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

unsigned CSCSP_MEblock::link_id [private]

Definition at line 25 of file CSCSP_MEblock.h.

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

unsigned CSCSP_MEblock::me_bxn [private]

Definition at line 19 of file CSCSP_MEblock.h.

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

unsigned CSCSP_MEblock::mpc_id [private]

Definition at line 26 of file CSCSP_MEblock.h.

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

unsigned CSCSP_MEblock::quality_ [private]

Definition at line 8 of file CSCSP_MEblock.h.

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

Definition at line 21 of file CSCSP_MEblock.h.

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

Definition at line 29 of file CSCSP_MEblock.h.

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

Definition at line 20 of file CSCSP_MEblock.h.

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

Definition at line 28 of file CSCSP_MEblock.h.

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

unsigned int CSCSP_MEblock::spInput_ [private]

Definition at line 51 of file CSCSP_MEblock.h.

Referenced by spInput().

unsigned int CSCSP_MEblock::sync_error [private]

Definition at line 47 of file CSCSP_MEblock.h.

Referenced by se().

unsigned int CSCSP_MEblock::sync_modified [private]

Definition at line 48 of file CSCSP_MEblock.h.

Referenced by sm().

unsigned int CSCSP_MEblock::tbin_ [private]

Definition at line 45 of file CSCSP_MEblock.h.

Referenced by tbin().

unsigned int CSCSP_MEblock::valid_pattern [private]

Definition at line 46 of file CSCSP_MEblock.h.

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

unsigned CSCSP_MEblock::wire_group_id [private]

Definition at line 9 of file CSCSP_MEblock.h.

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

unsigned CSCSP_MEblock::zero_1 [private]

Definition at line 10 of file CSCSP_MEblock.h.

Referenced by check().

unsigned CSCSP_MEblock::zero_2 [private]

Definition at line 17 of file CSCSP_MEblock.h.

Referenced by check().

unsigned CSCSP_MEblock::zero_3 [private]

Definition at line 23 of file CSCSP_MEblock.h.

Referenced by check().

unsigned CSCSP_MEblock::zero_4 [private]

Definition at line 31 of file CSCSP_MEblock.h.

Referenced by check().