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::CSCSP_SPblock ( void  )
inline

Definition at line 119 of file CSCSP_SPblock.h.

119 {}

Member Function Documentation

◆ bc0()

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

Definition at line 73 of file CSCSP_SPblock.h.

73 { return bc0_; }

References bc0_.

◆ bx0()

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

Definition at line 72 of file CSCSP_SPblock.h.

72 { return bxn0_; }

References bxn0_.

◆ charge()

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

Definition at line 65 of file CSCSP_SPblock.h.

65 { return charge_; }

References charge_.

◆ check()

bool CSCSP_SPblock::check ( void  ) const
throw (
)
inline

Definition at line 60 of file CSCSP_SPblock.h.

60 { return zero_1 != 0 || zero_2 != 0 || zero_3 != 0 || zero_4 != 0 || zero_5 != 0; }

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

Referenced by unpack().

◆ deltaPhi12()

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

Definition at line 70 of file CSCSP_SPblock.h.

70 { return deltaPhi12_; }

References deltaPhi12_.

◆ deltaPhi23()

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

Definition at line 71 of file CSCSP_SPblock.h.

71 { return deltaPhi23_; }

References deltaPhi23_.

◆ dtStub()

std::vector<CSCSP_MBblock> CSCSP_SPblock::dtStub ( void  ) const
throw (
)
inline

Definition at line 101 of file CSCSP_SPblock.h.

101  {
102  std::vector<CSCSP_MBblock> result;
103  if (dtFilled)
104  result.push_back(dt_);
105  return result;
106  }

References dt_, dtFilled, and mps_fire::result.

◆ eta()

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

Definition at line 66 of file CSCSP_SPblock.h.

66 { return eta_; }

References eta_.

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

◆ f_r()

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

Definition at line 64 of file CSCSP_SPblock.h.

64 { return front_rear; };

References front_rear.

◆ halo()

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

Definition at line 67 of file CSCSP_SPblock.h.

67 { return halo_; }

References halo_.

◆ id()

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

Definition at line 89 of file CSCSP_SPblock.h.

89 { return id_; }

References id_.

◆ LCTs()

std::vector<CSCSP_MEblock> CSCSP_SPblock::LCTs ( void  ) const
throw (
)
inline

Definition at line 92 of file CSCSP_SPblock.h.

92  {
93  std::vector<CSCSP_MEblock> result;
94  for (int station = 0; station < 4; station++)
95  if (lctFilled[station])
96  result.push_back(lct_[station]);
97  return result;
98  }

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

◆ MB_id()

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

Definition at line 79 of file CSCSP_SPblock.h.

79 { return mb_id; }

References mb_id.

◆ MB_tbin()

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

Definition at line 86 of file CSCSP_SPblock.h.

86 { return mb_tbin; }

References mb_tbin.

◆ ME1_id()

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

Definition at line 75 of file CSCSP_SPblock.h.

75 { return me1_id; }

References me1_id.

◆ ME1_tbin()

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

Definition at line 82 of file CSCSP_SPblock.h.

82 { return me1_tbin; }

References me1_tbin.

◆ ME2_id()

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

Definition at line 76 of file CSCSP_SPblock.h.

76 { return me2_id; }

References me2_id.

◆ ME2_tbin()

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

Definition at line 83 of file CSCSP_SPblock.h.

83 { return me2_tbin; }

References me2_tbin.

◆ ME3_id()

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

Definition at line 77 of file CSCSP_SPblock.h.

77 { return me3_id; }

References me3_id.

◆ ME3_tbin()

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

Definition at line 84 of file CSCSP_SPblock.h.

84 { return me3_tbin; }

References me3_tbin.

◆ ME4_id()

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

Definition at line 78 of file CSCSP_SPblock.h.

78 { return me4_id; }

References me4_id.

◆ ME4_tbin()

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

Definition at line 85 of file CSCSP_SPblock.h.

85 { return me4_tbin; }

References me4_tbin.

◆ mode()

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

Definition at line 111 of file CSCSP_SPblock.h.

111 { return mode_; }

References mode_.

◆ MS_id()

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

Definition at line 80 of file CSCSP_SPblock.h.

80 { return ms_id; }

References ms_id.

◆ phi()

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

Definition at line 62 of file CSCSP_SPblock.h.

62 { return phi_; }

References phi_.

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

◆ ptLUTaddress()

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

Definition at line 108 of file CSCSP_SPblock.h.

108  {
109  return (sign_ << 20) | (mode_ << 16) | ((eta_ & 0x1E) << 11) | (deltaPhi23_ << 8) | deltaPhi12_;
110  }

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

◆ sign()

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

Definition at line 63 of file CSCSP_SPblock.h.

63 { return sign_; }

References sign_.

◆ syncErr()

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

Definition at line 68 of file CSCSP_SPblock.h.

68 { return se; }

References se.

◆ tbin()

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

Definition at line 88 of file CSCSP_SPblock.h.

88 { return tbin_; }

References tbin_.

◆ unpack()

