CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
CSCSP_SPblock Class Reference

#include <CSCSP_SPblock.h>

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.

110 {}

Member Function Documentation

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

Definition at line 72 of file CSCSP_SPblock.h.

References bc0_.

72 { return bc0_; }
unsigned bc0_
Definition: CSCSP_SPblock.h:24
unsigned int CSCSP_SPblock::bx0 ( void  ) const
throw (
)
inline

Definition at line 71 of file CSCSP_SPblock.h.

References bxn0_.

71 { return bxn0_; }
unsigned bxn0_
Definition: CSCSP_SPblock.h:23
unsigned int CSCSP_SPblock::charge ( void  ) const
throw (
)
inline

Definition at line 64 of file CSCSP_SPblock.h.

References charge_.

64 { return charge_; }
unsigned charge_
Definition: CSCSP_SPblock.h:14
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().

59 { return zero_1!=0||zero_2!=0||zero_3!=0||zero_4!=0||zero_5!=0; }
unsigned zero_3
Definition: CSCSP_SPblock.h:25
unsigned zero_5
Definition: CSCSP_SPblock.h:40
unsigned zero_1
Definition: CSCSP_SPblock.h:18
unsigned zero_2
Definition: CSCSP_SPblock.h:22
unsigned zero_4
Definition: CSCSP_SPblock.h:33
unsigned int CSCSP_SPblock::deltaPhi12 ( void  ) const
throw (
)
inline

Definition at line 69 of file CSCSP_SPblock.h.

References deltaPhi12_.

69 { return deltaPhi12_; }
unsigned deltaPhi12_
Definition: CSCSP_SPblock.h:20
unsigned int CSCSP_SPblock::deltaPhi23 ( void  ) const
throw (
)
inline

Definition at line 70 of file CSCSP_SPblock.h.

References deltaPhi23_.

70 { return deltaPhi23_; }
unsigned deltaPhi23_
Definition: CSCSP_SPblock.h:21
std::vector<CSCSP_MBblock> CSCSP_SPblock::dtStub ( void  ) const
throw (
)
inline

Definition at line 99 of file CSCSP_SPblock.h.

References mps_fire::result.

99  {
100  std::vector<CSCSP_MBblock> result;
101  if(dtFilled) result.push_back(dt_);
102  return result;
103  }
CSCSP_MBblock dt_
Definition: CSCSP_SPblock.h:46
unsigned int CSCSP_SPblock::eta ( void  ) const
throw (
)
inline

Definition at line 65 of file CSCSP_SPblock.h.

References eta_.

Referenced by Particle.Particle::__str__(), Jet.Jet::jetID(), and Jet.Jet::puJetId().

65 { return eta_; }
unsigned eta_
Definition: CSCSP_SPblock.h:15
unsigned int CSCSP_SPblock::f_r ( void  ) const
throw (
)
inline

Definition at line 63 of file CSCSP_SPblock.h.

References front_rear.

63 { return front_rear; };
unsigned front_rear
Definition: CSCSP_SPblock.h:13
unsigned int CSCSP_SPblock::halo ( void  ) const
throw (
)
inline

Definition at line 66 of file CSCSP_SPblock.h.

References halo_.

66 { return halo_; }
unsigned halo_
Definition: CSCSP_SPblock.h:16
unsigned int CSCSP_SPblock::id ( void  ) const
throw (
)
inline

Definition at line 88 of file CSCSP_SPblock.h.

References id_.

88 { return id_; }
unsigned int id_
Definition: CSCSP_SPblock.h:56
std::vector<CSCSP_MEblock> CSCSP_SPblock::LCTs ( void  ) const
throw (
)
inline

Definition at line 91 of file CSCSP_SPblock.h.

References mps_fire::result, and relativeConstraints::station.

91  {
92  std::vector<CSCSP_MEblock> result;
93  for(int station=0; station<4; station++)
94  if(lctFilled[station]) result.push_back(lct_[station]);
95  return result;
96  }
bool lctFilled[4]
Definition: CSCSP_SPblock.h:48
CSCSP_MEblock lct_[4]
Definition: CSCSP_SPblock.h:45
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().

