CMS 3D CMS Logo

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

#include <CSCSP_MEblock.h>

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 6 of file CSCSP_MEblock.h.

Member Enumeration Documentation

◆ AF

Enumerator
EMPTY 
FULL 

Definition at line 77 of file CSCSP_MEblock.h.

77 { EMPTY = 1, FULL = 2 };

◆ RS

Enumerator
IDLE_CHARs 
CARRIER_EXTEND 
NORMAL_DATA 
ERROR_PROP 

Definition at line 80 of file CSCSP_MEblock.h.

80 { IDLE_CHARs = 0, CARRIER_EXTEND = 1, NORMAL_DATA = 2, ERROR_PROP = 3 };

Constructor & Destructor Documentation

◆ CSCSP_MEblock()

CSCSP_MEblock::CSCSP_MEblock ( void  )
inline

Definition at line 99 of file CSCSP_MEblock.h.

99 {}

Member Function Documentation

◆ af()

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

Definition at line 90 of file CSCSP_MEblock.h.

90 { return alignment_fifo; }

References alignment_fifo.

◆ aligment_fifo()

unsigned int CSCSP_MEblock::aligment_fifo ( void  ) const
throw (
)
inline

Definition at line 78 of file CSCSP_MEblock.h.

78 { return (aligment_fifo_full << 1) | aligment_fifo_empty; }

References aligment_fifo_empty, and aligment_fifo_full.

◆ bc0()

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

Definition at line 65 of file CSCSP_MEblock.h.

65 { return bc0_; }

References bc0_.

◆ bx0()

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

Definition at line 64 of file CSCSP_MEblock.h.

64 { return bx0_; }

References bx0_.

◆ BXN()

unsigned int CSCSP_MEblock::BXN ( void  ) const
throw (
)
inline

Definition at line 63 of file CSCSP_MEblock.h.

63 { return me_bxn; }

References me_bxn.

◆ check()

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

Definition at line 60 of file CSCSP_MEblock.h.

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

References zero_1, zero_2, zero_3, and zero_4.

Referenced by unpack().

◆ csc()

unsigned int CSCSP_MEblock::csc ( void  ) const
throw (
)
inline

Definition at line 70 of file CSCSP_MEblock.h.

70 { return csc_id; }

References csc_id.

◆ errCnt()

unsigned int CSCSP_MEblock::errCnt ( void  ) const
throw (
)
inline

Definition at line 84 of file CSCSP_MEblock.h.

84 { return err_prop_cnt; }

References err_prop_cnt.

◆ l_r()

unsigned int CSCSP_MEblock::l_r ( void  ) const
throw (
)
inline

Definition at line 72 of file CSCSP_MEblock.h.

72 { return left_right; }

References left_right.

◆ link()

unsigned int CSCSP_MEblock::link ( void  ) const
throw (
)
inline

Definition at line 68 of file CSCSP_MEblock.h.

68 { return link_id; }

References link_id.

◆ mpc()

unsigned int CSCSP_MEblock::mpc ( void  ) const
throw (
)
inline

Definition at line 69 of file CSCSP_MEblock.h.

69 { return mpc_id; }

References mpc_id.

◆ pattern()

unsigned int CSCSP_MEblock::pattern ( void  ) const
throw (
)
inline

Definition at line 75 of file CSCSP_MEblock.h.

75 { return clct_pattern_number; }

References clct_pattern_number.

◆ quality()

unsigned int CSCSP_MEblock::quality ( void  ) const
throw (
)
inline

Definition at line 62 of file CSCSP_MEblock.h.

62 { return quality_; }

References quality_.

◆ receiver_status_frame1()

unsigned int CSCSP_MEblock::receiver_status_frame1 ( void  ) const
throw (
)
inline

Definition at line 81 of file CSCSP_MEblock.h.

81 { return (receiver_status_dv1 << 1) | receiver_status_er1; }

References receiver_status_dv1, and receiver_status_er1.

◆ receiver_status_frame2()

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

Definition at line 82 of file CSCSP_MEblock.h.

82 { return (receiver_status_dv2 << 1) | receiver_status_er2; }

References receiver_status_dv2, and receiver_status_er2.

◆ se()

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

Definition at line 88 of file CSCSP_MEblock.h.

88 { return sync_error; }

References sync_error.

◆ sm()

unsigned int CSCSP_MEblock::sm ( void  ) const
throw (
)
inline

Definition at line 89 of file CSCSP_MEblock.h.

89 { return sync_modified; }

References sync_modified.

◆ spInput()

unsigned int CSCSP_MEblock::spInput ( void  ) const
throw (
)
inline

Definition at line 67 of file CSCSP_MEblock.h.

67 { return spInput_; }

References spInput_.

◆ strip()

unsigned int CSCSP_MEblock::strip ( void  ) const
throw (
)
inline

Definition at line 74 of file CSCSP_MEblock.h.

74 { return clct_pattern_id; }

References clct_pattern_id.

◆ tbin()

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

