CMS 3D CMS Logo

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

#include <CSCSP_MBblock.h>

Public Member Functions

unsigned int af (void) const throw ()
 
unsigned int bc0 (void) const throw ()
 
unsigned int bxn (void) const throw ()
 
unsigned int BXN (void) const throw ()
 
unsigned int cal (void) const throw ()
 
bool check (void) const throw ()
 
 CSCSP_MBblock (void)
 
unsigned int flag (void) const throw ()
 
unsigned int id (void) const throw ()
 
unsigned int phi (void) const throw ()
 
unsigned int phi_bend (void) const throw ()
 
unsigned int quality (void) const throw ()
 
unsigned int tbin (void) const throw ()
 
unsigned int timingError (void) const throw ()
 
bool unpack (const unsigned short *&buf) throw ()
 
unsigned int vq (void) const throw ()
 

Private Attributes

unsigned int alignment_fifo
 
unsigned bc0_: 1
 
unsigned int bxBit
 
unsigned bxn0_: 1
 
unsigned bxn1_: 1
 
unsigned cal_: 1
 
unsigned flag_: 1
 
unsigned int id_
 
unsigned mb_bxn_: 12
 
unsigned phi_: 12
 
unsigned phi_bend_: 5
 
unsigned quality_: 3
 
unsigned spare_1: 3
 
unsigned spare_2: 15
 
unsigned int tbin_
 
unsigned int valid_quality
 
unsigned zero_1: 1
 
unsigned zero_2: 3
 
unsigned zero_3: 2
 
unsigned zero_4: 1
 
unsigned zero_5: 1
 
unsigned zero_6: 1
 

Friends

class CSCSPRecord
 
class CSCTFPacker
 

Detailed Description

Definition at line 6 of file CSCSP_MBblock.h.

Constructor & Destructor Documentation

◆ CSCSP_MBblock()

CSCSP_MBblock::CSCSP_MBblock ( void  )
inline

Definition at line 69 of file CSCSP_MBblock.h.

69 {}

Member Function Documentation

◆ af()

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

Definition at line 60 of file CSCSP_MBblock.h.

60 { return alignment_fifo; }

References alignment_fifo.

◆ bc0()

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

Definition at line 54 of file CSCSP_MBblock.h.

54 { return bc0_; }

References bc0_.

◆ bxn()

unsigned int CSCSP_MBblock::bxn ( void  ) const
throw (
)
inline

Definition at line 53 of file CSCSP_MBblock.h.

53 { return (bxn1_ << 1) | bxn0_; }

References bxn0_, and bxn1_.

◆ BXN()

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

Definition at line 55 of file CSCSP_MBblock.h.

55 { return mb_bxn_; }

References mb_bxn_.

◆ cal()

unsigned int CSCSP_MBblock::cal ( void  ) const
throw (
)
inline

Definition at line 50 of file CSCSP_MBblock.h.

50 { return cal_; }

References cal_.

◆ check()

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

Definition at line 42 of file CSCSP_MBblock.h.

42  {
43  return zero_1 != 0 || zero_2 != 0 || zero_3 != 0 || zero_4 != 0 || zero_5 != 0 || zero_6 != 0 || spare_1 != 0 ||
44  spare_2 != 0;
45  }

References spare_1, spare_2, zero_1, zero_2, zero_3, zero_4, zero_5, and zero_6.

Referenced by unpack().

◆ flag()

unsigned int CSCSP_MBblock::flag ( void  ) const
throw (
)
inline

Definition at line 49 of file CSCSP_MBblock.h.

49 { return flag_; }

References flag_.

◆ id()

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

Definition at line 57 of file CSCSP_MBblock.h.

57 { return id_; }

References id_.

◆ phi()

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

Definition at line 52 of file CSCSP_MBblock.h.

52 { return phi_; }

References phi_.

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

◆ phi_bend()

unsigned int CSCSP_MBblock::phi_bend ( void  ) const
throw (
)
inline

Definition at line 48 of file CSCSP_MBblock.h.

48 { return phi_bend_; }

References phi_bend_.

◆ quality()

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

Definition at line 47 of file CSCSP_MBblock.h.

47 { return quality_; }

References quality_.

◆ tbin()

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

Definition at line 58 of file CSCSP_MBblock.h.

58 { return tbin_; }

References tbin_.

◆ timingError()

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

Definition at line 61 of file CSCSP_MBblock.h.

61 { return bxBit; }

References bxBit.

◆ unpack()

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

Definition at line 63 of file CSCSP_MBblock.h.

63  {
64  std::memcpy(this, buf, 4 * sizeof(short));
65  buf += 4;
66  return check();
67  }

References visDQMUpload::buf, and check().

◆ vq()

unsigned int CSCSP_MBblock::vq ( void  ) const
throw (
)
inline

Definition at line 59 of file CSCSP_MBblock.h.

59 { return valid_quality; }

References valid_quality.

Friends And Related Function Documentation

◆ CSCSPRecord

friend class CSCSPRecord
friend

Definition at line 32 of file CSCSP_MBblock.h.

◆ CSCTFPacker

friend class CSCTFPacker
friend

Definition at line 33 of file CSCSP_MBblock.h.

Member Data Documentation

◆ alignment_fifo

unsigned int CSCSP_MBblock::alignment_fifo
private

Definition at line 37 of file CSCSP_MBblock.h.

Referenced by af().

◆ bc0_

unsigned CSCSP_MBblock::bc0_
private

Definition at line 20 of file CSCSP_MBblock.h.

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

◆ bxBit

unsigned int CSCSP_MBblock::bxBit
private

