CMS 3D CMS Logo

Public Member Functions | Private Attributes | Friends

CSCSP_SPblock Class Reference

#include <CSCSP_SPblock.h>

List of all members.

Public Member Functions

unsigned int bc0 (void) const throw ()
unsigned int bx0 (void) const throw ()
unsigned int charge (void) const throw ()
bool check (void) const throw ()
 CSCSP_SPblock (void)
unsigned int deltaPhi12 (void) const throw ()
unsigned int deltaPhi23 (void) const throw ()
std::vector< CSCSP_MBblockdtStub (void) const throw ()
unsigned int eta (void) const throw ()
unsigned int f_r (void) const throw ()
unsigned int halo (void) const throw ()
unsigned int id (void) const throw ()
std::vector< CSCSP_MEblockLCTs (void) const throw ()
unsigned int MB_id (void) const throw ()
unsigned int MB_tbin (void) const throw ()
unsigned int ME1_id (void) const throw ()
unsigned int ME1_tbin (void) const throw ()
unsigned int ME2_id (void) const throw ()
unsigned int ME2_tbin (void) const throw ()
unsigned int ME3_id (void) const throw ()
unsigned int ME3_tbin (void) const throw ()
unsigned int ME4_id (void) const throw ()
unsigned int ME4_tbin (void) const throw ()
unsigned int mode (void) const throw ()
unsigned int MS_id (void) const throw ()
unsigned int phi (void) const throw ()
unsigned int ptLUTaddress (void) const throw ()
unsigned int sign (void) const throw ()
unsigned int syncErr (void) const throw ()
unsigned int tbin (void) const throw ()
bool unpack (const unsigned short *&buf) throw ()

Private Attributes

unsigned bc0_: 1
unsigned bxn0_: 1
unsigned charge_: 1
unsigned deltaPhi12_: 8
unsigned deltaPhi23_: 4
CSCSP_MBblock dt_
bool dtFilled
unsigned eta_: 5
unsigned front_rear: 1
unsigned halo_: 1
unsigned int id_
CSCSP_MEblock lct_ [4]
bool lctFilled [4]
unsigned mb_id: 3
unsigned mb_tbin: 3
unsigned me1_id: 3
unsigned me1_tbin: 3
unsigned me2_id: 2
unsigned me2_tbin: 3
unsigned me3_id: 2
unsigned me3_tbin: 3
unsigned me4_id: 2
unsigned me4_tbin: 3
unsigned int mode_
unsigned ms_id: 3
unsigned phi_: 5
unsigned se: 1
unsigned sign_: 1
unsigned int tbin_
unsigned zero_1: 1
unsigned zero_2: 1
unsigned zero_3: 1
unsigned zero_4: 1
unsigned zero_5: 1

Friends

class CSCSPEvent
class CSCSPRecord
class CSCTFPacker

Detailed Description

Definition at line 8 of file CSCSP_SPblock.h.


Constructor & Destructor Documentation

CSCSP_SPblock::CSCSP_SPblock ( void  ) [inline]

Definition at line 110 of file CSCSP_SPblock.h.

{}

Member Function Documentation

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

Definition at line 72 of file CSCSP_SPblock.h.

References bc0_.

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

Definition at line 71 of file CSCSP_SPblock.h.

References bxn0_.

{ return bxn0_;   }
unsigned int CSCSP_SPblock::charge ( void  ) const throw () [inline]

Definition at line 64 of file CSCSP_SPblock.h.

References charge_.

{ return charge_; }
bool CSCSP_SPblock::check ( void  ) const throw () [inline]

Definition at line 59 of file CSCSP_SPblock.h.

References zero_1, zero_2, zero_3, zero_4, and zero_5.

Referenced by unpack().

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

Definition at line 69 of file CSCSP_SPblock.h.

References deltaPhi12_.

{ return deltaPhi12_; }
unsigned int CSCSP_SPblock::deltaPhi23 ( void  ) const throw () [inline]

Definition at line 70 of file CSCSP_SPblock.h.

References deltaPhi23_.

{ return deltaPhi23_; }
std::vector<CSCSP_MBblock> CSCSP_SPblock::dtStub ( void  ) const throw () [inline]

Definition at line 99 of file CSCSP_SPblock.h.

References dt_, dtFilled, and query::result.

                                                            {
                std::vector<CSCSP_MBblock> result;
                if(dtFilled) result.push_back(dt_);
                return result;
        }
unsigned int CSCSP_SPblock::eta ( void  ) const throw () [inline]