bool CSCSP_SPblock::unpack ( const unsigned short *&  buf)
throw (
)
inline

Definition at line 113 of file CSCSP_SPblock.h.

113  {
114  std::memcpy((void *)this, buf, 4 * sizeof(short));
115  buf += 4;
116  return check();
117  }

References visDQMUpload::buf, and check().

Friends And Related Function Documentation

◆ CSCSPEvent

friend class CSCSPEvent
friend

Definition at line 45 of file CSCSP_SPblock.h.

◆ CSCSPRecord

friend class CSCSPRecord
friend

Definition at line 53 of file CSCSP_SPblock.h.

◆ CSCTFPacker

friend class CSCTFPacker
friend

Definition at line 54 of file CSCSP_SPblock.h.

Member Data Documentation

◆ bc0_

unsigned CSCSP_SPblock::bc0_
private

Definition at line 25 of file CSCSP_SPblock.h.

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

◆ bxn0_

unsigned CSCSP_SPblock::bxn0_
private

Definition at line 24 of file CSCSP_SPblock.h.

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

◆ charge_

unsigned CSCSP_SPblock::charge_
private

Definition at line 14 of file CSCSP_SPblock.h.

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

◆ deltaPhi12_

unsigned CSCSP_SPblock::deltaPhi12_
private

Definition at line 21 of file CSCSP_SPblock.h.

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

◆ deltaPhi23_

unsigned CSCSP_SPblock::deltaPhi23_
private

Definition at line 22 of file CSCSP_SPblock.h.

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

◆ dt_

CSCSP_MBblock CSCSP_SPblock::dt_
private

Definition at line 47 of file CSCSP_SPblock.h.

Referenced by dtStub().

◆ dtFilled

bool CSCSP_SPblock::dtFilled
private

Definition at line 49 of file CSCSP_SPblock.h.

Referenced by dtStub().

◆ eta_

unsigned CSCSP_SPblock::eta_
private

Definition at line 15 of file CSCSP_SPblock.h.

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

◆ front_rear

unsigned CSCSP_SPblock::front_rear
private

Definition at line 13 of file CSCSP_SPblock.h.

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

◆ halo_

unsigned CSCSP_SPblock::halo_
private

Definition at line 16 of file CSCSP_SPblock.h.

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

◆ id_

unsigned int CSCSP_SPblock::id_
private

Definition at line 57 of file CSCSP_SPblock.h.

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

◆ lct_

CSCSP_MEblock CSCSP_SPblock::lct_[4]
private

Definition at line 46 of file CSCSP_SPblock.h.

Referenced by LCTs().

◆ lctFilled

bool CSCSP_SPblock::lctFilled[4]
private

Definition at line 49 of file CSCSP_SPblock.h.

Referenced by LCTs().

◆ mb_id

unsigned CSCSP_SPblock::mb_id
private

Definition at line 32 of file CSCSP_SPblock.h.

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

◆ mb_tbin

unsigned CSCSP_SPblock::mb_tbin
private

Definition at line 40 of file CSCSP_SPblock.h.

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

◆ me1_id

unsigned CSCSP_SPblock::me1_id
private

Definition at line 28 of file CSCSP_SPblock.h.

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

◆ me1_tbin

unsigned CSCSP_SPblock::me1_tbin
private

Definition at line 36 of file CSCSP_SPblock.h.

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

◆ me2_id

unsigned CSCSP_SPblock::me2_id
private

Definition at line 29 of file CSCSP_SPblock.h.

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

◆ me2_tbin

unsigned CSCSP_SPblock::me2_tbin
private

Definition at line 37 of file CSCSP_SPblock.h.

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

◆ me3_id

unsigned CSCSP_SPblock::me3_id
private

Definition at line 30 of file CSCSP_SPblock.h.

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

◆ me3_tbin

unsigned CSCSP_SPblock::me3_tbin
private

Definition at line 38 of file CSCSP_SPblock.h.

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

◆ me4_id

unsigned CSCSP_SPblock::me4_id
private

Definition at line 31 of file CSCSP_SPblock.h.

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

◆ me4_tbin

unsigned CSCSP_SPblock::me4_tbin
private

Definition at line 39 of file CSCSP_SPblock.h.

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

◆ mode_

unsigned int CSCSP_SPblock::mode_
private

Definition at line 56 of file CSCSP_SPblock.h.

Referenced by mode(), and ptLUTaddress().

◆ ms_id

unsigned CSCSP_SPblock::ms_id
private

Definition at line 33 of file CSCSP_SPblock.h.

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

◆ phi_

unsigned CSCSP_SPblock::phi_
private

Definition at line 11 of file CSCSP_SPblock.h.

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

◆ se

unsigned CSCSP_SPblock::se
private

Definition at line 18 of file CSCSP_SPblock.h.

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

◆ sign_

unsigned CSCSP_SPblock::sign_
private

Definition at line 12 of file CSCSP_SPblock.h.

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

◆ tbin_

unsigned int CSCSP_SPblock::tbin_
private

