CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Protected Attributes | Private Attributes
ESDataFormatterV4 Class Reference

#include <ESDataFormatterV4.h>

Inheritance diagram for ESDataFormatterV4:
ESDataFormatter

Public Types

typedef ESDataFormatter::DetDigis DetDigis
 
typedef ESDataFormatter::Digis Digis
 
typedef ESDataFormatter::Word16 Word16
 
typedef ESDataFormatter::Word32 Word32
 
typedef ESDataFormatter::Word64 Word64
 
typedef ESDataFormatter::Word8 Word8
 
- Public Types inherited from ESDataFormatter
typedef std::vector< ESDataFrameDetDigis
 
typedef std::map< int, DetDigisDigis
 
typedef uint16_t Word16
 
typedef uint32_t Word32
 
typedef uint64_t Word64
 
typedef uint8_t Word8
 

Public Member Functions

void DigiToRaw (int fedId, Digis &digis, FEDRawData &fedRawData, Meta_Data const &meta_data) const override
 
 ESDataFormatterV4 (const edm::ParameterSet &ps)
 
 ~ESDataFormatterV4 () override
 
- Public Member Functions inherited from ESDataFormatter
 ESDataFormatter (const edm::ParameterSet &ps)
 
virtual ~ESDataFormatter ()
 

Static Protected Attributes

static const int bADC0 = 16
 
static const int bADC1 = 16
 
static const int bADC2 = 16
 
static const int bDCH = 4
 
static const int bDCOMFLAG = 8
 
static const int bDEL = 24
 
static const int bDERR = 8
 
static const int bDH = 6
 
static const int bDHEAD = 2
 
static const int bDOPTO = 8
 
static const int bDORBIT = 32
 
static const int bDRUN = 24
 
static const int bDRUNTYPE = 32
 
static const int bDTRGTYPE = 16
 
static const int bDVMAJOR = 8
 
static const int bDVMINOR = 8
 
static const int bE0 = 1
 
static const int bE1 = 1
 
static const int bFIBER = 6
 
static const int bHEAD = 4
 
static const int bKBC = 12
 
static const int bKCE = 1
 
static const int bKCRC = 1
 
static const int bKEC = 8
 
static const int bKET = 1
 
static const int bKFLAG1 = 4
 
static const int bKFLAG2 = 8
 
static const int bKHEAD = 4
 
static const int bKHEAD1 = 2
 
static const int bKHEAD2 = 2
 
static const int bKID = 16
 
static const int bOEMUKEC = 8
 
static const int bOEMUTTCBC = 16
 
static const int bOEMUTTCEC = 32
 
static const int bOHEAD = 4
 
static const int bPACE = 2
 
static const int bSTRIP = 5
 
static const int sADC0 = 0
 
static const int sADC1 = bADC0 + sADC0
 
static const int sADC2 = 0
 
static const int sDCH = 0
 
static const int sDCOMFLAG = bDTRGTYPE + sDTRGTYPE
 
static const int sDEL = 0
 
static const int sDERR = bDEL + sDEL
 
static const int sDH = 24
 
static const int sDHEAD = 28
 
static const int sDOPTO = 16
 
static const int sDORBIT = 0
 
static const int sDRUN = 0
 
static const int sDRUNTYPE = 0
 
static const int sDTRGTYPE = 0
 
static const int sDVMAJOR = bDVMINOR + sDVMINOR
 
static const int sDVMINOR = 8
 
static const int sE0 = bSTRIP + sSTRIP + 1
 
static const int sE1 = bE0 + sE0
 
static const int sFIBER = bKID + sKID + 1
 
static const int sHEAD = 28
 
static const int sKBC = 0
 
static const int sKCE = bKCRC + sKCRC
 
static const int sKCRC = bKET + sKET
 
static const int sKEC = 16
 
static const int sKET = 0
 
static const int sKFLAG1 = 24
 
static const int sKFLAG2 = 16
 
static const int sKHEAD = 28
 
static const int sKHEAD1 = bFIBER + sFIBER + 2
 
static const int sKHEAD2 = bKHEAD1 + sKHEAD1
 
static const int sKID = 0
 
static const int sOEMUKEC = 16
 
static const int sOEMUTTCBC = 0
 
static const int sOEMUTTCEC = 0
 
static const int sOHEAD = 28
 
static const int sPACE = bSTRIP + sSTRIP
 
static const int sSTRIP = bADC2 + sADC2
 

Private Attributes

int bundleId_ [2][2][40][40]
 
int fedId_ [2][2][40][40]
 
bool fedIdOptoRx_ [56][3]
 
bool fedIdOptoRxFiber_ [56][3][12]
 
int fiberId_ [2][2][40][40]
 
int kchipId_ [2][2][40][40]
 
edm::FileInPath lookup_
 
int optoId_ [2][2][40][40]
 
int paceId_ [2][2][40][40]
 

Additional Inherited Members

- Protected Member Functions inherited from ESDataFormatter
std::string print (const Word16 &word) const
 
std::string print (const Word64 &word) const
 
- Protected Attributes inherited from ESDataFormatter
const bool debug_
 
int formatMajor_
 
int formatMinor_
 
const bool printInHex_
 
const edm::ParameterSet pset_
 
const int trgtype_
 