Definition at line 38 of file CSCSP_MBblock.h.

Referenced by timingError().

◆ bxn0_

unsigned CSCSP_MBblock::bxn0_
private

Definition at line 19 of file CSCSP_MBblock.h.

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

◆ bxn1_

unsigned CSCSP_MBblock::bxn1_
private

Definition at line 18 of file CSCSP_MBblock.h.

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

◆ cal_

unsigned CSCSP_MBblock::cal_
private

Definition at line 14 of file CSCSP_MBblock.h.

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

◆ flag_

unsigned CSCSP_MBblock::flag_
private

Definition at line 13 of file CSCSP_MBblock.h.

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

◆ id_

unsigned int CSCSP_MBblock::id_
private

Definition at line 39 of file CSCSP_MBblock.h.

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

◆ mb_bxn_

unsigned CSCSP_MBblock::mb_bxn_
private

Definition at line 23 of file CSCSP_MBblock.h.

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

◆ phi_

unsigned CSCSP_MBblock::phi_
private

Definition at line 17 of file CSCSP_MBblock.h.

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

◆ phi_bend_

unsigned CSCSP_MBblock::phi_bend_
private

Definition at line 11 of file CSCSP_MBblock.h.

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

◆ quality_

unsigned CSCSP_MBblock::quality_
private

Definition at line 9 of file CSCSP_MBblock.h.

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

◆ spare_1

unsigned CSCSP_MBblock::spare_1
private

Definition at line 24 of file CSCSP_MBblock.h.

Referenced by check().

◆ spare_2

unsigned CSCSP_MBblock::spare_2
private

Definition at line 27 of file CSCSP_MBblock.h.

Referenced by check().

◆ tbin_

unsigned int CSCSP_MBblock::tbin_
private

Definition at line 35 of file CSCSP_MBblock.h.

Referenced by tbin().

◆ valid_quality

unsigned int CSCSP_MBblock::valid_quality
private

Definition at line 36 of file CSCSP_MBblock.h.

Referenced by vq().

◆ zero_1

unsigned CSCSP_MBblock::zero_1
private

Definition at line 10 of file CSCSP_MBblock.h.

Referenced by check().

◆ zero_2

unsigned CSCSP_MBblock::zero_2
private

Definition at line 12 of file CSCSP_MBblock.h.

Referenced by check().

◆ zero_3

unsigned CSCSP_MBblock::zero_3
private

Definition at line 15 of file CSCSP_MBblock.h.

Referenced by check().

◆ zero_4

unsigned CSCSP_MBblock::zero_4
private

Definition at line 21 of file CSCSP_MBblock.h.

Referenced by check().

◆ zero_5

unsigned CSCSP_MBblock::zero_5
private

Definition at line 25 of file CSCSP_MBblock.h.

Referenced by check().

◆ zero_6

unsigned CSCSP_MBblock::zero_6
private

Definition at line 28 of file CSCSP_MBblock.h.

Referenced by check().

CSCSP_MBblock::mb_bxn_
unsigned mb_bxn_
Definition: CSCSP_MBblock.h:23
CSCSP_MBblock::bc0_
unsigned bc0_
Definition: CSCSP_MBblock.h:20
CSCSP_MBblock::cal_
unsigned cal_
Definition: CSCSP_MBblock.h:14
CSCSP_MBblock::spare_2
unsigned spare_2
Definition: CSCSP_MBblock.h:27
CSCSP_MBblock::zero_3
unsigned zero_3
Definition: CSCSP_MBblock.h:15
CSCSP_MBblock::bxBit
unsigned int bxBit
Definition: CSCSP_MBblock.h:38
CSCSP_MBblock::valid_quality
unsigned int valid_quality
Definition: CSCSP_MBblock.h:36
CSCSP_MBblock::tbin_
unsigned int tbin_
Definition: CSCSP_MBblock.h:35
CSCSP_MBblock::zero_4
unsigned zero_4
Definition: CSCSP_MBblock.h:21
CSCSP_MBblock::phi_
unsigned phi_
Definition: CSCSP_MBblock.h:17
CSCSP_MBblock::phi_bend_
unsigned phi_bend_
Definition: CSCSP_MBblock.h:11
CSCSP_MBblock::bxn1_
unsigned bxn1_
Definition: CSCSP_MBblock.h:18
CSCSP_MBblock::spare_1
unsigned spare_1
Definition: CSCSP_MBblock.h:24
CSCSP_MBblock::bxn0_
unsigned bxn0_
Definition: CSCSP_MBblock.h:19
CSCSP_MBblock::zero_5
unsigned zero_5
Definition: CSCSP_MBblock.h:25
CSCSP_MBblock::alignment_fifo
unsigned int alignment_fifo
Definition: CSCSP_MBblock.h:37
CSCSP_MBblock::check
bool check(void) const
Definition: CSCSP_MBblock.h:42
CSCSP_MBblock::zero_2
unsigned zero_2
Definition: CSCSP_MBblock.h:12
CSCSP_MBblock::zero_1
unsigned zero_1
Definition: CSCSP_MBblock.h:10
visDQMUpload.buf
buf
Definition: visDQMUpload.py:160
CSCSP_MBblock::zero_6
unsigned zero_6
Definition: CSCSP_MBblock.h:28
CSCSP_MBblock::quality_
unsigned quality_
Definition: CSCSP_MBblock.h:9
CSCSP_MBblock::flag_
unsigned flag_
Definition: CSCSP_MBblock.h:13
CSCSP_MBblock::id_
unsigned int id_
Definition: CSCSP_MBblock.h:39