Definition at line 65 of file CSCSP_SPblock.h.

References eta_.

{ return eta_;    }
unsigned int CSCSP_SPblock::f_r ( void  ) const throw () [inline]

Definition at line 63 of file CSCSP_SPblock.h.

References front_rear.

{ return front_rear; };
unsigned int CSCSP_SPblock::halo ( void  ) const throw () [inline]

Definition at line 66 of file CSCSP_SPblock.h.

References halo_.

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

Definition at line 88 of file CSCSP_SPblock.h.

References id_.

{ return id_;   }
std::vector<CSCSP_MEblock> CSCSP_SPblock::LCTs ( void  ) const throw () [inline]

Definition at line 91 of file CSCSP_SPblock.h.

References lct_, lctFilled, query::result, and relativeConstraints::station.

                                                          {
                std::vector<CSCSP_MEblock> result;
                for(int station=0; station<4; station++)
                        if(lctFilled[station]) result.push_back(lct_[station]);
                return result;
        }
unsigned int CSCSP_SPblock::MB_id ( void  ) const throw () [inline]

Definition at line 78 of file CSCSP_SPblock.h.

References mb_id.

Referenced by CSCSPEvent::unpack().

{ return mb_id;  }
unsigned int CSCSP_SPblock::MB_tbin ( void  ) const throw () [inline]

Definition at line 85 of file CSCSP_SPblock.h.

References mb_tbin.

Referenced by CSCSPEvent::unpack().

{ return mb_tbin;  }
unsigned int CSCSP_SPblock::ME1_id ( void  ) const throw () [inline]

Definition at line 74 of file CSCSP_SPblock.h.

References me1_id.

Referenced by CSCSPEvent::unpack().

{ return me1_id; }
unsigned int CSCSP_SPblock::ME1_tbin ( void  ) const throw () [inline]

Definition at line 81 of file CSCSP_SPblock.h.

References me1_tbin.

Referenced by CSCSPEvent::unpack().

{ return me1_tbin; }
unsigned int CSCSP_SPblock::ME2_id ( void  ) const throw () [inline]

Definition at line 75 of file CSCSP_SPblock.h.

References me2_id.

Referenced by CSCSPEvent::unpack().

{ return me2_id; }
unsigned int CSCSP_SPblock::ME2_tbin ( void  ) const throw () [inline]

Definition at line 82 of file CSCSP_SPblock.h.

References me2_tbin.

Referenced by CSCSPEvent::unpack().

{ return me2_tbin; }
unsigned int CSCSP_SPblock::ME3_id ( void  ) const throw () [inline]

Definition at line 76 of file CSCSP_SPblock.h.

References me3_id.

Referenced by CSCSPEvent::unpack().

{ return me3_id; }
unsigned int CSCSP_SPblock::ME3_tbin ( void  ) const throw () [inline]

Definition at line 83 of file CSCSP_SPblock.h.

References me3_tbin.

Referenced by CSCSPEvent::unpack().

{ return me3_tbin; }
unsigned int CSCSP_SPblock::ME4_id ( void  ) const throw () [inline]

Definition at line 77 of file CSCSP_SPblock.h.

References me4_id.

Referenced by CSCSPEvent::unpack().

{ return me4_id; }
unsigned int CSCSP_SPblock::ME4_tbin ( void  ) const throw () [inline]

Definition at line 84 of file CSCSP_SPblock.h.

References me4_tbin.

Referenced by CSCSPEvent::unpack().

{ return me4_tbin; }
unsigned int CSCSP_SPblock::mode ( void  ) const throw () [inline]

Definition at line 106 of file CSCSP_SPblock.h.

References mode_.

Referenced by CSCSPEvent::unpack().

{ return mode_; }
unsigned int CSCSP_SPblock::MS_id ( void  ) const throw () [inline]

Definition at line 79 of file CSCSP_SPblock.h.

References ms_id.

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

Definition at line 61 of file CSCSP_SPblock.h.

References phi_.

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

Definition at line 105 of file CSCSP_SPblock.h.

References deltaPhi12_, deltaPhi23_, eta_, mode_, and sign_.

{ return (sign_<<20) | (mode_<<16) | ((eta_&0x1E)<<11) | (deltaPhi23_<<8) | deltaPhi12_; }
unsigned int CSCSP_SPblock::sign ( void  ) const throw () [inline]

Definition at line 62 of file CSCSP_SPblock.h.

References sign_.