Detailed Description

Definition at line 21 of file ESDataFormatterV4.h.

Member Typedef Documentation

◆ DetDigis

Definition at line 23 of file ESDataFormatterV4.h.

◆ Digis

Definition at line 24 of file ESDataFormatterV4.h.

◆ Word16

Definition at line 27 of file ESDataFormatterV4.h.

◆ Word32

Definition at line 28 of file ESDataFormatterV4.h.

◆ Word64

Definition at line 29 of file ESDataFormatterV4.h.

◆ Word8

Definition at line 26 of file ESDataFormatterV4.h.

Constructor & Destructor Documentation

◆ ESDataFormatterV4()

ESDataFormatterV4::ESDataFormatterV4 ( const edm::ParameterSet ps)

Definition at line 100 of file ESDataFormatterV4.cc.

100  : ESDataFormatter(ps) {
101  lookup_ = ps.getUntrackedParameter<FileInPath>("LookupTable");
102 
103  // initialize look-up table
104  for (int i = 0; i < 2; ++i)
105  for (int j = 0; j < 2; ++j)
106  for (int k = 0; k < 40; ++k)
107  for (int m = 0; m < 40; m++) {
108  fedId_[i][j][k][m] = -1;
109  kchipId_[i][j][k][m] = -1;
110  paceId_[i][j][k][m] = -1;
111  bundleId_[i][j][k][m] = -1;
112  fiberId_[i][j][k][m] = -1;
113  optoId_[i][j][k][m] = -1;
114  }
115 
116  for (int i = 0; i < 56; ++i) {
117  for (int j = 0; j < 3; ++j)
118  fedIdOptoRx_[i][j] = false;
119  }
120 
121  for (int i = 0; i < 56; ++i) {
122  for (int j = 0; j < 3; ++j)
123  for (int k = 0; k < 12; k++)
124  fedIdOptoRxFiber_[i][j][k] = false;
125  }
126 
127  // read in look-up table
128  int nLines, iz, ip, ix, iy, fed, kchip, pace, bundle, fiber, optorx;
129  ifstream file;
130  file.open(lookup_.fullPath().c_str());
131  if (file.is_open()) {
132  file >> nLines;
133 
134  for (int i = 0; i < nLines; ++i) {
135  int fedId = -1;
136  file >> iz >> ip >> ix >> iy >> fed >> kchip >> pace >> bundle >> fiber >> optorx;
137 
138  fedId = fedId_[(3 - iz) / 2 - 1][ip - 1][ix - 1][iy - 1] = fed;
139  kchipId_[(3 - iz) / 2 - 1][ip - 1][ix - 1][iy - 1] = kchip;
140  paceId_[(3 - iz) / 2 - 1][ip - 1][ix - 1][iy - 1] = pace - 1;
141  bundleId_[(3 - iz) / 2 - 1][ip - 1][ix - 1][iy - 1] = bundle;
142  fiberId_[(3 - iz) / 2 - 1][ip - 1][ix - 1][iy - 1] = fiber;
143  optoId_[(3 - iz) / 2 - 1][ip - 1][ix - 1][iy - 1] = optorx;
144 
145  if (fedId < FEDNumbering::MINPreShowerFEDID || fedId > FEDNumbering::MAXPreShowerFEDID) {
146  if (debug_)
147  cout << "ESDataFormatterV4::ESDataFormatterV4 : fedId value : " << fedId
148  << " out of ES range, at lookup table line : " << i << endl;
149  } else if (optorx < 1 || optorx > 3) {
150  if (debug_)
151  cout << "ESDataFormatterV4::ESDataFormatterV4 : optorx value : " << optorx
152  << " out of ES range, at lookup table line : " << i << endl;
153  } else { // all good ..
154  int fedidx = fed - FEDNumbering::MINPreShowerFEDID;
155  fedIdOptoRx_[fedidx][optorx - 1] = true;
156  if (fiber > 0 && fiber < 13) {
157  fedIdOptoRxFiber_[fedidx][optorx - 1][fiber - 1] = true;
158  } else {
159  if (debug_)
160  cout << "ESDataFormatterV4::ESDataFormatterV4 : fiber value : " << fiber
161  << " out of ES range, at lookup table line : " << i << endl;
162  }
163  }
164  }
165 
166  } else {
167  if (debug_)
168  cout << "ESDataFormatterV4::ESDataFormatterV4 : Look up table file can not be found in "
169  << lookup_.fullPath().c_str() << endl;
170  }
171 
172  file.close();
173 }

References bundleId_, gather_cfg::cout, ESDataFormatter::debug_, l1tstage2_dqm_sourceclient-live_cfg::fedId, fedId_, fedIdOptoRx_, fedIdOptoRxFiber_, fiberId_, geometryDiff::file, edm::FileInPath::fullPath(), edm::ParameterSet::getUntrackedParameter(), mps_fire::i, dqmiolumiharvest::j, dqmdumpme::k, kchipId_, lookup_, visualization-live-secondInstance_cfg::m, FEDNumbering::MAXPreShowerFEDID, FEDNumbering::MINPreShowerFEDID, submitDQMOfflineCAF::nLines, optoId_, and paceId_.

◆ ~ESDataFormatterV4()

ESDataFormatterV4::~ESDataFormatterV4 ( )
override

