CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes
CSCTMBHeader2006 Struct Reference

#include <CSCTMBHeader2006.h>

Inheritance diagram for CSCTMBHeader2006:
CSCVTMBHeaderFormat

Public Types

enum  { NWORDS =27 }
 

Public Member Functions

virtual void addALCT0 (const CSCALCTDigi &digi)
 
virtual void addALCT1 (const CSCALCTDigi &digi)
 
virtual void addCLCT0 (const CSCCLCTDigi &digi)
 for data packing More...
 
virtual void addCLCT1 (const CSCCLCTDigi &digi)
 
virtual void addCorrelatedLCT0 (const CSCCorrelatedLCTDigi &digi)
 
virtual void addCorrelatedLCT1 (const CSCCorrelatedLCTDigi &digi)
 
virtual uint16_t ALCTMatchTime () const
 
virtual uint16_t ALCTOnly () const
 
virtual uint16_t Bxn0Diff () const
 
virtual uint16_t Bxn1Diff () const
 
virtual uint16_t BXNCount () const
 
virtual bool check () const
 
virtual std::vector< CSCCLCTDigiCLCTDigis (uint32_t idlayer)
 returns CLCT digis More...
 
virtual uint16_t CLCTOnly () const
 
virtual std::vector
< CSCCorrelatedLCTDigi
CorrelatedLCTDigis (uint32_t idlayer) const
 returns CorrelatedLCT digis More...
 
 CSCTMBHeader2006 ()
 
 CSCTMBHeader2006 (const unsigned short *buf)
 
virtual unsigned short * data ()
 returns the first data word More...
 
virtual uint16_t firmwareRevision () const
 
virtual uint16_t L1ANumber () const
 
virtual uint16_t NCFEBs () const
 
virtual unsigned short int NHeaderFrames () const
 
virtual uint16_t NTBins () const
 
virtual void print (std::ostream &os) const
 
virtual void setEventInformation (const CSCDMBHeader &dmbHeader)
 
virtual void setNCFEBs (uint16_t ncfebs)
 
unsigned short int sizeInWords () const
 
void swapCLCTs (CSCCLCTDigi &digi1, CSCCLCTDigi &digi2)
 
virtual uint16_t TMBMatch () const
 
- Public Member Functions inherited from CSCVTMBHeaderFormat
void init ()
 
uint16_t sizeInBytes () const
 
virtual ~CSCVTMBHeaderFormat ()
 

Public Attributes

struct {
   unsigned   activeCFEBs:5
 
   unsigned   alct_delay:4
 
   unsigned   alctMatchTime:4
 
   unsigned   alctOnly:1
 
   unsigned   b0cline:16
 
   unsigned   bd_status:14
 
   unsigned   boardID:5
 
   unsigned   buffer_info_0:16
 
   unsigned   buffer_info_1:12
 
   unsigned   buffer_info_2:16
 
   unsigned   buffer_info_3:16
 
   unsigned   bxn0Diff:2
 
   unsigned   bxn1Diff:2
 
   unsigned   bxnCount:12
 
   unsigned   bxnPreTrigger:12
 
   unsigned   CFEBsInstantiated:5
 
   unsigned   clct0_bend:1
 
   unsigned   clct0_bx0_local:1
 
   unsigned   clct0_bxn:2
 
   unsigned   clct0_cfeb_high:2
 
   unsigned   clct0_cfeb_low:1
 
   unsigned   clct0_key:5
 
   unsigned   clct0_quality:3
 
   unsigned   clct0_shape:3
 
   unsigned   clct0_strip_type:1
 
   unsigned   clct0_sync_err:1
 
   unsigned   clct0_valid:1
 
   unsigned   clct1_bend:1
 
   unsigned   clct1_bx0_local:1
 
   unsigned   clct1_bxn:2
 
   unsigned   clct1_cfeb_high:2
 
   unsigned   clct1_cfeb_low:1
 
   unsigned   clct1_key:5
 
   unsigned   clct1_quality:3
 
   unsigned   clct1_shape:3
 
   unsigned   clct1_strip_type:1
 
   unsigned   clct1_sync_err:1
 
   unsigned   clct1_valid:1
 
   unsigned   clct_width:4
 
   unsigned   clctOnly:1
 
   unsigned   cscID:4
 
   unsigned   ds_thresh: 3
 
   unsigned   dumpCFEBs:7
 
   unsigned   e0bline:16
 
   unsigned   fifoMode:3
 
   unsigned   firmRevCode:14
 
   unsigned   hasBuf:1
 