{ return sign_;   }
unsigned int CSCSP_SPblock::syncErr ( void  ) const throw () [inline]

Definition at line 67 of file CSCSP_SPblock.h.

References se.

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

Definition at line 87 of file CSCSP_SPblock.h.

References tbin_.

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

Definition at line 108 of file CSCSP_SPblock.h.

References check().

{ memcpy((void*)this,buf,4*sizeof(short)); buf+=4; return check(); }

Friends And Related Function Documentation

friend class CSCSPEvent [friend]

Definition at line 44 of file CSCSP_SPblock.h.

friend class CSCSPRecord [friend]

Definition at line 52 of file CSCSP_SPblock.h.

friend class CSCTFPacker [friend]

Definition at line 53 of file CSCSP_SPblock.h.


Member Data Documentation

unsigned CSCSP_SPblock::bc0_ [private]

Definition at line 24 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::bxn0_ [private]

Definition at line 23 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::charge_ [private]

Definition at line 14 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::deltaPhi12_ [private]

Definition at line 20 of file CSCSP_SPblock.h.

Referenced by deltaPhi12(), CSCTFPacker::produce(), and ptLUTaddress().

unsigned CSCSP_SPblock::deltaPhi23_ [private]

Definition at line 21 of file CSCSP_SPblock.h.

Referenced by deltaPhi23(), CSCTFPacker::produce(), and ptLUTaddress().

Definition at line 46 of file CSCSP_SPblock.h.

Referenced by dtStub(), and CSCSPEvent::unpack().

bool CSCSP_SPblock::dtFilled [private]

Definition at line 48 of file CSCSP_SPblock.h.

Referenced by dtStub(), and CSCSPEvent::unpack().

unsigned CSCSP_SPblock::eta_ [private]

Definition at line 15 of file CSCSP_SPblock.h.

Referenced by eta(), CSCTFPacker::produce(), and ptLUTaddress().

unsigned CSCSP_SPblock::front_rear [private]

Definition at line 13 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::halo_ [private]

Definition at line 16 of file CSCSP_SPblock.h.

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

unsigned int CSCSP_SPblock::id_ [private]

Definition at line 56 of file CSCSP_SPblock.h.

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

Definition at line 45 of file CSCSP_SPblock.h.

Referenced by LCTs(), and CSCSPEvent::unpack().

bool CSCSP_SPblock::lctFilled[4] [private]

Definition at line 48 of file CSCSP_SPblock.h.

Referenced by LCTs(), and CSCSPEvent::unpack().

unsigned CSCSP_SPblock::mb_id [private]

Definition at line 31 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::mb_tbin [private]

Definition at line 39 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::me1_id [private]

Definition at line 27 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::me1_tbin [private]

Definition at line 35 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::me2_id [private]

Definition at line 28 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::me2_tbin [private]

Definition at line 36 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::me3_id [private]

Definition at line 29 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::me3_tbin [private]

Definition at line 37 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::me4_id [private]

Definition at line 30 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::me4_tbin [private]

Definition at line 38 of file CSCSP_SPblock.h.

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

unsigned int CSCSP_SPblock::mode_ [private]

Definition at line 55 of file CSCSP_SPblock.h.

Referenced by mode(), and ptLUTaddress().

unsigned CSCSP_SPblock::ms_id [private]

Definition at line 32 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::phi_ [private]

Definition at line 11 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::se [private]

Definition at line 17 of file CSCSP_SPblock.h.

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

unsigned CSCSP_SPblock::sign_ [private]

Definition at line 12 of file CSCSP_SPblock.h.

Referenced by CSCTFPacker::produce(), ptLUTaddress(), and sign().

unsigned int CSCSP_SPblock::tbin_ [private]

Definition at line 54 of file CSCSP_SPblock.h.

Referenced by tbin().

unsigned CSCSP_SPblock::zero_1 [private]

Definition at line 18 of file CSCSP_SPblock.h.

Referenced by check().

unsigned CSCSP_SPblock::zero_2 [private]

Definition at line 22 of file CSCSP_SPblock.h.

Referenced by check().

unsigned CSCSP_SPblock::zero_3 [private]

Definition at line 25 of file CSCSP_SPblock.h.

Referenced by check().

unsigned CSCSP_SPblock::zero_4 [private]

Definition at line 33 of file CSCSP_SPblock.h.

Referenced by check().

unsigned CSCSP_SPblock::zero_5 [private]

Definition at line 40 of file CSCSP_SPblock.h.

Referenced by check().