Definition at line 175 of file ESDataFormatterV4.cc.

175 {}

Member Function Documentation

◆ DigiToRaw()

void ESDataFormatterV4::DigiToRaw ( int  fedId,
Digis digis,
FEDRawData fedRawData,
Meta_Data const &  meta_data 
) const
overridevirtual

Implements ESDataFormatter.

Definition at line 191 of file ESDataFormatterV4.cc.

191  {
192  int ts[3] = {0, 0, 0};
193  Word32 word1, word2;
194  Word64 word;
195  int numberOfStrips = 0;
196 
197  int optorx_ch_counts[3][12];
198 
199  int kchip, pace, optorx, fiber;
200  map<int, vector<Word64> > map_data;
201  vector<Word64> words;
202 
203  vector<Word32> testVector;
204 
205  set<pair<int, int>, ltfiber> set_of_kchip_fiber_in_optorx[3];
206 
207  map_data.clear();
208 
209  // clean optorx channel status fields:
210  for (int i = 0; i < 3; ++i)
211  for (int j = 0; j < 12; ++j)
212  optorx_ch_counts[i][j] = 0;
213 
214  const DetDigis& detDigis = digis[fedId];
215 
216  if (debug_) {
217  cout << "ESDataFormatterV4::DigiToRaw : FEDID : " << fedId << " size of detDigis : " << detDigis.size() << endl;
218  }
219 
220  for (DetDigis::const_iterator it = detDigis.begin(); it != detDigis.end(); ++it) {
221  const ESDataFrame& dataframe = (*it);
222  const ESDetId& detId = dataframe.id();
223 
224  for (int is = 0; is < dataframe.size(); ++is)
225  ts[is] = dataframe.sample(is).adc();
226 
227  kchip = kchipId_[(3 - detId.zside()) / 2 - 1][detId.plane() - 1][detId.six() - 1][detId.siy() - 1];
228  pace = paceId_[(3 - detId.zside()) / 2 - 1][detId.plane() - 1][detId.six() - 1][detId.siy() - 1];
229 
230  if (debug_)
231  cout << "Si : " << detId.zside() << " " << detId.plane() << " " << detId.six() << " " << detId.siy() << " "
232  << detId.strip() << " (" << kchip << "," << pace << ") " << ts[0] << " " << ts[1] << " " << ts[2] << endl;
233 
234  // convert strip number from detector id to electronics id
235  int siz = detId.zside();
236  int sip = detId.plane();
237  int six = detId.six();
238  int siy = detId.siy();
239  int sistrip = detId.strip();
240  if (siz == 1 && sip == 1 && siy <= 20)
241  sistrip = 33 - sistrip;
242  if (siz == 1 && sip == 2 && six > 20)
243  sistrip = 33 - sistrip;
244  if (siz == -1 && sip == 1 && siy > 20)
245  sistrip = 33 - sistrip;
246  if (siz == -1 && sip == 2 && six <= 20)
247  sistrip = 33 - sistrip;
248 
249  word1 = (ts[1] << sADC1) | (ts[0] << sADC0);
250  word2 = (0xc << sHEAD) | (pace << sPACE) | ((sistrip - 1) << sSTRIP) | (ts[2] << sADC2);
251  word = (Word64(word2) << 32) | Word64(word1);
252 
253  map_data[kchip].push_back(word);
254 
255  optorx = optoId_[(3 - detId.zside()) / 2 - 1][detId.plane() - 1][detId.six() - 1][detId.siy() - 1];
256  fiber = fiberId_[(3 - detId.zside()) / 2 - 1][detId.plane() - 1][detId.six() - 1][detId.siy() - 1];
257 
258  optorx_ch_counts[optorx - 1][fiber - 1]++; // increment number of strip hits on fiber status field ;
259 
260  set<pair<int, int>, ltfiber>& theSet = set_of_kchip_fiber_in_optorx[optorx - 1];
261  theSet.insert(pair<int, int>(kchip, fiber));
262 
263  // mark global strip number in this FED
264  ++numberOfStrips;
265  }
266 
267  for (int iopto = 0; iopto < 3; ++iopto) {
269  word2 = (0x6 << sOHEAD) | (meta_data.kchip_ec << sOEMUKEC) | (meta_data.kchip_bc << sOEMUTTCBC);
270  word1 = (meta_data.kchip_ec << sOEMUTTCEC);
271  word = (Word64(word2) << 32) | Word64(word1);
272  if (debug_)
273  cout << "OPTORX: " << print(word) << endl;
274  words.push_back(word);
275 
276  set<pair<int, int>, ltfiber>& theSet = set_of_kchip_fiber_in_optorx[iopto];
277 
278  if (debug_) {
279  cout << "ESDataFormatterV4::DigiToRaw : FEDID : " << fedId << " size of set_of_kchip_fiber_in_optorx[" << iopto
280  << "] : " << theSet.size() << endl;
281  }
282 
283  set<pair<int, int>, ltfiber>::const_iterator kit = theSet.begin();
284 
285  int ikchip = 0;
286 
287  while (kit != theSet.end()) {
288  const pair<int, int>& kchip_fiber = (*kit);
289 
290  if (debug_)
291  cout << "KCHIP : " << kchip_fiber.first << " FIBER: " << kchip_fiber.second << endl;
292 
293  if (fedIdOptoRxFiber_[fedId - FEDNumbering::MINPreShowerFEDID][iopto][kchip_fiber.second - 1]) {
294  // Set all PACEs enabled for MC
295  word1 = (0 << sKFLAG1) | (0xf << sKFLAG2) | (((kchip_fiber.first << 2) | 0x02) << sKID);
296  word2 = (0x9 << sKHEAD) | (meta_data.kchip_ec << sKEC) | (meta_data.kchip_bc << sKBC);
297 
298  word = (Word64(word2) << 32) | Word64(word1);
299  if (debug_)
300  cout << "KCHIP : " << print(word) << endl;
301 
302  words.push_back(word);
303 
304  vector<Word64>& data = map_data[kchip_fiber.first];
305 
306  // sort against stripid field, as hardware gives this order to strip data :
307  sort(data.begin(), data.end(), ltstrip);
308 
309  for (unsigned int id = 0; id < data.size(); ++id) {
310  if (debug_)
311  cout << "Data : " << print(data[id]) << endl;
312  words.push_back(data[id]);
313  }
314  }
315  ++kit;
316  ++ikchip;
317  }
318  }
319  }
320 
321  int dataSize = (words.size() + 8) * sizeof(Word64);
322 
323  vector<Word64> DCCwords;
324 
325  word2 = (3 << sDHEAD) | (1 << sDH) | (meta_data.run_number << sDRUN);
326  word1 = (numberOfStrips << sDEL) | (0xff << sDERR);
327  word = (Word64(word2) << 32) | Word64(word1);
328  DCCwords.push_back(word);
329 
330  word2 = (3 << sDHEAD) | (2 << sDH);
331  word1 = 0;
332  word = (Word64(word2) << 32) | Word64(word1);
333  DCCwords.push_back(word);
334 
335  word2 = (3 << sDHEAD) | (3 << sDH) | (4 << sDVMAJOR) | (3 << sDVMINOR);
336  word1 = (meta_data.orbit_number << sDORBIT);
337  word = (Word64(word2) << 32) | Word64(word1);
338  DCCwords.push_back(word);
339 
340  for (int iopto = 0; iopto < 3; ++iopto) {
341  // N optorx module header word:
342  word1 = 0;
344  word2 = (3 << sDHEAD) | ((iopto + 4) << sDH) | (0x80 << sDOPTO);
345  int ich = 0;
346  for (ich = 0; ich < 4; ++ich) {
347  int chStatus = (optorx_ch_counts[iopto][ich + 8] > 0) ? 0xe : 0xd;
348  chStatus = (fedIdOptoRxFiber_[fedId - FEDNumbering::MINPreShowerFEDID][iopto][ich + 8]) ? chStatus : 0x00;
349  word2 |= (chStatus << (ich * 4)); //
350  }
351 
352  for (ich = 0; ich < 8; ++ich) {
353  int chStatus = (optorx_ch_counts[iopto][ich] > 0) ? 0xe : 0xd;
354  chStatus = (fedIdOptoRxFiber_[fedId - FEDNumbering::MINPreShowerFEDID][iopto][ich]) ? chStatus : 0x00;
355  word1 |= (chStatus << (ich * 4));
356  }
357  } else
358  word2 = (3 << sDHEAD) | ((iopto + 4) << sDH) | (0x00 << sDOPTO);
359 
360  word = (Word64(word2) << 32) | Word64(word1);
361  DCCwords.push_back(word);
362  }
363 
364  // Output (data size in Bytes)
365  // FEDRawData * rawData = new FEDRawData(dataSize);
366  fedRawData.resize(dataSize);
367 
368  Word64* w = reinterpret_cast<Word64*>(fedRawData.data());
369 
370  // header
371  FEDHeader::set(reinterpret_cast<unsigned char*>(w), trgtype_, meta_data.lv1, meta_data.bx, fedId);
372  w++;
373 
374  // ES-DCC
375  for (unsigned int i = 0; i < DCCwords.size(); ++i) {
376  if (debug_)
377  cout << "DCC : " << print(DCCwords[i]) << endl;
378  *w = DCCwords[i];
379  w++;
380  }
381 
382  // event data
383  for (unsigned int i = 0; i < words.size(); ++i) {
384  *w = words[i];
385  w++;
386  }
387 
388  // trailer
389  FEDTrailer::set(reinterpret_cast<unsigned char*>(w),
390  dataSize / sizeof(Word64),
391  evf::compute_crc(fedRawData.data(), dataSize),
392  0,
393  0);
394 }