Definition at line 86 of file CSCSP_MEblock.h.

86 { return tbin_; }

References tbin_.

◆ timingError()

unsigned int CSCSP_MEblock::timingError ( void  ) const
throw (
)
inline

Definition at line 91 of file CSCSP_MEblock.h.

91 { return bxBit; }

References bxBit.

◆ unpack()

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

Definition at line 93 of file CSCSP_MEblock.h.

93  {
94  std::memcpy((void *)this, buf, 4 * sizeof(short));
95  buf += 4;
96  return check();
97  }

References visDQMUpload::buf, and check().

◆ vp()

unsigned int CSCSP_MEblock::vp ( void  ) const
throw (
)
inline

Definition at line 87 of file CSCSP_MEblock.h.

87 { return valid_pattern; }

References valid_pattern.

◆ wireGroup()

unsigned int CSCSP_MEblock::wireGroup ( void  ) const
throw (
)
inline

Definition at line 73 of file CSCSP_MEblock.h.

73 { return wire_group_id; }

References wire_group_id.

Friends And Related Function Documentation

◆ CSCSPRecord

friend class CSCSPRecord
friend

Definition at line 48 of file CSCSP_MEblock.h.

◆ CSCTFPacker

friend class CSCTFPacker
friend

Definition at line 49 of file CSCSP_MEblock.h.

Member Data Documentation

◆ aligment_fifo_empty

unsigned CSCSP_MEblock::aligment_fifo_empty
private

Definition at line 36 of file CSCSP_MEblock.h.

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

◆ aligment_fifo_full

unsigned CSCSP_MEblock::aligment_fifo_full
private

Definition at line 27 of file CSCSP_MEblock.h.

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

◆ alignment_fifo

unsigned int CSCSP_MEblock::alignment_fifo
private

Definition at line 55 of file CSCSP_MEblock.h.

Referenced by af().

◆ bc0_

unsigned CSCSP_MEblock::bc0_
private

Definition at line 20 of file CSCSP_MEblock.h.

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

◆ bx0_

unsigned CSCSP_MEblock::bx0_
private

Definition at line 19 of file CSCSP_MEblock.h.

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

◆ bxBit

unsigned int CSCSP_MEblock::bxBit
private

Definition at line 56 of file CSCSP_MEblock.h.

Referenced by timingError().

◆ clct_pattern_id

unsigned CSCSP_MEblock::clct_pattern_id
private

Definition at line 16 of file CSCSP_MEblock.h.

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

◆ clct_pattern_number

unsigned CSCSP_MEblock::clct_pattern_number
private

Definition at line 10 of file CSCSP_MEblock.h.

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

◆ csc_id

unsigned CSCSP_MEblock::csc_id
private

Definition at line 17 of file CSCSP_MEblock.h.

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

◆ err_prop_cnt

unsigned CSCSP_MEblock::err_prop_cnt
private

Definition at line 32 of file CSCSP_MEblock.h.

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

◆ left_right

unsigned CSCSP_MEblock::left_right
private

Definition at line 18 of file CSCSP_MEblock.h.

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

◆ link_id

unsigned CSCSP_MEblock::link_id
private

Definition at line 30 of file CSCSP_MEblock.h.

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

◆ me_bxn

unsigned CSCSP_MEblock::me_bxn
private

Definition at line 23 of file CSCSP_MEblock.h.

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

◆ mpc_id

unsigned CSCSP_MEblock::mpc_id
private

Definition at line 31 of file CSCSP_MEblock.h.

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

◆ quality_

unsigned CSCSP_MEblock::quality_
private

Definition at line 11 of file CSCSP_MEblock.h.

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

◆ receiver_status_dv1

unsigned CSCSP_MEblock::receiver_status_dv1
private

Definition at line 25 of file CSCSP_MEblock.h.

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

◆ receiver_status_dv2

unsigned CSCSP_MEblock::receiver_status_dv2
private

Definition at line 34 of file CSCSP_MEblock.h.

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

◆ receiver_status_er1

unsigned CSCSP_MEblock::receiver_status_er1
private

Definition at line 24 of file CSCSP_MEblock.h.

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

◆ receiver_status_er2

unsigned CSCSP_MEblock::receiver_status_er2
private

Definition at line 33 of file CSCSP_MEblock.h.

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

◆ spInput_

unsigned int CSCSP_MEblock::spInput_
private

Definition at line 57 of file CSCSP_MEblock.h.

Referenced by spInput().

◆ sync_error

unsigned int CSCSP_MEblock::sync_error
private

Definition at line 53 of file CSCSP_MEblock.h.

Referenced by se().

◆ sync_modified

unsigned int CSCSP_MEblock::sync_modified
private

Definition at line 54 of file CSCSP_MEblock.h.

Referenced by sm().

◆ tbin_

unsigned int CSCSP_MEblock::tbin_
private

Definition at line 51 of file CSCSP_MEblock.h.

Referenced by tbin().

◆ valid_pattern

unsigned int CSCSP_MEblock::valid_pattern
private