   unsigned   hasPreTrig:4
 
   unsigned   hs_thresh: 3
 
   unsigned   invalidPattern:1
 
   unsigned   l1aNumber:4
 
   unsigned   l1aTxCounter:4
 
   unsigned   l1atype:2
 
   unsigned   MPC_Muon0_bc0_: 1
 
   unsigned   MPC_Muon0_bend_: 1
 
   unsigned   MPC_Muon0_bx_: 1
 
   unsigned   MPC_Muon0_clct_pattern_: 4
 
   unsigned   MPC_Muon0_cscid_bit4: 1
 
   unsigned   MPC_Muon0_cscid_low: 3
 
   unsigned   MPC_Muon0_halfstrip_clct_pattern: 8
 
   unsigned   MPC_Muon0_quality_: 4
 
   unsigned   MPC_Muon0_SyncErr_: 1
 
   unsigned   MPC_Muon0_vpf_: 1
 
   unsigned   MPC_Muon0_wire_: 7
 
   unsigned   MPC_Muon1_bc0_: 1
 
   unsigned   MPC_Muon1_bend_: 1
 
   unsigned   MPC_Muon1_bx_: 1
 
   unsigned   MPC_Muon1_clct_pattern_: 4
 
   unsigned   MPC_Muon1_cscid_bit4: 1
 
   unsigned   MPC_Muon1_cscid_low: 3
 
   unsigned   MPC_Muon1_halfstrip_clct_pattern: 8
 
   unsigned   MPC_Muon1_quality_: 4
 
   unsigned   MPC_Muon1_SyncErr_: 1
 
   unsigned   MPC_Muon1_vpf_: 1
 
   unsigned   MPC_Muon1_wire_: 7
 
   unsigned   mpc_tx_delay:4
 
   unsigned   mpcAcceptLCT0: 1
 
   unsigned   mpcAcceptLCT1: 1
 
   unsigned   nCFEBs:3
 
   unsigned   nHeaderFrames:5
 
   unsigned   nTBins:5
 
   unsigned   pop_l1a_match_win:4
 
   unsigned   preTrigTBins:5
 
   unsigned   r_buf_nbusy:4
 
   unsigned   r_nlayers_hit_vec:3
 
   unsigned   r_type:2
 
   unsigned   rd_nrpcs:2
 
   unsigned   rd_rpc_list:2
 
   unsigned   reserved_1:1
 
   unsigned   reserved_10:3
 
   unsigned   reserved_11:5
 
   unsigned   reserved_12:1
 
   unsigned   reserved_13:1
 
   unsigned   reserved_14:1
 
   unsigned   reserved_15:1
 
   unsigned   reserved_16_1: 2
 
   unsigned   reserved_16_2:2
 
   unsigned   reserved_2:1
 
   unsigned   reserved_21:4
 
   unsigned   reserved_22:2
 
   unsigned   reserved_23:2
 
   unsigned   reserved_24:2
 
   unsigned   reserved_25:2
 
   unsigned   reserved_3:2
 
   unsigned   reserved_4:2
 
   unsigned   reserved_6:2
 
   unsigned   reserved_7:3
 
   unsigned   reserved_8:1
 
   unsigned   reserved_9:1
 
   unsigned   rpc_exists:2
 
   unsigned   rpc_read_enable:1
 
   unsigned   runID:4
 
   unsigned   syncError:1
 
   unsigned   tmbMatch:1
 
   unsigned   trigSourceVect:8
 