References ESSample::adc(), ESDataFormatter::Meta_Data::bx, evf::compute_crc(), gather_cfg::cout, data, ESDataFormatter::debug_, l1tstage2_dqm_sourceclient-live_cfg::fedId, fedIdOptoRx_, fedIdOptoRxFiber_, l1t_dqm_sourceclient-live_cfg::fedRawData, fiberId_, mps_fire::i, ESDataFrame::id(), triggerObjects_cff::id, dqmiolumiharvest::j, ESDataFormatter::Meta_Data::kchip_bc, ESDataFormatter::Meta_Data::kchip_ec, kchipId_, ltstrip(), ESDataFormatter::Meta_Data::lv1, FEDNumbering::MINPreShowerFEDID, muonME0PseudoReDigis_cfi::numberOfStrips, optoId_, ESDataFormatter::Meta_Data::orbit_number, paceId_, ESDetId::plane(), ESDataFormatter::print(), ESDataFormatter::Meta_Data::run_number, sADC0, sADC1, sADC2, ESDataFrame::sample(), sDEL, sDERR, sDH, sDHEAD, sDOPTO, sDORBIT, sDRUN, sDVMAJOR, sDVMINOR, FEDHeader::set(), FEDTrailer::set(), sHEAD, ESDetId::six(), ESDetId::siy(), ESDataFrame::size(), sKBC, sKEC, sKFLAG1, sKFLAG2, sKHEAD, sKID, sOEMUKEC, sOEMUTTCBC, sOEMUTTCEC, sOHEAD, jetUpdater_cfi::sort, sPACE, sSTRIP, ESDetId::strip(), ESDataFormatter::trgtype_, w, and ESDetId::zside().

