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.

References bc0_.

73 { return bc0_; }
unsigned bc0_
Definition: CSCSP_SPblock.h:25

◆ bx0()

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

Definition at line 72 of file CSCSP_SPblock.h.

References bxn0_.

72 { return bxn0_; }
unsigned bxn0_
Definition: CSCSP_SPblock.h:24

◆ charge()

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

Definition at line 65 of file CSCSP_SPblock.h.

References charge_.

65 { return charge_; }
unsigned charge_
Definition: CSCSP_SPblock.h:14

◆ check()

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

Definition at line 60 of file CSCSP_SPblock.h.

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

Referenced by unpack().

60 { return zero_1 != 0 || zero_2 != 0 || zero_3 != 0 || zero_4 != 0 || zero_5 != 0; }
unsigned zero_3
Definition: CSCSP_SPblock.h:26
unsigned zero_5
Definition: CSCSP_SPblock.h:41
unsigned zero_1
Definition: CSCSP_SPblock.h:19
unsigned zero_2
Definition: CSCSP_SPblock.h:23
unsigned zero_4
Definition: CSCSP_SPblock.h:34

◆ deltaPhi12()

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

Definition at line 70 of file CSCSP_SPblock.h.

References deltaPhi12_.

70 { return deltaPhi12_; }
unsigned deltaPhi12_
Definition: CSCSP_SPblock.h:21

◆ deltaPhi23()

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

Definition at line 71 of file CSCSP_SPblock.h.

References deltaPhi23_.

71 { return deltaPhi23_; }
unsigned deltaPhi23_
Definition: CSCSP_SPblock.h:22

◆ dtStub()

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

Definition at line 101 of file CSCSP_SPblock.h.

References dt_, dtFilled, and mps_fire::result.

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

◆ eta()

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

◆ f_r()

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

Definition at line 64 of file CSCSP_SPblock.h.

References front_rear.

64 { return front_rear; };
unsigned front_rear
Definition: CSCSP_SPblock.h:13

◆ halo()

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

Definition at line 67 of file CSCSP_SPblock.h.

References halo_.

67 { return halo_; }
unsigned halo_
Definition: CSCSP_SPblock.h:16

◆ id()

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

Definition at line 89 of file CSCSP_SPblock.h.

References id_.

89 { return id_; }
unsigned int id_
Definition: CSCSP_SPblock.h:57

◆ LCTs()

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

Definition at line 92 of file CSCSP_SPblock.h.

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

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  }
bool lctFilled[4]
Definition: CSCSP_SPblock.h:49
CSCSP_MEblock lct_[4]
Definition: CSCSP_SPblock.h:46

◆ MB_id()

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

Definition at line 79 of file CSCSP_SPblock.h.

References mb_id.

79 { return mb_id; }
unsigned mb_id
Definition: CSCSP_SPblock.h:32

◆ MB_tbin()

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

Definition at line 86 of file CSCSP_SPblock.h.

References mb_tbin.

86 { return mb_tbin; }
unsigned mb_tbin
Definition: CSCSP_SPblock.h:40

◆ ME1_id()

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

Definition at line 75 of file CSCSP_SPblock.h.

References me1_id.

75 { return me1_id; }
unsigned me1_id
Definition: CSCSP_SPblock.h:28

◆ ME1_tbin()

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

Definition at line 82 of file CSCSP_SPblock.h.

References me1_tbin.

82 { return me1_tbin; }
unsigned me1_tbin
Definition: CSCSP_SPblock.h:36

◆ ME2_id()

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

Definition at line 76 of file CSCSP_SPblock.h.

References me2_id.

76 { return me2_id; }
unsigned me2_id
Definition: CSCSP_SPblock.h:29

◆ ME2_tbin()

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

Definition at line 83 of file CSCSP_SPblock.h.

References me2_tbin.

83 { return me2_tbin; }
unsigned me2_tbin
Definition: CSCSP_SPblock.h:37

◆ ME3_id()

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

Definition at line 77 of file CSCSP_SPblock.h.

References me3_id.

77 { return me3_id; }
unsigned me3_id
Definition: CSCSP_SPblock.h:30

◆ ME3_tbin()

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

Definition at line 84 of file CSCSP_SPblock.h.

References me3_tbin.

84 { return me3_tbin; }
unsigned me3_tbin
Definition: CSCSP_SPblock.h:38

◆ ME4_id()

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

Definition at line 78 of file CSCSP_SPblock.h.

References me4_id.

78 { return me4_id; }
unsigned me4_id
Definition: CSCSP_SPblock.h:31

◆ ME4_tbin()

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

Definition at line 85 of file CSCSP_SPblock.h.

References me4_tbin.

85 { return me4_tbin; }
unsigned me4_tbin
Definition: CSCSP_SPblock.h:39

◆ mode()

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

Definition at line 111 of file CSCSP_SPblock.h.

References mode_.

111 { return mode_; }
unsigned int mode_
Definition: CSCSP_SPblock.h:56

◆ MS_id()

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

Definition at line 80 of file CSCSP_SPblock.h.

References ms_id.

80 { return ms_id; }
unsigned ms_id
Definition: CSCSP_SPblock.h:33

◆ phi()

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

◆ ptLUTaddress()

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

Definition at line 108 of file CSCSP_SPblock.h.

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

108  {
109  return (sign_ << 20) | (mode_ << 16) | ((eta_ & 0x1E) << 11) | (deltaPhi23_ << 8) | deltaPhi12_;
110  }
unsigned deltaPhi23_
Definition: CSCSP_SPblock.h:22
unsigned eta_
Definition: CSCSP_SPblock.h:15
unsigned sign_
Definition: CSCSP_SPblock.h:12
unsigned deltaPhi12_
Definition: CSCSP_SPblock.h:21
unsigned int mode_
Definition: CSCSP_SPblock.h:56

◆ sign()

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

Definition at line 63 of file CSCSP_SPblock.h.

References sign_.

63 { return sign_; }
unsigned sign_
Definition: CSCSP_SPblock.h:12

◆ syncErr()

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

Definition at line 68 of file CSCSP_SPblock.h.

References se.

68 { return se; }

◆ tbin()

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

Definition at line 88 of file CSCSP_SPblock.h.

References tbin_.

88 { return tbin_; }
unsigned int tbin_
Definition: CSCSP_SPblock.h:55

◆ unpack()

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

Definition at line 113 of file CSCSP_SPblock.h.

References visDQMUpload::buf, and check().

113  {
114  std::memcpy((void *)this, buf, 4 * sizeof(short));
115  buf += 4;
116  return check();
117  }
bool check(void) const
Definition: CSCSP_SPblock.h:60

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