Definition at line 52 of file CSCSP_MEblock.h.

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

◆ wire_group_id

unsigned CSCSP_MEblock::wire_group_id
private

Definition at line 12 of file CSCSP_MEblock.h.

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

◆ zero_1

unsigned CSCSP_MEblock::zero_1
private

Definition at line 13 of file CSCSP_MEblock.h.

Referenced by check().

◆ zero_2

unsigned CSCSP_MEblock::zero_2
private

Definition at line 21 of file CSCSP_MEblock.h.

Referenced by check().

◆ zero_3

unsigned CSCSP_MEblock::zero_3
private

Definition at line 28 of file CSCSP_MEblock.h.

Referenced by check().

◆ zero_4

unsigned CSCSP_MEblock::zero_4
private

Definition at line 37 of file CSCSP_MEblock.h.

Referenced by check().

CSCSP_MEblock::aligment_fifo_empty
unsigned aligment_fifo_empty
Definition: CSCSP_MEblock.h:36
CSCSP_MEblock::EMPTY
Definition: CSCSP_MEblock.h:77
CSCSP_MEblock::sync_error
unsigned int sync_error
Definition: CSCSP_MEblock.h:53
CSCSP_MEblock::zero_3
unsigned zero_3
Definition: CSCSP_MEblock.h:28
CSCSP_MEblock::clct_pattern_id
unsigned clct_pattern_id
Definition: CSCSP_MEblock.h:16
CSCSP_MEblock::receiver_status_er1
unsigned receiver_status_er1
Definition: CSCSP_MEblock.h:24
CSCSP_MEblock::ERROR_PROP
Definition: CSCSP_MEblock.h:80
CSCSP_MEblock::zero_4
unsigned zero_4
Definition: CSCSP_MEblock.h:37
CSCSP_MEblock::receiver_status_er2
unsigned receiver_status_er2
Definition: CSCSP_MEblock.h:33
CSCSP_MEblock::NORMAL_DATA
Definition: CSCSP_MEblock.h:80
CSCSP_MEblock::mpc_id
unsigned mpc_id
Definition: CSCSP_MEblock.h:31
CSCSP_MEblock::zero_2
unsigned zero_2
Definition: CSCSP_MEblock.h:21
CSCSP_MEblock::zero_1
unsigned zero_1
Definition: CSCSP_MEblock.h:13
CSCSP_MEblock::me_bxn
unsigned me_bxn
Definition: CSCSP_MEblock.h:23
CSCSP_MEblock::check
bool check(void) const
Definition: CSCSP_MEblock.h:60
CSCSP_MEblock::bx0_
unsigned bx0_
Definition: CSCSP_MEblock.h:19
CSCSP_MEblock::clct_pattern_number
unsigned clct_pattern_number
Definition: CSCSP_MEblock.h:10
CSCSP_MEblock::aligment_fifo_full
unsigned aligment_fifo_full
Definition: CSCSP_MEblock.h:27
CSCSP_MEblock::quality_
unsigned quality_
Definition: CSCSP_MEblock.h:11
CSCSP_MEblock::spInput_
unsigned int spInput_
Definition: CSCSP_MEblock.h:57
CSCSP_MEblock::IDLE_CHARs
Definition: CSCSP_MEblock.h:80
CSCSP_MEblock::wire_group_id
unsigned wire_group_id
Definition: CSCSP_MEblock.h:12
CSCSP_MEblock::CARRIER_EXTEND
Definition: CSCSP_MEblock.h:80
visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
CSCSP_MEblock::valid_pattern
unsigned int valid_pattern
Definition: CSCSP_MEblock.h:52
CSCSP_MEblock::left_right
unsigned left_right
Definition: CSCSP_MEblock.h:18
CSCSP_MEblock::FULL
Definition: CSCSP_MEblock.h:77
CSCSP_MEblock::csc_id
unsigned csc_id
Definition: CSCSP_MEblock.h:17
CSCSP_MEblock::alignment_fifo
unsigned int alignment_fifo
Definition: CSCSP_MEblock.h:55
CSCSP_MEblock::tbin_
unsigned int tbin_
Definition: CSCSP_MEblock.h:51
CSCSP_MEblock::bxBit
unsigned int bxBit
Definition: CSCSP_MEblock.h:56
CSCSP_MEblock::receiver_status_dv2
unsigned receiver_status_dv2
Definition: CSCSP_MEblock.h:34
CSCSP_MEblock::link_id
unsigned link_id
Definition: CSCSP_MEblock.h:30
CSCSP_MEblock::err_prop_cnt
unsigned err_prop_cnt
Definition: CSCSP_MEblock.h:32
CSCSP_MEblock::sync_modified
unsigned int sync_modified
Definition: CSCSP_MEblock.h:54
CSCSP_MEblock::receiver_status_dv1
unsigned receiver_status_dv1
Definition: CSCSP_MEblock.h:25
CSCSP_MEblock::bc0_
unsigned bc0_
Definition: CSCSP_MEblock.h:20