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 Word64 &word) const
 
std::string print (const Word16 &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.

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

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 }
int bundleId_[2][2][40][40]
int fiberId_[2][2][40][40]
std::string fullPath() const
Definition: FileInPath.cc:161
bool fedIdOptoRxFiber_[56][3][12]
T getUntrackedParameter(std::string const &, T const &) const
ESDataFormatter(const edm::ParameterSet &ps)
edm::FileInPath lookup_
int kchipId_[2][2][40][40]
bool fedIdOptoRx_[56][3]
int fedId_[2][2][40][40]
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t ix(uint32_t id)
const bool debug_
int paceId_[2][2][40][40]
ALPAKA_FN_ACC ALPAKA_FN_INLINE uint32_t iy(uint32_t id)
int optoId_[2][2][40][40]

◆ ~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.

References ESSample::adc(), ESDataFormatter::Meta_Data::bx, evf::compute_crc(), gather_cfg::cout, data, ESDataFormatter::debug_, hcalRecHitTable_cff::detId, l1tstage2_dqm_sourceclient-live_cfg::fedId, fedIdOptoRx_, fedIdOptoRxFiber_, l1t_dqm_sourceclient-live_cfg::fedRawData, FCDTask_cfi::fiber, fiberId_, mps_fire::i, ESDataFrame::id(), l1ctLayer2EG_cff::id, ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, 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_, 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, ESDataFrame::size(), sKBC, sKEC, sKFLAG1, sKFLAG2, sKHEAD, sKID, sOEMUKEC, sOEMUTTCBC, sOEMUTTCEC, sOHEAD, jetUpdater_cfi::sort, sPACE, sSTRIP, ESDataFormatter::trgtype_, and w().

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  while (kit != theSet.end()) {
286  const pair<int, int>& kchip_fiber = (*kit);
287 
288  if (debug_)
289  cout << "KCHIP : " << kchip_fiber.first << " FIBER: " << kchip_fiber.second << endl;
290 
291  if (fedIdOptoRxFiber_[fedId - FEDNumbering::MINPreShowerFEDID][iopto][kchip_fiber.second - 1]) {
292  // Set all PACEs enabled for MC
293  word1 = (0 << sKFLAG1) | (0xf << sKFLAG2) | (((kchip_fiber.first << 2) | 0x02) << sKID);
294  word2 = (0x9 << sKHEAD) | (meta_data.kchip_ec << sKEC) | (meta_data.kchip_bc << sKBC);
295 
296  word = (Word64(word2) << 32) | Word64(word1);
297  if (debug_)
298  cout << "KCHIP : " << print(word) << endl;
299 
300  words.push_back(word);
301 
302  vector<Word64>& data = map_data[kchip_fiber.first];
303 
304  // sort against stripid field, as hardware gives this order to strip data :
305  sort(data.begin(), data.end(), ltstrip);
306 
307  for (unsigned int id = 0; id < data.size(); ++id) {
308  if (debug_)
309  cout << "Data : " << print(data[id]) << endl;
310  words.push_back(data[id]);
311  }
312  }
313  ++kit;
314  }
315  }
316  }
317 
318  int dataSize = (words.size() + 8) * sizeof(Word64);
319 
320  vector<Word64> DCCwords;
321 
322  word2 = (3 << sDHEAD) | (1 << sDH) | (meta_data.run_number << sDRUN);
323  word1 = (numberOfStrips << sDEL) | (0xff << sDERR);
324  word = (Word64(word2) << 32) | Word64(word1);
325  DCCwords.push_back(word);
326 
327  word2 = (3 << sDHEAD) | (2 << sDH);
328  word1 = 0;
329  word = (Word64(word2) << 32) | Word64(word1);
330  DCCwords.push_back(word);
331 
332  word2 = (3 << sDHEAD) | (3 << sDH) | (4 << sDVMAJOR) | (3 << sDVMINOR);
333  word1 = (meta_data.orbit_number << sDORBIT);
334  word = (Word64(word2) << 32) | Word64(word1);
335  DCCwords.push_back(word);
336 
337  for (int iopto = 0; iopto < 3; ++iopto) {
338  // N optorx module header word:
339  word1 = 0;
341  word2 = (3 << sDHEAD) | ((iopto + 4) << sDH) | (0x80 << sDOPTO);
342  int ich = 0;
343  for (ich = 0; ich < 4; ++ich) {
344  int chStatus = (optorx_ch_counts[iopto][ich + 8] > 0) ? 0xe : 0xd;
345  chStatus = (fedIdOptoRxFiber_[fedId - FEDNumbering::MINPreShowerFEDID][iopto][ich + 8]) ? chStatus : 0x00;
346  word2 |= (chStatus << (ich * 4)); //
347  }
348 
349  for (ich = 0; ich < 8; ++ich) {
350  int chStatus = (optorx_ch_counts[iopto][ich] > 0) ? 0xe : 0xd;
351  chStatus = (fedIdOptoRxFiber_[fedId - FEDNumbering::MINPreShowerFEDID][iopto][ich]) ? chStatus : 0x00;
352  word1 |= (chStatus << (ich * 4));
353  }
354  } else
355  word2 = (3 << sDHEAD) | ((iopto + 4) << sDH) | (0x00 << sDOPTO);
356 
357  word = (Word64(word2) << 32) | Word64(word1);
358  DCCwords.push_back(word);
359  }
360 
361  // Output (data size in Bytes)
362  // FEDRawData * rawData = new FEDRawData(dataSize);
363  fedRawData.resize(dataSize);
364 
365  Word64* w = reinterpret_cast<Word64*>(fedRawData.data());
366 
367  // header
368  FEDHeader::set(reinterpret_cast<unsigned char*>(w), trgtype_, meta_data.lv1, meta_data.bx, fedId);
369  w++;
370 
371  // ES-DCC
372  for (unsigned int i = 0; i < DCCwords.size(); ++i) {
373  if (debug_)
374  cout << "DCC : " << print(DCCwords[i]) << endl;
375  *w = DCCwords[i];
376  w++;
377  }
378 
379  // event data
380  for (unsigned int i = 0; i < words.size(); ++i) {
381  *w = words[i];
382  w++;
383  }
384 
385  // trailer
386  FEDTrailer::set(reinterpret_cast<unsigned char*>(w),
387  dataSize / sizeof(Word64),
388  evf::compute_crc(fedRawData.data(), dataSize),
389  0,
390  0);
391 }
const ESDetId & id() const
Definition: ESDataFrame.h:19
static const int sOHEAD
int fiberId_[2][2][40][40]
static const int sHEAD
static const int sSTRIP
static const int sPACE
static const int sDH
int size() const
Definition: ESDataFrame.h:21
T w() const
bool fedIdOptoRxFiber_[56][3][12]
static const int sDVMINOR
static const int sKEC
sistrip classes
static const int sDERR
int adc() const
get the ADC sample (singed 16 bits)
Definition: ESSample.h:16
const ESSample & sample(int i) const
Definition: ESDataFrame.h:24
uint64_t word
static const int sKFLAG2
static const int sDRUN
ESDataFormatter::Word64 Word64
static const int sOEMUTTCBC
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
static const int sADC2
const int trgtype_
cms_uint32_t Word32
unsigned short compute_crc(unsigned char *buffer, unsigned int bufSize)
Definition: CRC16.h:46
ESDataFormatter::DetDigis DetDigis
static const int sOEMUKEC
int kchipId_[2][2][40][40]
bool fedIdOptoRx_[56][3]
static const int sDEL
static const int sKFLAG1
static const int sADC0
static const int sDOPTO
static const int sKBC
static const int sDORBIT
static const int sADC1
std::string print(const Word64 &word) const
static const int sDVMAJOR
static const int sKID
static const int sDHEAD
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:80
const bool debug_
int paceId_[2][2][40][40]
bool ltstrip(const ESDataFormatterV4::Word64 &s1, const ESDataFormatterV4::Word64 &s2)
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
int optoId_[2][2][40][40]
cms_uint64_t Word64
static const int sKHEAD
static const int sOEMUTTCEC

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