Member Data Documentation

◆ bADC0

const int ESDataFormatterV4::bADC0 = 16
staticprotected

Definition at line 58 of file ESDataFormatterV4.h.

◆ bADC1

const int ESDataFormatterV4::bADC1 = 16
staticprotected

Definition at line 58 of file ESDataFormatterV4.h.

◆ bADC2

const int ESDataFormatterV4::bADC2 = 16
staticprotected

Definition at line 58 of file ESDataFormatterV4.h.

◆ bDCH

const int ESDataFormatterV4::bDCH = 4
staticprotected

Definition at line 50 of file ESDataFormatterV4.h.

◆ bDCOMFLAG

const int ESDataFormatterV4::bDCOMFLAG = 8
staticprotected

Definition at line 49 of file ESDataFormatterV4.h.

◆ bDEL

const int ESDataFormatterV4::bDEL = 24
staticprotected

Definition at line 49 of file ESDataFormatterV4.h.

◆ bDERR

const int ESDataFormatterV4::bDERR = 8
staticprotected

Definition at line 49 of file ESDataFormatterV4.h.

◆ bDH

const int ESDataFormatterV4::bDH = 6
staticprotected

Definition at line 49 of file ESDataFormatterV4.h.

◆ bDHEAD

const int ESDataFormatterV4::bDHEAD = 2
staticprotected

Definition at line 49 of file ESDataFormatterV4.h.

◆ bDOPTO

const int ESDataFormatterV4::bDOPTO = 8
staticprotected

Definition at line 50 of file ESDataFormatterV4.h.

◆ bDORBIT

const int ESDataFormatterV4::bDORBIT = 32
staticprotected

Definition at line 49 of file ESDataFormatterV4.h.

◆ bDRUN

const int ESDataFormatterV4::bDRUN = 24
staticprotected

Definition at line 49 of file ESDataFormatterV4.h.

◆ bDRUNTYPE

const int ESDataFormatterV4::bDRUNTYPE = 32
staticprotected

Definition at line 49 of file ESDataFormatterV4.h.

◆ bDTRGTYPE

const int ESDataFormatterV4::bDTRGTYPE = 16
staticprotected

Definition at line 49 of file ESDataFormatterV4.h.

◆ bDVMAJOR

const int ESDataFormatterV4::bDVMAJOR = 8
staticprotected

Definition at line 50 of file ESDataFormatterV4.h.

◆ bDVMINOR

const int ESDataFormatterV4::bDVMINOR = 8
staticprotected

Definition at line 50 of file ESDataFormatterV4.h.

◆ bE0

const int ESDataFormatterV4::bE0 = 1
staticprotected

Definition at line 58 of file ESDataFormatterV4.h.

◆ bE1

const int ESDataFormatterV4::bE1 = 1
staticprotected

Definition at line 58 of file ESDataFormatterV4.h.

◆ bFIBER

const int ESDataFormatterV4::bFIBER = 6
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bHEAD

const int ESDataFormatterV4::bHEAD = 4
staticprotected

Definition at line 58 of file ESDataFormatterV4.h.

◆ bKBC

const int ESDataFormatterV4::bKBC = 12
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bKCE

const int ESDataFormatterV4::bKCE = 1
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bKCRC

const int ESDataFormatterV4::bKCRC = 1
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bKEC

const int ESDataFormatterV4::bKEC = 8
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bKET

const int ESDataFormatterV4::bKET = 1
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bKFLAG1

const int ESDataFormatterV4::bKFLAG1 = 4
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bKFLAG2

const int ESDataFormatterV4::bKFLAG2 = 8
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bKHEAD

const int ESDataFormatterV4::bKHEAD = 4
staticprotected

Definition at line 56 of file ESDataFormatterV4.h.

◆ bKHEAD1

const int ESDataFormatterV4::bKHEAD1 = 2
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bKHEAD2

const int ESDataFormatterV4::bKHEAD2 = 2
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bKID

const int ESDataFormatterV4::bKID = 16
staticprotected

Definition at line 54 of file ESDataFormatterV4.h.

◆ bOEMUKEC

const int ESDataFormatterV4::bOEMUKEC = 8
staticprotected

Definition at line 61 of file ESDataFormatterV4.h.

◆ bOEMUTTCBC