78 { return mb_id; }
unsigned mb_id
Definition: CSCSP_SPblock.h:31
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().

85 { return mb_tbin; }
unsigned mb_tbin
Definition: CSCSP_SPblock.h:39
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().

74 { return me1_id; }
unsigned me1_id
Definition: CSCSP_SPblock.h:27
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().

81 { return me1_tbin; }
unsigned me1_tbin
Definition: CSCSP_SPblock.h:35
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().

75 { return me2_id; }
unsigned me2_id
Definition: CSCSP_SPblock.h:28
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().

82 { return me2_tbin; }
unsigned me2_tbin
Definition: CSCSP_SPblock.h:36
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().

76 { return me3_id; }
unsigned me3_id
Definition: CSCSP_SPblock.h:29
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().

83 { return me3_tbin; }
unsigned me3_tbin
Definition: CSCSP_SPblock.h:37
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().

77 { return me4_id; }
unsigned me4_id
Definition: CSCSP_SPblock.h:30
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().

84 { return me4_tbin; }
unsigned me4_tbin
Definition: CSCSP_SPblock.h:38
unsigned int CSCSP_SPblock::mode ( void  ) const
throw (
)
inline

Definition at line 106 of file CSCSP_SPblock.h.

References mode_.

Referenced by CSCSPEvent::unpack().

106 { return mode_; }
unsigned int mode_
Definition: CSCSP_SPblock.h:55
unsigned int CSCSP_SPblock::MS_id ( void  ) const
throw (
)
inline

Definition at line 79 of file CSCSP_SPblock.h.

References ms_id.

79 { return ms_id; }
unsigned ms_id
Definition: CSCSP_SPblock.h:32
unsigned int CSCSP_SPblock::phi ( void  ) const
throw (
)
inline

Definition at line 61 of file CSCSP_SPblock.h.

References phi_.

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

61 { return phi_; }
unsigned phi_
Definition: CSCSP_SPblock.h:11
unsigned int CSCSP_SPblock::ptLUTaddress ( void  ) const
throw (
)
inline

Definition at line 105 of file CSCSP_SPblock.h.

References deltaPhi12_, deltaPhi23_, eta_, and sign_.

105 { return (sign_<<20) | (mode_<<16) | ((eta_&0x1E)<<11) | (deltaPhi23_<<8) | deltaPhi12_; }
unsigned deltaPhi23_
Definition: CSCSP_SPblock.h:21
unsigned eta_
Definition: CSCSP_SPblock.h:15
unsigned sign_
Definition: CSCSP_SPblock.h:12
unsigned deltaPhi12_
Definition: CSCSP_SPblock.h:20
unsigned int mode_
Definition: CSCSP_SPblock.h:55
unsigned int CSCSP_SPblock::sign ( void  ) const
throw (
)
inline

Definition at line 62 of file CSCSP_SPblock.h.

References sign_.

62 { return sign_; }
unsigned sign_
Definition: CSCSP_SPblock.h:12
unsigned int CSCSP_SPblock::syncErr ( void  ) const
throw (
)
inline

Definition at line 67 of file CSCSP_SPblock.h.

References se.

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

Definition at line 87 of file CSCSP_SPblock.h.

References tbin_.

87 { return tbin_; }
unsigned int tbin_
Definition: CSCSP_SPblock.h:54
bool CSCSP_SPblock::unpack ( const unsigned short *&  buf)
throw (
)
inline

Definition at line 108 of file CSCSP_SPblock.h.

References check().

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

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

CSCSP_MBblock CSCSP_SPblock::dt_
private

Definition at line 46 of file CSCSP_SPblock.h.

Referenced by CSCSPEvent::unpack().

bool CSCSP_SPblock::dtFilled
private

Definition at line 48 of file CSCSP_SPblock.h.

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

CSCSP_MEblock CSCSP_SPblock::lct_[4]
private

Definition at line 45 of file CSCSP_SPblock.h.

Referenced by CSCSPEvent::unpack().

bool CSCSP_SPblock::lctFilled[4]
private

Definition at line 48 of file CSCSP_SPblock.h.

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

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