Definition at line 55 of file CSCSP_SPblock.h.

Referenced by tbin().

◆ zero_1

unsigned CSCSP_SPblock::zero_1
private

Definition at line 19 of file CSCSP_SPblock.h.

Referenced by check().

◆ zero_2

unsigned CSCSP_SPblock::zero_2
private

Definition at line 23 of file CSCSP_SPblock.h.

Referenced by check().

◆ zero_3

unsigned CSCSP_SPblock::zero_3
private

Definition at line 26 of file CSCSP_SPblock.h.

Referenced by check().

◆ zero_4

unsigned CSCSP_SPblock::zero_4
private

Definition at line 34 of file CSCSP_SPblock.h.

Referenced by check().

◆ zero_5

unsigned CSCSP_SPblock::zero_5
private

Definition at line 41 of file CSCSP_SPblock.h.

Referenced by check().

CSCSP_SPblock::zero_5
unsigned zero_5
Definition: CSCSP_SPblock.h:41
CSCSP_SPblock::ms_id
unsigned ms_id
Definition: CSCSP_SPblock.h:33
CSCSP_SPblock::sign_
unsigned sign_
Definition: CSCSP_SPblock.h:12
CSCSP_SPblock::zero_2
unsigned zero_2
Definition: CSCSP_SPblock.h:23
CSCSP_SPblock::mb_id
unsigned mb_id
Definition: CSCSP_SPblock.h:32
relativeConstraints.station
station
Definition: relativeConstraints.py:67
CSCSP_SPblock::tbin_
unsigned int tbin_
Definition: CSCSP_SPblock.h:55
CSCSP_SPblock::mode_
unsigned int mode_
Definition: CSCSP_SPblock.h:56
CSCSP_SPblock::eta_
unsigned eta_
Definition: CSCSP_SPblock.h:15
CSCSP_SPblock::dt_
CSCSP_MBblock dt_
Definition: CSCSP_SPblock.h:47
CSCSP_SPblock::lct_
CSCSP_MEblock lct_[4]
Definition: CSCSP_SPblock.h:46
CSCSP_SPblock::check
bool check(void) const
Definition: CSCSP_SPblock.h:60
CSCSP_SPblock::halo_
unsigned halo_
Definition: CSCSP_SPblock.h:16
CSCSP_SPblock::deltaPhi23_
unsigned deltaPhi23_
Definition: CSCSP_SPblock.h:22
CSCSP_SPblock::deltaPhi12_
unsigned deltaPhi12_
Definition: CSCSP_SPblock.h:21
CSCSP_SPblock::front_rear
unsigned front_rear
Definition: CSCSP_SPblock.h:13
CSCSP_SPblock::me3_tbin
unsigned me3_tbin
Definition: CSCSP_SPblock.h:38
CSCSP_SPblock::se
unsigned se
Definition: CSCSP_SPblock.h:18
CSCSP_SPblock::charge_
unsigned charge_
Definition: CSCSP_SPblock.h:14
CSCSP_SPblock::dtFilled
bool dtFilled
Definition: CSCSP_SPblock.h:49
CSCSP_SPblock::lctFilled
bool lctFilled[4]
Definition: CSCSP_SPblock.h:49
CSCSP_SPblock::me2_id
unsigned me2_id
Definition: CSCSP_SPblock.h:29
CSCSP_SPblock::me2_tbin
unsigned me2_tbin
Definition: CSCSP_SPblock.h:37
CSCSP_SPblock::bxn0_
unsigned bxn0_
Definition: CSCSP_SPblock.h:24
CSCSP_SPblock::phi_
unsigned phi_
Definition: CSCSP_SPblock.h:11
CSCSP_SPblock::me4_tbin
unsigned me4_tbin
Definition: CSCSP_SPblock.h:39
visDQMUpload.buf
buf
Definition: visDQMUpload.py:154
CSCSP_SPblock::id_
unsigned int id_
Definition: CSCSP_SPblock.h:57
CSCSP_SPblock::bc0_
unsigned bc0_
Definition: CSCSP_SPblock.h:25
CSCSP_SPblock::me4_id
unsigned me4_id
Definition: CSCSP_SPblock.h:31
CSCSP_SPblock::me3_id
unsigned me3_id
Definition: CSCSP_SPblock.h:30
CSCSP_SPblock::zero_3
unsigned zero_3
Definition: CSCSP_SPblock.h:26
mps_fire.result
result
Definition: mps_fire.py:303
CSCSP_SPblock::me1_tbin
unsigned me1_tbin
Definition: CSCSP_SPblock.h:36
CSCSP_SPblock::zero_4
unsigned zero_4
Definition: CSCSP_SPblock.h:34
CSCSP_SPblock::me1_id
unsigned me1_id
Definition: CSCSP_SPblock.h:28
CSCSP_SPblock::zero_1
unsigned zero_1
Definition: CSCSP_SPblock.h:19
CSCSP_SPblock::mb_tbin
unsigned mb_tbin
Definition: CSCSP_SPblock.h:40