const int ESDataFormatterV4::bOEMUTTCBC = 16
staticprotected

Definition at line 61 of file ESDataFormatterV4.h.

◆ bOEMUTTCEC

const int ESDataFormatterV4::bOEMUTTCEC = 32
staticprotected

Definition at line 61 of file ESDataFormatterV4.h.

◆ bOHEAD

const int ESDataFormatterV4::bOHEAD = 4
staticprotected

Definition at line 61 of file ESDataFormatterV4.h.

◆ bPACE

const int ESDataFormatterV4::bPACE = 2
staticprotected

Definition at line 58 of file ESDataFormatterV4.h.

◆ bSTRIP

const int ESDataFormatterV4::bSTRIP = 5
staticprotected

Definition at line 58 of file ESDataFormatterV4.h.

◆ bundleId_

int ESDataFormatterV4::bundleId_[2][2][40][40]
private

Definition at line 41 of file ESDataFormatterV4.h.

Referenced by ESDataFormatterV4().

◆ fedId_

int ESDataFormatterV4::fedId_[2][2][40][40]
private

Definition at line 38 of file ESDataFormatterV4.h.

Referenced by ESDataFormatterV4().

◆ fedIdOptoRx_

bool ESDataFormatterV4::fedIdOptoRx_[56][3]
private

Definition at line 45 of file ESDataFormatterV4.h.

Referenced by DigiToRaw(), and ESDataFormatterV4().

◆ fedIdOptoRxFiber_

bool ESDataFormatterV4::fedIdOptoRxFiber_[56][3][12]
private

Definition at line 46 of file ESDataFormatterV4.h.

Referenced by DigiToRaw(), and ESDataFormatterV4().

◆ fiberId_

int ESDataFormatterV4::fiberId_[2][2][40][40]
private

Definition at line 42 of file ESDataFormatterV4.h.

Referenced by DigiToRaw(), and ESDataFormatterV4().

◆ kchipId_

int ESDataFormatterV4::kchipId_[2][2][40][40]
private

Definition at line 39 of file ESDataFormatterV4.h.

Referenced by DigiToRaw(), and ESDataFormatterV4().

◆ lookup_

edm::FileInPath ESDataFormatterV4::lookup_
private

Definition at line 37 of file ESDataFormatterV4.h.

Referenced by ESDataFormatterV4().

◆ optoId_

int ESDataFormatterV4::optoId_[2][2][40][40]
private

Definition at line 43 of file ESDataFormatterV4.h.

Referenced by DigiToRaw(), and ESDataFormatterV4().

◆ paceId_

int ESDataFormatterV4::paceId_[2][2][40][40]
private

Definition at line 40 of file ESDataFormatterV4.h.

Referenced by DigiToRaw(), and ESDataFormatterV4().

◆ sADC0

const int ESDataFormatterV4::sADC0 = 0
staticprotected

Definition at line 59 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sADC1

const int ESDataFormatterV4::sADC1 = bADC0 + sADC0
staticprotected

Definition at line 59 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sADC2

const int ESDataFormatterV4::sADC2 = 0
staticprotected

Definition at line 59 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sDCH

const int ESDataFormatterV4::sDCH = 0
staticprotected

Definition at line 52 of file ESDataFormatterV4.h.

◆ sDCOMFLAG

const int ESDataFormatterV4::sDCOMFLAG = bDTRGTYPE + sDTRGTYPE
staticprotected

Definition at line 51 of file ESDataFormatterV4.h.

◆ sDEL

const int ESDataFormatterV4::sDEL = 0
staticprotected

Definition at line 51 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sDERR

const int ESDataFormatterV4::sDERR = bDEL + sDEL
staticprotected

Definition at line 51 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sDH

const int ESDataFormatterV4::sDH = 24
staticprotected

Definition at line 51 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sDHEAD

const int ESDataFormatterV4::sDHEAD = 28
staticprotected

Definition at line 51 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sDOPTO

const int ESDataFormatterV4::sDOPTO = 16
staticprotected

Definition at line 52 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sDORBIT

const int ESDataFormatterV4::sDORBIT = 0
staticprotected

Definition at line 51 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sDRUN

const int ESDataFormatterV4::sDRUN = 0
staticprotected

Definition at line 51 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sDRUNTYPE

const int ESDataFormatterV4::sDRUNTYPE = 0
staticprotected

Definition at line 51 of file ESDataFormatterV4.h.

◆ sDTRGTYPE

const int ESDataFormatterV4::sDTRGTYPE = 0
staticprotected

Definition at line 51 of file ESDataFormatterV4.h.

◆ sDVMAJOR

const int ESDataFormatterV4::sDVMAJOR = bDVMINOR + sDVMINOR
staticprotected

Definition at line 52 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sDVMINOR

const int ESDataFormatterV4::sDVMINOR = 8
staticprotected

Definition at line 52 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sE0

const int ESDataFormatterV4::sE0 = bSTRIP + sSTRIP + 1
staticprotected

Definition at line 59 of file ESDataFormatterV4.h.

◆ sE1

const int ESDataFormatterV4::sE1 = bE0 + sE0
staticprotected

Definition at line 59 of file ESDataFormatterV4.h.

◆ sFIBER

const int ESDataFormatterV4::sFIBER = bKID + sKID + 1
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