   unsigned   uptime:14
 
bits
 

Additional Inherited Members

- Protected Member Functions inherited from CSCVTMBHeaderFormat
void swapCLCTs (CSCCLCTDigi &digi1, CSCCLCTDigi &digi2)
 

Detailed Description

Definition at line 7 of file CSCTMBHeader2006.h.

Member Enumeration Documentation

anonymous enum
Enumerator
NWORDS 

Definition at line 8 of file CSCTMBHeader2006.h.

Constructor & Destructor Documentation

CSCTMBHeader2006::CSCTMBHeader2006 ( )

Definition at line 5 of file CSCTMBHeader2006.cc.

References bits, data(), and sizeInWords().

6 {
7  bzero(data(), sizeInWords()*2);
8  bits.nHeaderFrames = 26;
9  bits.e0bline = 0x6E0B;
10  bits.b0cline = 0x6B0C;
11  bits.nTBins = 7;
12  bits.nCFEBs = 5;
13 }
virtual unsigned short * data()
returns the first data word
unsigned short int sizeInWords() const
struct CSCTMBHeader2006::@309 bits
CSCTMBHeader2006::CSCTMBHeader2006 ( const unsigned short *  buf)
explicit

Definition at line 16 of file CSCTMBHeader2006.cc.

References bits, and sizeInWords().

17 {
18  memcpy(&bits, buf, sizeInWords()*2);
19 }
unsigned short int sizeInWords() const
struct CSCTMBHeader2006::@309 bits

Member Function Documentation

void CSCTMBHeader2006::addALCT0 ( const CSCALCTDigi digi)
virtual

Implements CSCVTMBHeaderFormat.

Definition at line 100 of file CSCTMBHeader2006.cc.

References Exception.

101 {
102  throw cms::Exception("In CSC TMBHeaderFormat 2006, ALCTs belong in ALCT header");
103 }
void CSCTMBHeader2006::addALCT1 ( const CSCALCTDigi digi)
virtual

Implements CSCVTMBHeaderFormat.

Definition at line 107 of file CSCTMBHeader2006.cc.

References Exception.

108 {
109  throw cms::Exception("In CSC TMBHeaderFormat 2006, ALCTs belong in ALCT header");
110 }
void CSCTMBHeader2006::addCLCT0 ( const CSCCLCTDigi digi)
virtual

for data packing

Implements CSCVTMBHeaderFormat.

Definition at line 113 of file CSCTMBHeader2006.cc.

References bits, CSCCLCTDigi::getBend(), CSCCLCTDigi::getBX(), CSCCLCTDigi::getCFEB(), CSCCLCTDigi::getFullBX(), CSCCLCTDigi::getPattern(), CSCCLCTDigi::getQuality(), CSCCLCTDigi::getStrip(), CSCCLCTDigi::getStripType(), CSCCLCTDigi::isValid(), and listBenchmarks::pattern.

114 {
115  int strip = digi.getStrip();
116  int cfeb = digi.getCFEB();
117  int bend = digi.getBend();
118  int pattern = digi.getPattern();
119  //hardwareStripNumbering(strip, cfeb, pattern, bend);
120  bits.clct0_valid = digi.isValid();
121  bits.clct0_quality = digi.getQuality();
122  bits.clct0_shape = pattern;
123  bits.clct0_strip_type = digi.getStripType();
124  bits.clct0_bend = bend;
125  bits.clct0_key = strip;
126  bits.clct0_cfeb_low = (cfeb & 0x1);
127  bits.clct0_cfeb_high = (cfeb>>1);
128  bits.clct0_bxn = digi.getBX();
129  bits.bxnPreTrigger = digi.getFullBX();
130 }
int getQuality() const
return quality of a pattern (number of layers hit!)
Definition: CSCCLCTDigi.h:33
int getStrip() const
return halfstrip that goes from 0 to 31
Definition: CSCCLCTDigi.h:45
int getStripType() const
return striptype
Definition: CSCCLCTDigi.h:39
int getBend() const
return bend
Definition: CSCCLCTDigi.h:42
int getCFEB() const
return Key CFEB ID
Definition: CSCCLCTDigi.h:48
struct CSCTMBHeader2006::@309 bits
int getBX() const
return BX
Definition: CSCCLCTDigi.h:51
bool isValid() const
check CLCT validity (1 - valid CLCT)
Definition: CSCCLCTDigi.h:30
int getPattern() const
return pattern
Definition: CSCCLCTDigi.h:36
int getFullBX() const
return 12-bit full BX.
Definition: CSCCLCTDigi.h:74
void CSCTMBHeader2006::addCLCT1 ( const CSCCLCTDigi digi)
virtual

Implements CSCVTMBHeaderFormat.

Definition at line 133 of file CSCTMBHeader2006.cc.

References bits, CSCCLCTDigi::getBend(), CSCCLCTDigi::getBX(), CSCCLCTDigi::getCFEB(), CSCCLCTDigi::getFullBX(), CSCCLCTDigi::getPattern(), CSCCLCTDigi::getQuality(), CSCCLCTDigi::getStrip(), CSCCLCTDigi::getStripType(), CSCCLCTDigi::isValid(), and listBenchmarks::pattern.

134 {
135  int strip = digi.getStrip();
136  int cfeb = digi.getCFEB();
137  int bend = digi.getBend();
138  int pattern = digi.getPattern();
139  //hardwareStripNumbering(strip, cfeb, pattern, bend);
140  bits.clct1_valid = digi.isValid();
141  bits.clct1_quality = digi.getQuality();
142  bits.clct1_shape = pattern;
143  bits.clct1_strip_type = digi.getStripType();
144  bits.clct1_bend = bend;
145  bits.clct1_key = strip;
146  bits.clct1_cfeb_low = (cfeb & 0x1);
147  bits.clct1_cfeb_high = (cfeb>>1);
148  bits.clct1_bxn = digi.getBX();
149  bits.bxnPreTrigger = digi.getFullBX();
150 }
int getQuality() const
return quality of a pattern (number of layers hit!)
Definition: CSCCLCTDigi.h:33
int getStrip() const
return halfstrip that goes from 0 to 31
Definition: CSCCLCTDigi.h:45
int getStripType() const
return striptype
Definition: CSCCLCTDigi.h:39
int getBend() const
return bend
Definition: CSCCLCTDigi.h:42
int getCFEB() const
return Key CFEB ID
Definition: CSCCLCTDigi.h:48
struct CSCTMBHeader2006::@309 bits
int getBX() const
return BX
Definition: CSCCLCTDigi.h:51
bool isValid() const
check CLCT validity (1 - valid CLCT)
Definition: CSCCLCTDigi.h:30
int getPattern() const
return pattern
Definition: CSCCLCTDigi.h:36
int getFullBX() const
return 12-bit full BX.
Definition: CSCCLCTDigi.h:74
void CSCTMBHeader2006::addCorrelatedLCT0 ( const CSCCorrelatedLCTDigi digi)
virtual

Implements CSCVTMBHeaderFormat.

Definition at line 153 of file CSCTMBHeader2006.cc.

References bits, CSCCorrelatedLCTDigi::getBend(), CSCCorrelatedLCTDigi::getBX(), CSCCorrelatedLCTDigi::getBX0(), CSCCorrelatedLCTDigi::getCSCID(), CSCCorrelatedLCTDigi::getKeyWG(), CSCCorrelatedLCTDigi::getPattern(), CSCCorrelatedLCTDigi::getQuality(), CSCCorrelatedLCTDigi::getStrip(), CSCCorrelatedLCTDigi::getSyncErr(), and CSCCorrelatedLCTDigi::isValid().

154 {
155  int halfStrip = digi.getStrip();
156  //hardwareHalfStripNumbering(halfStrip);
157 
158  bits.MPC_Muon0_vpf_ = digi.isValid();
159  bits.MPC_Muon0_wire_ = digi.getKeyWG();
160  bits.MPC_Muon0_clct_pattern_ = digi.getPattern();
161  bits.MPC_Muon0_quality_ = digi.getQuality();
162  bits.MPC_Muon0_halfstrip_clct_pattern = halfStrip;
163  bits.MPC_Muon0_bend_ = digi.getBend();
164  bits.MPC_Muon0_SyncErr_ = digi.getSyncErr();
165  bits.MPC_Muon0_bx_ = digi.getBX();
166  bits.MPC_Muon0_bc0_ = digi.getBX0();
167  bits.MPC_Muon0_cscid_low = digi.getCSCID() & 0x7;
168  bits.MPC_Muon0_cscid_bit4 = (digi.getCSCID()>>3) & 0x1;
169 }
int getStrip() const
return the key halfstrip from 0,159
uint16_t getSyncErr() const
int getQuality() const
return the 4 bit Correlated LCT Quality
int getBend() const
return bend
struct CSCTMBHeader2006::@309 bits
uint16_t getCSCID() const
int getBX() const
return BX
uint16_t getBX0() const
bool isValid() const
return valid pattern bit
int getPattern() const
return pattern
int getKeyWG() const
return the key wire group
void CSCTMBHeader2006::addCorrelatedLCT1 ( const CSCCorrelatedLCTDigi digi)
virtual

Implements CSCVTMBHeaderFormat.

Definition at line 172 of file CSCTMBHeader2006.cc.

References bits, CSCCorrelatedLCTDigi::getBend(), CSCCorrelatedLCTDigi::getBX(), CSCCorrelatedLCTDigi::getBX0(), CSCCorrelatedLCTDigi::getCSCID(), CSCCorrelatedLCTDigi::getKeyWG(), CSCCorrelatedLCTDigi::getPattern(), CSCCorrelatedLCTDigi::getQuality(), CSCCorrelatedLCTDigi::getStrip(), CSCCorrelatedLCTDigi::getSyncErr(), and CSCCorrelatedLCTDigi::isValid().

173 {
174  int halfStrip = digi.getStrip();
175  //hardwareHalfStripNumbering(halfStrip);
176 
177  bits.MPC_Muon1_vpf_ = digi.isValid();
178  bits.MPC_Muon1_wire_ = digi.getKeyWG();
179  bits.MPC_Muon1_clct_pattern_ = digi.getPattern();
180  bits.MPC_Muon1_quality_ = digi.getQuality();
181  bits.MPC_Muon1_halfstrip_clct_pattern = halfStrip;
182  bits.MPC_Muon1_bend_ = digi.getBend();
183  bits.MPC_Muon1_SyncErr_ = digi.getSyncErr();
184  bits.MPC_Muon1_bx_ = digi.getBX();
185  bits.MPC_Muon1_bc0_ = digi.getBX0();
186  bits.MPC_Muon1_cscid_low = digi.getCSCID() & 0x7;
187  bits.MPC_Muon0_cscid_bit4 = (digi.getCSCID()>>3) & 0x1;
188 }
int getStrip() const
return the key halfstrip from 0,159
uint16_t getSyncErr() const
int getQuality() const
return the 4 bit Correlated LCT Quality
int getBend() const
return bend
struct CSCTMBHeader2006::@309 bits
uint16_t getCSCID() const
int getBX() const
return BX
uint16_t getBX0() const
bool isValid() const
return valid pattern bit
int getPattern() const
return pattern
int getKeyWG() const
return the key wire group
virtual uint16_t CSCTMBHeader2006::ALCTMatchTime ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 14 of file CSCTMBHeader2006.h.

References bits.

14 {return bits.alctMatchTime;}
struct CSCTMBHeader2006::@309 bits
virtual uint16_t CSCTMBHeader2006::ALCTOnly ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 16 of file CSCTMBHeader2006.h.

References bits.

16 {return bits.alctOnly;}
struct CSCTMBHeader2006::@309 bits
virtual uint16_t CSCTMBHeader2006::Bxn0Diff ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 18 of file CSCTMBHeader2006.h.

References bits.

18 {return bits.bxn0Diff;}
struct CSCTMBHeader2006::@309 bits
virtual uint16_t CSCTMBHeader2006::Bxn1Diff ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 19 of file CSCTMBHeader2006.h.

References bits.

19 {return bits.bxn1Diff;}
struct CSCTMBHeader2006::@309 bits
virtual uint16_t CSCTMBHeader2006::BXNCount ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 13 of file CSCTMBHeader2006.h.

References bits.

13 {return bits.bxnCount;}
struct CSCTMBHeader2006::@309 bits
virtual bool CSCTMBHeader2006::check ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 38 of file CSCTMBHeader2006.h.

References bits, NHeaderFrames(), and NWORDS.

38 {return bits.e0bline==0x6e0b && NHeaderFrames()+1 == NWORDS;}
struct CSCTMBHeader2006::@309 bits
virtual unsigned short int NHeaderFrames() const
std::vector< CSCCLCTDigi > CSCTMBHeader2006::CLCTDigis ( uint32_t  idlayer)
virtual

returns CLCT digis

fill digis here for the zeroth bits.clct:

for the first bits.clct:

Implements CSCVTMBHeaderFormat.

Definition at line 29 of file CSCTMBHeader2006.cc.

References bits, and mps_fire::result.

30 {
31  std::vector<CSCCLCTDigi> result;
34  int shape=0;
35  int type=0;
36 
37  if ( bits.firmRevCode < 3769 ) { //3769 is may 25 2007 - date of firmware with halfstrip only patterns
38  shape = bits.clct0_shape;
39  type = bits.clct0_strip_type;
40  }else {//new firmware only halfstrip pattern => stripType==1 and shape is 4 bits
41  shape = ( bits.clct0_strip_type<<3)+bits.clct0_shape;
42  type = 1;
43  }
44  int strip = bits.clct0_key;
45  int cfeb = (bits.clct0_cfeb_low)|(bits.clct0_cfeb_high<<1);
46  int bend = bits.clct0_bend;
47  //offlineStripNumbering(strip, cfeb, shape, bend);
48 
49  CSCCLCTDigi digi0(bits.clct0_valid, bits.clct0_quality, shape,
50  type, bend, strip, cfeb, bits.clct0_bxn, 1, bits.bxnPreTrigger);
51  //digi0.setFullBX(bits.bxnPreTrigger);
52  result.push_back(digi0);
53 
55  if ( bits.firmRevCode < 3769 ) {
56  shape = bits.clct1_shape;
57  type = bits.clct1_strip_type;
58  } else {
59  shape = (bits.clct1_strip_type<<3)+bits.clct1_shape;
60  type = 1;
61  }
62 
63  strip = bits.clct1_key;
64  cfeb = (bits.clct1_cfeb_low)|(bits.clct1_cfeb_high<<1);
65  bend = bits.clct1_bend;
66  //offlineStripNumbering(strip, cfeb, shape, bend);
67  CSCCLCTDigi digi1(bits.clct1_valid, bits.clct1_quality, shape,
68  type, bend, strip, cfeb, bits.clct1_bxn, 2, bits.bxnPreTrigger);
69  //digi1.setFullBX(bits.bxnPreTrigger);
70  result.push_back(digi1);
71  return result;
72 }
type
Definition: HCALResponse.h:21
tuple result
Definition: mps_fire.py:95
struct CSCTMBHeader2006::@309 bits
virtual uint16_t CSCTMBHeader2006::CLCTOnly ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 15 of file CSCTMBHeader2006.h.

References bits.

15 {return bits.clctOnly;}
struct CSCTMBHeader2006::@309 bits
std::vector< CSCCorrelatedLCTDigi > CSCTMBHeader2006::CorrelatedLCTDigis ( uint32_t  idlayer) const
virtual

returns CorrelatedLCT digis

for the zeroth MPC word:

for the first MPC word:

Implements CSCVTMBHeaderFormat.

Definition at line 75 of file CSCTMBHeader2006.cc.

References bits, and mps_fire::result.

76 {
77  std::vector<CSCCorrelatedLCTDigi> result;
79  int strip = bits.MPC_Muon0_halfstrip_clct_pattern;//this goes from 0-159
80  //offlineHalfStripNumbering(strip);
81  CSCCorrelatedLCTDigi digi(1, bits.MPC_Muon0_vpf_, bits.MPC_Muon0_quality_,
82  bits.MPC_Muon0_wire_, strip, bits.MPC_Muon0_clct_pattern_,
83  bits.MPC_Muon0_bend_, bits.MPC_Muon0_bx_, 0,
84  bits.MPC_Muon0_bc0_, bits.MPC_Muon0_SyncErr_,
85  bits.MPC_Muon0_cscid_low | (bits.MPC_Muon0_cscid_bit4<<3) );
86  result.push_back(digi);
88  strip = bits.MPC_Muon1_halfstrip_clct_pattern;//this goes from 0-159
89  //offlineHalfStripNumbering(strip);
90  digi = CSCCorrelatedLCTDigi(2, bits.MPC_Muon1_vpf_, bits.MPC_Muon1_quality_,
91  bits.MPC_Muon1_wire_, strip, bits.MPC_Muon1_clct_pattern_,
92  bits.MPC_Muon1_bend_, bits.MPC_Muon1_bx_, 0,
93  bits.MPC_Muon1_bc0_, bits.MPC_Muon1_SyncErr_,
94  bits.MPC_Muon1_cscid_low | (bits.MPC_Muon1_cscid_bit4<<3) );
95  result.push_back(digi);
96  return result;
97 }
tuple result
Definition: mps_fire.py:95
struct CSCTMBHeader2006::@309 bits
virtual unsigned short* CSCTMBHeader2006::data ( )
inlinevirtual

returns the first data word

Implements CSCVTMBHeaderFormat.

Definition at line 37 of file CSCTMBHeader2006.h.

References bits.

Referenced by cuy.FindIssue::__init__(), and CSCTMBHeader2006().

37 {return (unsigned short *)(&bits);}
struct CSCTMBHeader2006::@309 bits
virtual uint16_t CSCTMBHeader2006::firmwareRevision ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 24 of file CSCTMBHeader2006.h.

References bits.

24 {return bits.firmRevCode;}
struct CSCTMBHeader2006::@309 bits
virtual uint16_t CSCTMBHeader2006::L1ANumber ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 20 of file CSCTMBHeader2006.h.

References bits.

20 {return bits.l1aNumber;}
struct CSCTMBHeader2006::@309 bits
virtual uint16_t CSCTMBHeader2006::NCFEBs ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 22 of file CSCTMBHeader2006.h.

References bits.

22 {return bits.nCFEBs;}
struct CSCTMBHeader2006::@309 bits
virtual unsigned short int CSCTMBHeader2006::NHeaderFrames ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 35 of file CSCTMBHeader2006.h.

References bits.

Referenced by check().

35 {return bits.nHeaderFrames;}
struct CSCTMBHeader2006::@309 bits
virtual uint16_t CSCTMBHeader2006::NTBins ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 21 of file CSCTMBHeader2006.h.

References bits.

21 {return bits.nTBins;}
struct CSCTMBHeader2006::@309 bits
void CSCTMBHeader2006::print ( std::ostream &  os) const
virtual

Implements CSCVTMBHeaderFormat.

Definition at line 191 of file CSCTMBHeader2006.cc.

References bits, and TauDecayModes::dec.

192 {
193  os << "...............TMB Header.................." << "\n";
194  os << std::hex << "BOC LINE " << bits.b0cline << " EOB " << bits.e0bline << "\n";
195  os << std::dec << "fifoMode = " << bits.fifoMode
196  << ", nTBins = " << bits.nTBins << "\n";
197  os << "dumpCFEBs = " << bits.dumpCFEBs << ", nHeaderFrames = "
198  << bits.nHeaderFrames << "\n";
199  os << "boardID = " << bits.boardID << ", cscID = " << bits.cscID << "\n";
200  os << "l1aNumber = " << bits.l1aNumber << ", bxnCount = " << bits.bxnCount << "\n";
201  os << "preTrigTBins = " << bits.preTrigTBins << ", nCFEBs = "<< bits.nCFEBs<< "\n";
202  os << "trigSourceVect = " << bits.trigSourceVect
203  << ", activeCFEBs = " << bits.activeCFEBs << "\n";
204  os << "bxnPreTrigger = " << bits.bxnPreTrigger << "\n";
205  os << "tmbMatch = " << bits.tmbMatch << " alctOnly = " << bits.alctOnly
206  << " clctOnly = " << bits.clctOnly
207  << " alctMatchTime = " << bits.alctMatchTime << "\n";
208  os << "hs_thresh = " << bits.hs_thresh << ", ds_thresh = " << bits.ds_thresh
209  << "\n";
210  os << ".clct0_key = " << bits.clct0_key << " clct0_shape = " << bits.clct0_shape
211  << " clct0_quality = " << bits.clct0_quality << "\n";
212  os << "r_buf_nbusy = " << bits.r_buf_nbusy << "\n";
213  os << "Firmware Rev code " << bits.firmRevCode << "\n";
214  os << "..................CLCT....................." << std::endl;
215 }
struct CSCTMBHeader2006::@309 bits
void CSCTMBHeader2006::setEventInformation ( const CSCDMBHeader dmbHeader)
virtual

Implements CSCVTMBHeaderFormat.

Definition at line 21 of file CSCTMBHeader2006.cc.

References bits, CSCDMBHeader::dmbID(), and CSCDMBHeader::l1a().

22 {
23  bits.cscID = dmbHeader.dmbID();
24  bits.l1aNumber = dmbHeader.l1a();
25  // bits.bxnCount = dmbHeader.bxn();
26 }
unsigned l1a() const
Definition: CSCDMBHeader.h:50
struct CSCTMBHeader2006::@309 bits
unsigned dmbID() const
Definition: CSCDMBHeader.h:47
virtual void CSCTMBHeader2006::setNCFEBs ( uint16_t  ncfebs)
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 23 of file CSCTMBHeader2006.h.

References bits.

23 {bits.nCFEBs = ncfebs & 0x1F;}
struct CSCTMBHeader2006::@309 bits
unsigned short int CSCTMBHeader2006::sizeInWords ( ) const
inlinevirtual

in 16-bit words. Add olne because we include beginning(b0c) and end (e0c) flags

Implements CSCVTMBHeaderFormat.

Definition at line 33 of file CSCTMBHeader2006.h.

References NWORDS.

Referenced by CSCTMBHeader2006().

void CSCTMBHeader2006::swapCLCTs ( CSCCLCTDigi digi1,
CSCCLCTDigi digi2 
)
virtual uint16_t CSCTMBHeader2006::TMBMatch ( ) const
inlinevirtual

Implements CSCVTMBHeaderFormat.

Definition at line 17 of file CSCTMBHeader2006.h.

References bits.

17 {return bits.tmbMatch;}
struct CSCTMBHeader2006::@309 bits

Member Data Documentation

unsigned CSCTMBHeader2006::activeCFEBs

Definition at line 58 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::alct_delay

Definition at line 134 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::alctMatchTime

Definition at line 90 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::alctOnly

Definition at line 90 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::b0cline

Definition at line 52 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::bd_status

Definition at line 144 of file CSCTMBHeader2006.h.

struct { ... } CSCTMBHeader2006::bits
unsigned CSCTMBHeader2006::boardID

Definition at line 54 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::buffer_info_0

Definition at line 130 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::buffer_info_1

Definition at line 131 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::buffer_info_2

Definition at line 132 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::buffer_info_3

Definition at line 133 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::bxn0Diff

Definition at line 90 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::bxn1Diff

Definition at line 90 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::bxnCount

Definition at line 55 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::bxnPreTrigger

Definition at line 59 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::CFEBsInstantiated

Definition at line 58 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_bend

Definition at line 65 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_bx0_local

Definition at line 82 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_bxn

Definition at line 80 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_cfeb_high

Definition at line 79 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_cfeb_low

Definition at line 67 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_key

Definition at line 66 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_quality

Definition at line 62 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_shape

Definition at line 63 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_strip_type

Definition at line 64 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_sync_err

Definition at line 81 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct0_valid

Definition at line 61 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_bend

Definition at line 74 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_bx0_local

Definition at line 86 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_bxn

Definition at line 84 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_cfeb_high

Definition at line 83 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_cfeb_low

Definition at line 76 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_key

Definition at line 75 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_quality

Definition at line 71 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_shape

Definition at line 72 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_strip_type

Definition at line 73 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_sync_err

Definition at line 85 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct1_valid

Definition at line 70 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clct_width

Definition at line 134 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::clctOnly

Definition at line 90 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::cscID

Definition at line 54 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::ds_thresh

Definition at line 127 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::dumpCFEBs

Definition at line 53 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::e0bline

Definition at line 147 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::fifoMode

Definition at line 53 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::firmRevCode

Definition at line 146 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::hasBuf

Definition at line 56 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::hasPreTrig

Definition at line 57 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::hs_thresh

Definition at line 126 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::invalidPattern

Definition at line 87 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::l1aNumber

Definition at line 54 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::l1aTxCounter

Definition at line 57 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::l1atype

Definition at line 54 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_bc0_

Definition at line 102 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_bend_

Definition at line 99 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_bx_

Definition at line 101 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_clct_pattern_

Definition at line 94 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_cscid_bit4

Definition at line 120 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_cscid_low

Definition at line 103 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_halfstrip_clct_pattern

Definition at line 98 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_quality_

Definition at line 95 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_SyncErr_

Definition at line 100 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_vpf_

Definition at line 119 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon0_wire_

Definition at line 93 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_bc0_

Definition at line 115 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_bend_

Definition at line 112 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_bx_

Definition at line 114 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_clct_pattern_

Definition at line 107 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_cscid_bit4

Definition at line 122 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_cscid_low

Definition at line 116 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_halfstrip_clct_pattern

Definition at line 111 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_quality_

Definition at line 108 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_SyncErr_

Definition at line 113 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_vpf_

Definition at line 121 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::MPC_Muon1_wire_

Definition at line 106 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::mpc_tx_delay

Definition at line 134 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::mpcAcceptLCT0

Definition at line 123 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::mpcAcceptLCT1

Definition at line 124 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::nCFEBs

Definition at line 56 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::nHeaderFrames

Definition at line 56 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::nTBins

Definition at line 53 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::pop_l1a_match_win

Definition at line 141 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::preTrigTBins

Definition at line 56 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::r_buf_nbusy

Definition at line 131 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::r_nlayers_hit_vec

Definition at line 140 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::r_type

Definition at line 55 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::rd_nrpcs

Definition at line 138 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::rd_rpc_list

Definition at line 137 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_1

Definition at line 53 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_10

Definition at line 88 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_11

Definition at line 90 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_12

Definition at line 96 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_13

Definition at line 104 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_14

Definition at line 109 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_15

Definition at line 117 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_16_1

Definition at line 125 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_16_2

Definition at line 128 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_2

Definition at line 54 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_21

Definition at line 134 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_22

Definition at line 142 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_23

Definition at line 144 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_24

Definition at line 145 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_25

Definition at line 146 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_3

Definition at line 55 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_4

Definition at line 56 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_6

Definition at line 58 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_7

Definition at line 59 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_8

Definition at line 68 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::reserved_9

Definition at line 77 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::rpc_exists

Definition at line 136 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::rpc_read_enable

Definition at line 139 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::runID

Definition at line 58 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::syncError

Definition at line 59 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::tmbMatch

Definition at line 90 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::trigSourceVect

Definition at line 57 of file CSCTMBHeader2006.h.

unsigned CSCTMBHeader2006::uptime

Definition at line 145 of file CSCTMBHeader2006.h.