◆ sHEAD

const int ESDataFormatterV4::sHEAD = 28
staticprotected

Definition at line 59 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sKBC

const int ESDataFormatterV4::sKBC = 0
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sKCE

const int ESDataFormatterV4::sKCE = bKCRC + sKCRC
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

◆ sKCRC

const int ESDataFormatterV4::sKCRC = bKET + sKET
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

◆ sKEC

const int ESDataFormatterV4::sKEC = 16
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sKET

const int ESDataFormatterV4::sKET = 0
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

◆ sKFLAG1

const int ESDataFormatterV4::sKFLAG1 = 24
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sKFLAG2

const int ESDataFormatterV4::sKFLAG2 = 16
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sKHEAD

const int ESDataFormatterV4::sKHEAD = 28
staticprotected

Definition at line 57 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sKHEAD1

const int ESDataFormatterV4::sKHEAD1 = bFIBER + sFIBER + 2
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

◆ sKHEAD2

const int ESDataFormatterV4::sKHEAD2 = bKHEAD1 + sKHEAD1
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

◆ sKID

const int ESDataFormatterV4::sKID = 0
staticprotected

Definition at line 55 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sOEMUKEC

const int ESDataFormatterV4::sOEMUKEC = 16
staticprotected

Definition at line 62 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sOEMUTTCBC

const int ESDataFormatterV4::sOEMUTTCBC = 0
staticprotected

Definition at line 62 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sOEMUTTCEC

const int ESDataFormatterV4::sOEMUTTCEC = 0
staticprotected

Definition at line 62 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sOHEAD

const int ESDataFormatterV4::sOHEAD = 28
staticprotected

Definition at line 62 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sPACE

const int ESDataFormatterV4::sPACE = bSTRIP + sSTRIP
staticprotected

Definition at line 59 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

◆ sSTRIP

const int ESDataFormatterV4::sSTRIP = bADC2 + sADC2
staticprotected

Definition at line 59 of file ESDataFormatterV4.h.

Referenced by DigiToRaw().

ESDataFormatterV4::optoId_
int optoId_[2][2][40][40]
Definition: ESDataFormatterV4.h:43
ESDataFormatterV4::sOEMUTTCEC
static const int sOEMUTTCEC
Definition: ESDataFormatterV4.h:62
mps_fire.i
i
Definition: mps_fire.py:428
ESSample::adc
int adc() const
get the ADC sample (singed 16 bits)
Definition: ESSample.h:16
ESDataFormatterV4::sPACE
static const int sPACE
Definition: ESDataFormatterV4.h:59
ESDetId::strip
int strip() const
Definition: ESDetId.h:47
gather_cfg.cout
cout
Definition: gather_cfg.py:144
ESDataFormatterV4::bundleId_
int bundleId_[2][2][40][40]
Definition: ESDataFormatterV4.h:41
ESDataFrame::size
int size() const
Definition: ESDataFrame.h:21
ESDataFormatterV4::sHEAD
static const int sHEAD
Definition: ESDataFormatterV4.h:59
ESDataFormatterV4::sDERR
static const int sDERR
Definition: ESDataFormatterV4.h:51
ESDataFormatterV4::sSTRIP
static const int sSTRIP
Definition: ESDataFormatterV4.h:59
edm::ParameterSet::getUntrackedParameter
T getUntrackedParameter(std::string const &, T const &) const
ESDetId
Definition: ESDetId.h:15
ESDataFormatter::debug_
const bool debug_
Definition: ESDataFormatter.h:50
ESDataFormatterV4::fedIdOptoRxFiber_
bool fedIdOptoRxFiber_[56][3][12]
Definition: ESDataFormatterV4.h:46
ESDataFormatterV4::Word64
ESDataFormatter::Word64 Word64
Definition: ESDataFormatterV4.h:29
submitDQMOfflineCAF.nLines
nLines
Definition: submitDQMOfflineCAF.py:676
ESDataFormatterV4::sADC2
static const int sADC2
Definition: ESDataFormatterV4.h:59
ESDataFrame
Definition: ESDataFrame.h:10
ESDataFormatterV4::sKEC
static const int sKEC
Definition: ESDataFormatterV4.h:55
word
uint64_t word
Definition: CTPPSTotemDataFormatter.cc:29
ESDataFrame::sample
const ESSample & sample(int i) const
Definition: ESDataFrame.h:24
edm::FileInPath
Definition: FileInPath.h:61
ESDataFormatterV4::sKFLAG2
static const int sKFLAG2
Definition: ESDataFormatterV4.h:55
l1t_dqm_sourceclient-live_cfg.fedRawData
fedRawData
Definition: l1t_dqm_sourceclient-live_cfg.py:188
ESDataFormatterV4::sDVMINOR
static const int sDVMINOR
Definition: ESDataFormatterV4.h:52
w
const double w
Definition: UKUtility.cc:23
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:79
Word64
cms_uint64_t Word64
Definition: SiPixelDigiConstants.h:7
ESDataFormatterV4::lookup_
edm::FileInPath lookup_
Definition: ESDataFormatterV4.h:37
dqmdumpme.k
k
Definition: dqmdumpme.py:60
ESDataFormatterV4::sOEMUTTCBC
static const int sOEMUTTCBC
Definition: ESDataFormatterV4.h:62
ESDataFormatterV4::sADC0
static const int sADC0
Definition: ESDataFormatterV4.h:59
evf::compute_crc
unsigned short compute_crc(unsigned char *buffer, unsigned int bufSize)
Definition: CRC16.h:46
ESDataFormatterV4::sDORBIT
static const int sDORBIT
Definition: ESDataFormatterV4.h:51
ESDataFormatterV4::kchipId_
int kchipId_[2][2][40][40]
Definition: ESDataFormatterV4.h:39
ESDataFormatterV4::sOEMUKEC
static const int sOEMUKEC
Definition: ESDataFormatterV4.h:62
geometryDiff.file
file
Definition: geometryDiff.py:13
ESDataFormatterV4::DetDigis
ESDataFormatter::DetDigis DetDigis
Definition: ESDataFormatterV4.h:23
ESDataFormatterV4::sDRUN
static const int sDRUN
Definition: ESDataFormatterV4.h:51
ltstrip
bool ltstrip(const ESDataFormatterV4::Word64 &s1, const ESDataFormatterV4::Word64 &s2)
Definition: ESDataFormatterV4.cc:181
ESDataFormatterV4::sDOPTO
static const int sDOPTO
Definition: ESDataFormatterV4.h:52
jetUpdater_cfi.sort
sort
Definition: jetUpdater_cfi.py:29
ESDataFormatterV4::fedId_
int fedId_[2][2][40][40]
Definition: ESDataFormatterV4.h:38
ESDataFormatterV4::sDVMAJOR
static const int sDVMAJOR
Definition: ESDataFormatterV4.h:52
FEDNumbering::MINPreShowerFEDID
Definition: FEDNumbering.h:31
ESDataFormatterV4::fedIdOptoRx_
bool fedIdOptoRx_[56][3]
Definition: ESDataFormatterV4.h:45
l1tstage2_dqm_sourceclient-live_cfg.fedId
fedId
Definition: l1tstage2_dqm_sourceclient-live_cfg.py:89
FEDTrailer::set
static void set(unsigned char *trailer, uint32_t lenght, uint16_t crc, uint8_t evt_stat, uint8_t tts, bool moreTrailers=false)
Set all fields in the trailer.
Definition: FEDTrailer.cc:31
ltfiber
Definition: ESDataFormatterV4.cc:177
ESDataFormatterV4::sADC1
static const int sADC1
Definition: ESDataFormatterV4.h:59
ESDetId::plane
int plane() const
Definition: ESDetId.h:41
ESDataFormatter::print
std::string print(const Word64 &word) const
Definition: ESDataFormatter.cc:11
ESDetId::six
int six() const
Definition: ESDetId.h:43
ESDataFormatterV4::sDHEAD
static const int sDHEAD
Definition: ESDataFormatterV4.h:51
ESDataFormatterV4::sKID
static const int sKID
Definition: ESDataFormatterV4.h:55
Word32
cms_uint32_t Word32
Definition: SiPixelDigiConstants.h:8
ESDataFormatter::ESDataFormatter
ESDataFormatter(const edm::ParameterSet &ps)
Definition: ESDataFormatter.h:38
ESDataFormatterV4::paceId_
int paceId_[2][2][40][40]
Definition: ESDataFormatterV4.h:40
muonME0PseudoReDigis_cfi.numberOfStrips
numberOfStrips
Definition: muonME0PseudoReDigis_cfi.py:8
ESDataFormatterV4::sDEL
static const int sDEL
Definition: ESDataFormatterV4.h:51
ESDataFormatterV4::sKFLAG1
static const int sKFLAG1
Definition: ESDataFormatterV4.h:55
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
ESDataFormatterV4::sKBC
static const int sKBC
Definition: ESDataFormatterV4.h:55
FEDHeader::set
static void set(unsigned char *header, uint8_t triggerType, uint32_t lvl1ID, uint16_t bxID, uint16_t sourceID, uint8_t version=0, bool moreHeaders=false)
Set all fields in the header.
Definition: FEDHeader.cc:25
ESDetId::siy
int siy() const
Definition: ESDetId.h:45
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
ESDataFormatterV4::fiberId_
int fiberId_[2][2][40][40]
Definition: ESDataFormatterV4.h:42
sistrip
sistrip classes
Definition: EnsembleCalibrationLA.cc:10
dqmiolumiharvest.j
j
Definition: dqmiolumiharvest.py:66
ESDataFormatter::trgtype_
const int trgtype_
Definition: ESDataFormatter.h:49
ESDataFormatterV4::sDH
static const int sDH
Definition: ESDataFormatterV4.h:51
ESDataFormatterV4::sKHEAD
static const int sKHEAD
Definition: ESDataFormatterV4.h:57
ESDetId::zside
int zside() const
Definition: ESDetId.h:39
ESDataFormatterV4::sOHEAD
static const int sOHEAD
Definition: ESDataFormatterV4.h:62
ESDataFrame::id
const ESDetId & id() const
Definition: ESDataFrame.h:19
edm::FileInPath::fullPath
std::string fullPath() const
Definition: FileInPath.cc:161
FEDNumbering::MAXPreShowerFEDID
Definition: FEDNumbering.h:32