CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Public Attributes | Static Public Attributes
UHTRpacker Class Reference

#include <PackerHelp.h>

Public Types

typedef std::vector< uint16_t > uhtrData
 
typedef std::map< int, uhtrDataUHTRMap
 

Public Member Functions

void addChannel (int uhtrIndex, edm::SortedCollection< HBHEDataFrame >::const_iterator qiedf, const HcalElectronicsMap *readoutMap, bool premix, int verbosity=0)
 
void addChannel (int uhtrIndex, edm::SortedCollection< HcalTriggerPrimitiveDigi >::const_iterator qiedf, int channelid, int verbosity=0)
 
void addChannel (int uhtrIndex, edm::SortedCollection< HFDataFrame >::const_iterator &qiedf, const HcalElectronicsMap *readoutMap, bool premix, int verbosity=0)
 
void addChannel (int uhtrIndex, QIE10DataFrame qiedf, const HcalElectronicsMap *readoutMap, int verbosity=0)
 
void addChannel (int uhtrIndex, QIE11DataFrame qiedf, const HcalElectronicsMap *readoutMap, int verbosity=0)
 
bool exist (int uhtrIndex)
 
void finalizeHeadTail (uhtrData *uhtr, bool verbosity)
 
uhtrDatanewUHTR (int uhtrIndex, int ps=0, int orn=0, int bcn=0, uint64_t evt=0)
 
uint16_t packQIE10header (const HcalElectronicsId &eid)
 
uint16_t packQIE11header (const QIE11DataFrame &qiedf, const HcalElectronicsId &eid)
 
uint16_t packQIE8header (const HcalQIESample &qieSample, const HcalElectronicsId &eid, int flavor)
 
uint16_t packQIE8sample (const HcalQIESample &qieSample)
 
uint16_t packTPheader (const HcalTriggerPrimitiveSample &tpSample, int channelid)
 
 UHTRpacker ()
 

Public Attributes

UHTRMap uhtrs
 

Static Public Attributes

static const int MASK_BCN = 0xFFF
 
static const int MASK_CRATE_ID = 0xFFFFFF
 
static const int MASK_DATA_LENGTH = 0xFFFFF
 
static const int MASK_EVENT_TYPE = 0xF
 
static const int MASK_EVN = 0xFFFFFF
 
static const int MASK_FILED_BY_AMC13 = 0xFF
 
static const int MASK_FW_FLAVOR = 0xFF
 
static const int MASK_FW_VERSION = 0xFFFF
 
static const int MASK_ORN = 0xFFFF
 
static const int MASK_PAYLOAD_FORMAT = 0xF
 
static const int MASK_PRESAMPLES = 0xF
 
static const int MASK_SLOT_ID = 0xF
 
static const int OFFSET_BCN = 20
 
static const int OFFSET_CRATE_ID = 0
 
static const int OFFSET_DATA_LENGTH = 0
 
static const int OFFSET_EVENT_TYPE = 40
 
static const int OFFSET_EVN = 32
 
static const int OFFSET_FILED_BY_AMC13 = 56
 
static const int OFFSET_FW_FLAVOR = 32
 
static const int OFFSET_FW_VERSION = 48
 
static const int OFFSET_ORN = 16
 
static const int OFFSET_PAYLOAD_FORMAT = 44
 
static const int OFFSET_PRESAMPLES = 12
 
static const int OFFSET_SLOT_ID = 8
 

Detailed Description

Definition at line 310 of file PackerHelp.h.

Member Typedef Documentation

◆ uhtrData

typedef std::vector<uint16_t> UHTRpacker::uhtrData

Definition at line 312 of file PackerHelp.h.

◆ UHTRMap

typedef std::map<int, uhtrData> UHTRpacker::UHTRMap

Definition at line 313 of file PackerHelp.h.

Constructor & Destructor Documentation

◆ UHTRpacker()

UHTRpacker::UHTRpacker ( )
inline

Definition at line 344 of file PackerHelp.h.

344 {}

Member Function Documentation

◆ addChannel() [1/5]

void UHTRpacker::addChannel ( int  uhtrIndex,
edm::SortedCollection< HBHEDataFrame >::const_iterator  qiedf,
const HcalElectronicsMap readoutMap,
bool  premix,
int  verbosity = 0 
)
inline

Definition at line 533 of file PackerHelp.h.

537  {
538  if (qiedf->size() == 0)
539  return;
540  DetId detid = qiedf->id();
541  HcalElectronicsId eid(readoutMap->lookup(detid));
542  uint16_t header = packQIE8header(qiedf->sample(0), eid, premix ? 7 : 5);
543  uhtrs[uhtrIndex].push_back(header);
544  // loop over words in dataframe
545  if (premix) {
546  for (int iTS = 0; iTS < qiedf->size(); ++iTS) {
547  uhtrs[uhtrIndex].push_back(packQIE8sample(qiedf->sample(iTS)));
548  }
549  } else {
550  for (int iTS = 0; iTS < qiedf->size(); iTS += 2) {
551  uint16_t cont = 0;
552  int adc0 = qiedf->sample(iTS).adc();
553  int adc1 = qiedf->sample(iTS + 1).adc();
554  cont |= adc0 & 0xFF;
555  cont |= (adc1 & 0xFF) << 8;
556  uhtrs[uhtrIndex].push_back(cont);
557  }
558  } // end loop over dataframe words
559  };

References generateEDF::cont, runTauDisplay::eid, RecoTauValidation_cfi::header, HcalElectronicsMap::lookup(), packQIE8header(), packQIE8sample(), edm::SortedCollection< T, SORT >::size(), and uhtrs.

◆ addChannel() [2/5]

void UHTRpacker::addChannel ( int  uhtrIndex,
edm::SortedCollection< HcalTriggerPrimitiveDigi >::const_iterator  qiedf,
int  channelid,
int  verbosity = 0 
)
inline

Definition at line 561 of file PackerHelp.h.

564  {
565  if (qiedf->size() == 0)
566  return;
567  uint16_t header = packTPheader(qiedf->sample(0), channelid);
568  uhtrs[uhtrIndex].push_back(header);
569  // loop over words in dataframe
570  for (int iTS = 0; iTS < qiedf->size(); iTS++) {
571  // push data into uhtr data container
572  auto raw = qiedf->sample(iTS).raw();
573  // Add SOI information
574  if (iTS == qiedf->presamples())
576  uhtrs[uhtrIndex].push_back(raw);
577  } // end loop over dataframe words
578  };

References RecoTauValidation_cfi::header, TPHeaderSpec::MASK_SOI_BIT, TPHeaderSpec::OFFSET_SOI_BIT, packTPheader(), edm::SortedCollection< T, SORT >::size(), and uhtrs.

◆ addChannel() [3/5]

void UHTRpacker::addChannel ( int  uhtrIndex,
edm::SortedCollection< HFDataFrame >::const_iterator &  qiedf,
const HcalElectronicsMap readoutMap,
bool  premix,
int  verbosity = 0 
)
inline

Definition at line 505 of file PackerHelp.h.

509  {
510  if (qiedf->size() == 0)
511  return;
512  DetId detid = qiedf->id();
513  HcalElectronicsId eid(readoutMap->lookup(detid));
514  uint16_t header = packQIE8header(qiedf->sample(0), eid, premix ? 7 : 5);
515  uhtrs[uhtrIndex].push_back(header);
516  // loop over words in dataframe
517  if (premix) {
518  for (int iTS = 0; iTS < qiedf->size(); ++iTS) {
519  uhtrs[uhtrIndex].push_back(packQIE8sample(qiedf->sample(iTS)));
520  }
521  } else {
522  for (int iTS = 0; iTS < qiedf->size(); iTS += 2) {
523  uint16_t cont = 0;
524  int adc0 = qiedf->sample(iTS).adc();
525  int adc1 = qiedf->sample(iTS + 1).adc();
526  cont |= adc0 & 0xFF;
527  cont |= (adc1 & 0xFF) << 8;
528  uhtrs[uhtrIndex].push_back(cont);
529  }
530  } // end loop over dataframe words
531  };

References generateEDF::cont, runTauDisplay::eid, RecoTauValidation_cfi::header, HcalElectronicsMap::lookup(), packQIE8header(), packQIE8sample(), edm::SortedCollection< T, SORT >::size(), and uhtrs.

Referenced by HcalDigiToRawuHTR::produce().

◆ addChannel() [4/5]

void UHTRpacker::addChannel ( int  uhtrIndex,
QIE10DataFrame  qiedf,
const HcalElectronicsMap readoutMap,
int  verbosity = 0 
)
inline

Definition at line 598 of file PackerHelp.h.

598  {
599  DetId detid = qiedf.detid();
600  HcalElectronicsId eid(readoutMap->lookup(detid));
601  // loop over words in dataframe
602  for (edm::DataFrame::iterator dfi = qiedf.begin(); dfi != qiedf.end(); ++dfi) {
603  if (dfi >= qiedf.end() - QIE10DataFrame::FLAG_WORDS) {
604  continue;
605  }
606  if (dfi == qiedf.begin() && QIE10DataFrame::HEADER_WORDS == 1) {
607  uint16_t header = packQIE10header(eid);
608  uhtrs[uhtrIndex].push_back(header);
609  continue;
610  }
611  // push data into uhtr data container
612  uhtrs[uhtrIndex].push_back(dfi[0]);
613  } // end loop over dataframe words
614  };

References QIE10DataFrame::begin(), QIE10DataFrame::detid(), runTauDisplay::eid, QIE10DataFrame::end(), QIE10DataFrame::FLAG_WORDS, RecoTauValidation_cfi::header, QIE10DataFrame::HEADER_WORDS, HcalElectronicsMap::lookup(), packQIE10header(), and uhtrs.

◆ addChannel() [5/5]

void UHTRpacker::addChannel ( int  uhtrIndex,
QIE11DataFrame  qiedf,
const HcalElectronicsMap readoutMap,
int  verbosity = 0 
)
inline

Definition at line 580 of file PackerHelp.h.

580  {
581  DetId detid = qiedf.detid();
582  HcalElectronicsId eid(readoutMap->lookup(detid));
583  // loop over words in dataframe
584  for (edm::DataFrame::iterator dfi = qiedf.begin(); dfi != qiedf.end(); ++dfi) {
585  if (dfi >= qiedf.end() - QIE11DataFrame::FLAG_WORDS) {
586  continue;
587  }
588  if (dfi == qiedf.begin() && QIE11DataFrame::HEADER_WORDS == 1) {
589  uint16_t header = packQIE11header(qiedf, eid);
590  uhtrs[uhtrIndex].push_back(header);
591  continue;
592  }
593  // push data into uhtr data container
594  uhtrs[uhtrIndex].push_back(dfi[0]);
595  } // end loop over dataframe words
596  };

References QIE11DataFrame::begin(), QIE11DataFrame::detid(), runTauDisplay::eid, QIE11DataFrame::end(), QIE11DataFrame::FLAG_WORDS, RecoTauValidation_cfi::header, QIE11DataFrame::HEADER_WORDS, HcalElectronicsMap::lookup(), packQIE11header(), and uhtrs.

◆ exist()

bool UHTRpacker::exist ( int  uhtrIndex)
inline

Definition at line 346 of file PackerHelp.h.

346 { return uhtrs.count(uhtrIndex) != 0; };

References uhtrs.

Referenced by HcalDigiToRawuHTR::produce().

◆ finalizeHeadTail()

void UHTRpacker::finalizeHeadTail ( uhtrData uhtr,
bool  verbosity 
)
inline

Definition at line 483 of file PackerHelp.h.

483  {
484  uint64_t uhtr_size = uhtr->size() - 8;
485 
486  // adjust the size bits
487  uhtr->at(0) = uhtr_size & 0xFFFF;
488  uhtr->at(1) |= (uhtr_size >> 16) & 0xF;
489 
490  unsigned int toAdd = 4 - uhtr->size() % 4;
491  for (unsigned int ia = 0; ia < toAdd; ia++) {
492  uhtr->push_back(0xD07F);
493  }
494 
495  // add trailer
496  uhtr->push_back(uhtr_size & 0xFFFF);
497  uhtr->push_back((uhtr_size >> 16) & 0xF);
498  // this is ignoring the event number... I am not sure what this should be
499 
500  // adding some blank stuff for the CRC bits
501  uhtr->push_back(0);
502  uhtr->push_back(0);
503  };

References HLT_2018_cff::toAdd.

Referenced by HcalDigiToRawuHTR::produce().

◆ newUHTR()

uhtrData* UHTRpacker::newUHTR ( int  uhtrIndex,
int  ps = 0,
int  orn = 0,
int  bcn = 0,
uint64_t  evt = 0 
)
inline

Definition at line 443 of file PackerHelp.h.

443  {
444  // initialize vector of 16-bit words
445  uhtrs[uhtrIndex] = uhtrData(8);
446  // build header -- some information will be updated at the end
447 
448  uint64_t presamples = std::max(ps, 0);
449  uint64_t uhtrCrate = uhtrIndex & 0xFF;
450  uint64_t uhtrSlot = (uhtrIndex & 0xF00) >> 8;
451  // From Jeremy:
452  // Set the firmware to zero, the firmware flavor to 0, the payload format to 1, and the event type to 1.
453  uint64_t fwFlavor = 0;
454  uint64_t eventType = 1;
455  uint64_t payloadFormat = 1;
456  uint64_t fwVersion = 0;
457 
458  uint64_t uhtrHeader1 = 0;
459  uhtrHeader1 |= (uint64_t(0x0) & MASK_DATA_LENGTH) << OFFSET_DATA_LENGTH;
460  uhtrHeader1 |= (bcn & MASK_BCN) << OFFSET_BCN;
461  uhtrHeader1 |= (evt & MASK_EVN) << OFFSET_EVN;
462  uhtrHeader1 |= (uint64_t(0x0) & MASK_FILED_BY_AMC13) << OFFSET_FILED_BY_AMC13;
463 
464  uint64_t uhtrHeader2 = 0;
465  uhtrHeader2 |= (uhtrCrate & MASK_CRATE_ID) << OFFSET_CRATE_ID;
466  uhtrHeader2 |= (uhtrSlot & MASK_SLOT_ID) << OFFSET_SLOT_ID;
467  uhtrHeader2 |= (presamples & MASK_PRESAMPLES) << OFFSET_PRESAMPLES;
468  uhtrHeader2 |= (orn & MASK_ORN) << OFFSET_ORN;
469  uhtrHeader2 |= (fwFlavor & MASK_FW_FLAVOR) << OFFSET_FW_FLAVOR;
470  uhtrHeader2 |= (eventType & MASK_EVENT_TYPE) << OFFSET_EVENT_TYPE;
471  uhtrHeader2 |= (payloadFormat & MASK_PAYLOAD_FORMAT) << OFFSET_PAYLOAD_FORMAT;
472  uhtrHeader2 |= (fwVersion & MASK_FW_VERSION) << OFFSET_FW_VERSION;
473 
474  // push header into vector of 16-bit words
475  for (unsigned int i = 0; i < 4; ++i) {
476  uhtrs[uhtrIndex][i] = (uhtrHeader1 >> (i * 16)) & 0xFFFF;
477  uhtrs[uhtrIndex][i + 4] = (uhtrHeader2 >> (i * 16)) & 0xFFFF;
478  }
479 
480  return &(uhtrs[uhtrIndex]);
481  };

References hcalcalib_dqm_sourceclient-live_cfg::eventType, amcDumpToRaw_cfi::fwVersion, mps_fire::i, MASK_BCN, MASK_CRATE_ID, MASK_DATA_LENGTH, MASK_EVENT_TYPE, MASK_EVN, MASK_FILED_BY_AMC13, MASK_FW_FLAVOR, MASK_FW_VERSION, MASK_ORN, MASK_PAYLOAD_FORMAT, MASK_PRESAMPLES, MASK_SLOT_ID, SiStripPI::max, OFFSET_BCN, OFFSET_CRATE_ID, OFFSET_DATA_LENGTH, OFFSET_EVENT_TYPE, OFFSET_EVN, OFFSET_FILED_BY_AMC13, OFFSET_FW_FLAVOR, OFFSET_FW_VERSION, OFFSET_ORN, OFFSET_PAYLOAD_FORMAT, OFFSET_PRESAMPLES, OFFSET_SLOT_ID, hcalTTPDigis_cfi::presamples, and uhtrs.

Referenced by HcalDigiToRawuHTR::produce().

◆ packQIE10header()

uint16_t UHTRpacker::packQIE10header ( const HcalElectronicsId eid)
inline

◆ packQIE11header()

uint16_t UHTRpacker::packQIE11header ( const QIE11DataFrame qiedf,
const HcalElectronicsId eid 
)
inline

Definition at line 416 of file PackerHelp.h.

416  {
417  uint16_t header = 0;
418 
419  int fiber = eid.fiberIndex();
420  int fiberchan = eid.fiberChanId();
421  int flavor = qiedf[0].flavor();
422 
423  if (flavor == 3) {
430  } else {
431  int capid0 = qiedf[0].capid();
438  }
439 
440  return header;
441  }

References runTauDisplay::eid, QIE11DataFrame::flavor(), RecoTauValidation_cfi::header, QIE11HeaderSpec0::MASK_CAPID, QIE11HeaderSpec0::MASK_FIBER, QIE11HeaderSpec3::MASK_FIBER, QIE11HeaderSpec0::MASK_FIBERCHAN, QIE11HeaderSpec3::MASK_FIBERCHAN, QIE11HeaderSpec0::MASK_FIBERERR, QIE11HeaderSpec0::MASK_FLAVOR, QIE11HeaderSpec3::MASK_FLAVOR, QIE11HeaderSpec0::MASK_HEADER_BIT, QIE11HeaderSpec3::MASK_HEADER_BIT, QIE11HeaderSpec3::MASK_LINKERROR, QIE11HeaderSpec3::MASK_MP, QIE11HeaderSpec0::OFFSET_CAPID, QIE11HeaderSpec0::OFFSET_FIBER, QIE11HeaderSpec3::OFFSET_FIBER, QIE11HeaderSpec0::OFFSET_FIBERCHAN, QIE11HeaderSpec3::OFFSET_FIBERCHAN, QIE11HeaderSpec0::OFFSET_FIBERERR, QIE11HeaderSpec0::OFFSET_FLAVOR, QIE11HeaderSpec3::OFFSET_FLAVOR, QIE11HeaderSpec0::OFFSET_HEADER_BIT, QIE11HeaderSpec3::OFFSET_HEADER_BIT, QIE11HeaderSpec3::OFFSET_LINKERROR, and QIE11HeaderSpec3::OFFSET_MP.

Referenced by addChannel().

◆ packQIE8header()

uint16_t UHTRpacker::packQIE8header ( const HcalQIESample qieSample,
const HcalElectronicsId eid,
int  flavor 
)
inline

Definition at line 349 of file PackerHelp.h.

349  {
350  uint16_t header = 0;
351 
352  int fiber = eid.fiberIndex() + 1;
353  int fiberchan = eid.fiberChanId();
354 
357  if (flavor == 7) {
359  } else {
360  int fiberErr = qieSample.er();
361  int capid0 = qieSample.capid();
364  }
367 
368  return header;
369  }

References HcalQIESample::capid(), runTauDisplay::eid, HcalQIESample::er(), RecoTauValidation_cfi::header, QIE8HeaderSpec::MASK_CAPID, QIE8HeaderSpec::MASK_FIBER, QIE8HeaderSpec::MASK_FIBERCHAN, QIE8HeaderSpec::MASK_FIBERERR, QIE8HeaderSpec::MASK_FLAVOR, QIE8HeaderSpec::MASK_HEADER_BIT, QIE8HeaderSpec::MASK_TECHNICAL_DATA_TYPE, QIE8HeaderSpec::OFFSET_CAPID, QIE8HeaderSpec::OFFSET_FIBER, QIE8HeaderSpec::OFFSET_FIBERCHAN, QIE8HeaderSpec::OFFSET_FIBERERR, QIE8HeaderSpec::OFFSET_FLAVOR, QIE8HeaderSpec::OFFSET_HEADER_BIT, and QIE8HeaderSpec::OFFSET_TECHNICAL_DATA_TYPE.

Referenced by addChannel().

◆ packQIE8sample()

uint16_t UHTRpacker::packQIE8sample ( const HcalQIESample qieSample)
inline

◆ packTPheader()

uint16_t UHTRpacker::packTPheader ( const HcalTriggerPrimitiveSample tpSample,
int  channelid 
)
inline

Member Data Documentation

◆ MASK_BCN

const int UHTRpacker::MASK_BCN = 0xFFF
static

Definition at line 321 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_CRATE_ID

const int UHTRpacker::MASK_CRATE_ID = 0xFFFFFF
static

Definition at line 328 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_DATA_LENGTH

const int UHTRpacker::MASK_DATA_LENGTH = 0xFFFFF
static

Definition at line 319 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_EVENT_TYPE

const int UHTRpacker::MASK_EVENT_TYPE = 0xF
static

Definition at line 338 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_EVN

const int UHTRpacker::MASK_EVN = 0xFFFFFF
static

Definition at line 323 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_FILED_BY_AMC13

const int UHTRpacker::MASK_FILED_BY_AMC13 = 0xFF
static

Definition at line 325 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_FW_FLAVOR

const int UHTRpacker::MASK_FW_FLAVOR = 0xFF
static

Definition at line 336 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_FW_VERSION

const int UHTRpacker::MASK_FW_VERSION = 0xFFFF
static

Definition at line 342 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_ORN

const int UHTRpacker::MASK_ORN = 0xFFFF
static

Definition at line 334 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_PAYLOAD_FORMAT

const int UHTRpacker::MASK_PAYLOAD_FORMAT = 0xF
static

Definition at line 340 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_PRESAMPLES

const int UHTRpacker::MASK_PRESAMPLES = 0xF
static

Definition at line 332 of file PackerHelp.h.

Referenced by newUHTR().

◆ MASK_SLOT_ID

const int UHTRpacker::MASK_SLOT_ID = 0xF
static

Definition at line 330 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_BCN

const int UHTRpacker::OFFSET_BCN = 20
static

Definition at line 320 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_CRATE_ID

const int UHTRpacker::OFFSET_CRATE_ID = 0
static

Definition at line 327 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_DATA_LENGTH

const int UHTRpacker::OFFSET_DATA_LENGTH = 0
static

Definition at line 318 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_EVENT_TYPE

const int UHTRpacker::OFFSET_EVENT_TYPE = 40
static

Definition at line 337 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_EVN

const int UHTRpacker::OFFSET_EVN = 32
static

Definition at line 322 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_FILED_BY_AMC13

const int UHTRpacker::OFFSET_FILED_BY_AMC13 = 56
static

Definition at line 324 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_FW_FLAVOR

const int UHTRpacker::OFFSET_FW_FLAVOR = 32
static

Definition at line 335 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_FW_VERSION

const int UHTRpacker::OFFSET_FW_VERSION = 48
static

Definition at line 341 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_ORN

const int UHTRpacker::OFFSET_ORN = 16
static

Definition at line 333 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_PAYLOAD_FORMAT

const int UHTRpacker::OFFSET_PAYLOAD_FORMAT = 44
static

Definition at line 339 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_PRESAMPLES

const int UHTRpacker::OFFSET_PRESAMPLES = 12
static

Definition at line 331 of file PackerHelp.h.

Referenced by newUHTR().

◆ OFFSET_SLOT_ID

const int UHTRpacker::OFFSET_SLOT_ID = 8
static

Definition at line 329 of file PackerHelp.h.

Referenced by newUHTR().

◆ uhtrs

UHTRMap UHTRpacker::uhtrs

Definition at line 315 of file PackerHelp.h.

Referenced by addChannel(), exist(), newUHTR(), and HcalDigiToRawuHTR::produce().

QIE11DataFrame::begin
constexpr edm::DataFrame::iterator begin()
iterators
Definition: QIE11DataFrame.h:72
QIE8SampleSpec::MASK_DV
static const int MASK_DV
Definition: PackerHelp.h:174
UHTRpacker::packQIE8header
uint16_t packQIE8header(const HcalQIESample &qieSample, const HcalElectronicsId &eid, int flavor)
Definition: PackerHelp.h:349
ecalMGPA::adc
constexpr int adc(sample_type sample)
get the ADC sample (12 bits)
Definition: EcalMGPASample.h:11
UHTRpacker::MASK_DATA_LENGTH
static const int MASK_DATA_LENGTH
Definition: PackerHelp.h:319
amcDumpToRaw_cfi.fwVersion
fwVersion
Definition: amcDumpToRaw_cfi.py:11
QIE8HeaderSpec::OFFSET_FIBERERR
static const int OFFSET_FIBERERR
Definition: PackerHelp.h:90
UHTRpacker::OFFSET_PAYLOAD_FORMAT
static const int OFFSET_PAYLOAD_FORMAT
Definition: PackerHelp.h:339
UHTRpacker::packQIE10header
uint16_t packQIE10header(const HcalElectronicsId &eid)
Definition: PackerHelp.h:399
QIE8SampleSpec::OFFSET_ER
static const int OFFSET_ER
Definition: PackerHelp.h:175
QIE8HeaderSpec::MASK_FLAVOR
static const int MASK_FLAVOR
Definition: PackerHelp.h:93
mps_fire.i
i
Definition: mps_fire.py:355
UHTRpacker::OFFSET_EVENT_TYPE
static const int OFFSET_EVENT_TYPE
Definition: PackerHelp.h:337
QIE10HeaderSpec::MASK_FIBER
static const int MASK_FIBER
Definition: PackerHelp.h:104
QIE11HeaderSpec3::OFFSET_FIBER
static const int OFFSET_FIBER
Definition: PackerHelp.h:137
QIE8HeaderSpec::OFFSET_FIBERCHAN
static const int OFFSET_FIBERCHAN
Definition: PackerHelp.h:84
QIE11HeaderSpec0::MASK_FLAVOR
static const int MASK_FLAVOR
Definition: PackerHelp.h:129
simplePhotonAnalyzer_cfi.sample
sample
Definition: simplePhotonAnalyzer_cfi.py:12
UHTRpacker::MASK_ORN
static const int MASK_ORN
Definition: PackerHelp.h:334
TPHeaderSpec::OFFSET_RESV
static const int OFFSET_RESV
Definition: PackerHelp.h:156
UHTRpacker::packQIE11header
uint16_t packQIE11header(const QIE11DataFrame &qiedf, const HcalElectronicsId &eid)
Definition: PackerHelp.h:416
HcalQIESample::adc
constexpr int adc() const
get the ADC sample
Definition: HcalQIESample.h:43
QIE11HeaderSpec0::MASK_HEADER_BIT
static const int MASK_HEADER_BIT
Definition: PackerHelp.h:131
QIE11DataFrame::end
constexpr edm::DataFrame::iterator end()
Definition: QIE11DataFrame.h:73
UHTRpacker::OFFSET_EVN
static const int OFFSET_EVN
Definition: PackerHelp.h:322
UHTRpacker::OFFSET_FW_FLAVOR
static const int OFFSET_FW_FLAVOR
Definition: PackerHelp.h:335
generateEDF.cont
cont
load Luminosity info ##
Definition: generateEDF.py:629
UHTRpacker::MASK_PAYLOAD_FORMAT
static const int MASK_PAYLOAD_FORMAT
Definition: PackerHelp.h:340
QIE11HeaderSpec3::MASK_FIBER
static const int MASK_FIBER
Definition: PackerHelp.h:138
QIE8SampleSpec::MASK_ADC
static const int MASK_ADC
Definition: PackerHelp.h:170
edm::SortedCollection::size
size_type size() const
Definition: SortedCollection.h:215
TPHeaderSpec::MASK_RESV
static const int MASK_RESV
Definition: PackerHelp.h:157
TPHeaderSpec::OFFSET_HEADER_BIT
static const int OFFSET_HEADER_BIT
Definition: PackerHelp.h:162
UHTRpacker::MASK_CRATE_ID
static const int MASK_CRATE_ID
Definition: PackerHelp.h:328
QIE8HeaderSpec::MASK_CAPID
static const int MASK_CAPID
Definition: PackerHelp.h:89
QIE11HeaderSpec0::OFFSET_HEADER_BIT
static const int OFFSET_HEADER_BIT
Definition: PackerHelp.h:130
QIE10HeaderSpec::MASK_LE
static const int MASK_LE
Definition: PackerHelp.h:110
HcalQIESample::er
constexpr bool er() const
is the error bit set?
Definition: HcalQIESample.h:51
UHTRpacker::OFFSET_PRESAMPLES
static const int OFFSET_PRESAMPLES
Definition: PackerHelp.h:331
QIE10HeaderSpec::MASK_FLAVOR
static const int MASK_FLAVOR
Definition: PackerHelp.h:112
QIE11HeaderSpec0::MASK_FIBERCHAN
static const int MASK_FIBERCHAN
Definition: PackerHelp.h:121
UHTRpacker::OFFSET_FILED_BY_AMC13
static const int OFFSET_FILED_BY_AMC13
Definition: PackerHelp.h:324
QIE11HeaderSpec3::MASK_FLAVOR
static const int MASK_FLAVOR
Definition: PackerHelp.h:144
UHTRpacker::MASK_SLOT_ID
static const int MASK_SLOT_ID
Definition: PackerHelp.h:330
DetId
Definition: DetId.h:17
QIE8HeaderSpec::OFFSET_FIBER
static const int OFFSET_FIBER
Definition: PackerHelp.h:86
QIE8HeaderSpec::MASK_TECHNICAL_DATA_TYPE
static const int MASK_TECHNICAL_DATA_TYPE
Definition: PackerHelp.h:97
UHTRpacker::MASK_FILED_BY_AMC13
static const int MASK_FILED_BY_AMC13
Definition: PackerHelp.h:325
QIE8SampleSpec::MASK_ER
static const int MASK_ER
Definition: PackerHelp.h:176
QIE10DataFrame::end
constexpr edm::DataFrame::iterator end()
Definition: QIE10DataFrame.h:82
QIE11HeaderSpec3::OFFSET_FLAVOR
static const int OFFSET_FLAVOR
Definition: PackerHelp.h:143
QIE10DataFrame::detid
constexpr DetId detid() const
Get the detector id.
Definition: QIE10DataFrame.h:76
TPHeaderSpec::MASK_HEADER_BIT
static const int MASK_HEADER_BIT
Definition: PackerHelp.h:163
QIE8SampleSpec::MASK_CAPID
static const int MASK_CAPID
Definition: PackerHelp.h:172
QIE10HeaderSpec::OFFSET_RESERV
static const int OFFSET_RESERV
Definition: PackerHelp.h:107
UHTRpacker::OFFSET_CRATE_ID
static const int OFFSET_CRATE_ID
Definition: PackerHelp.h:327
HcalElectronicsId
Readout chain identification for Hcal.
Definition: HcalElectronicsId.h:32
QIE11HeaderSpec0::MASK_FIBER
static const int MASK_FIBER
Definition: PackerHelp.h:123
QIE8HeaderSpec::OFFSET_TECHNICAL_DATA_TYPE
static const int OFFSET_TECHNICAL_DATA_TYPE
Definition: PackerHelp.h:96
edm::DataFrame::iterator
data_type * iterator
Definition: DataFrame.h:20
hcalTTPDigis_cfi.presamples
presamples
Definition: hcalTTPDigis_cfi.py:9
QIE10HeaderSpec::OFFSET_MP
static const int OFFSET_MP
Definition: PackerHelp.h:105
QIE10HeaderSpec::OFFSET_LE
static const int OFFSET_LE
Definition: PackerHelp.h:109
UHTRpacker::MASK_FW_VERSION
static const int MASK_FW_VERSION
Definition: PackerHelp.h:342
UHTRpacker::OFFSET_FW_VERSION
static const int OFFSET_FW_VERSION
Definition: PackerHelp.h:341
UHTRpacker::uhtrs
UHTRMap uhtrs
Definition: PackerHelp.h:315
QIE10HeaderSpec::MASK_FIBERCHAN
static const int MASK_FIBERCHAN
Definition: PackerHelp.h:102
QIE11HeaderSpec3::MASK_FIBERCHAN
static const int MASK_FIBERCHAN
Definition: PackerHelp.h:136
TPHeaderSpec::OFFSET_SOI_BIT
static const int OFFSET_SOI_BIT
Definition: PackerHelp.h:164
QIE11DataFrame::HEADER_WORDS
static const int HEADER_WORDS
Definition: QIE11DataFrame.h:14
QIE11HeaderSpec0::OFFSET_FIBER
static const int OFFSET_FIBER
Definition: PackerHelp.h:122
QIE8HeaderSpec::OFFSET_FLAVOR
static const int OFFSET_FLAVOR
Definition: PackerHelp.h:92
UHTRpacker::MASK_PRESAMPLES
static const int MASK_PRESAMPLES
Definition: PackerHelp.h:332
SiStripPI::max
Definition: SiStripPayloadInspectorHelper.h:169
QIE11HeaderSpec3::OFFSET_FIBERCHAN
static const int OFFSET_FIBERCHAN
Definition: PackerHelp.h:135
TPHeaderSpec::OFFSET_TPERR
static const int OFFSET_TPERR
Definition: PackerHelp.h:158
QIE11HeaderSpec3::MASK_HEADER_BIT
static const int MASK_HEADER_BIT
Definition: PackerHelp.h:146
QIE8HeaderSpec::MASK_FIBER
static const int MASK_FIBER
Definition: PackerHelp.h:87
QIE11HeaderSpec3::MASK_LINKERROR
static const int MASK_LINKERROR
Definition: PackerHelp.h:142
UHTRpacker::MASK_EVENT_TYPE
static const int MASK_EVENT_TYPE
Definition: PackerHelp.h:338
runTauDisplay.eid
eid
Definition: runTauDisplay.py:298
QIE10HeaderSpec::MASK_HEADER_BIT
static const int MASK_HEADER_BIT
Definition: PackerHelp.h:114
QIE10HeaderSpec::OFFSET_FLAVOR
static const int OFFSET_FLAVOR
Definition: PackerHelp.h:111
QIE10HeaderSpec::OFFSET_HEADER_BIT
static const int OFFSET_HEADER_BIT
Definition: PackerHelp.h:113
HcalQIESample::capid
constexpr int capid() const
get the Capacitor id
Definition: HcalQIESample.h:47
QIE11HeaderSpec0::MASK_FIBERERR
static const int MASK_FIBERERR
Definition: PackerHelp.h:127
TPHeaderSpec::MASK_TPERR
static const int MASK_TPERR
Definition: PackerHelp.h:159
QIE11HeaderSpec3::OFFSET_MP
static const int OFFSET_MP
Definition: PackerHelp.h:139
QIE11HeaderSpec3::MASK_MP
static const int MASK_MP
Definition: PackerHelp.h:140
UHTRpacker::MASK_EVN
static const int MASK_EVN
Definition: PackerHelp.h:323
QIE11HeaderSpec0::OFFSET_FLAVOR
static const int OFFSET_FLAVOR
Definition: PackerHelp.h:128
QIE11HeaderSpec0::OFFSET_CAPID
static const int OFFSET_CAPID
Definition: PackerHelp.h:124
QIE8SampleSpec::OFFSET_DV
static const int OFFSET_DV
Definition: PackerHelp.h:173
QIE11DataFrame::detid
constexpr DetId detid() const
Get the detector id.
Definition: QIE11DataFrame.h:67
QIE11HeaderSpec3::OFFSET_LINKERROR
static const int OFFSET_LINKERROR
Definition: PackerHelp.h:141
QIE11HeaderSpec3::OFFSET_HEADER_BIT
static const int OFFSET_HEADER_BIT
Definition: PackerHelp.h:145
hcalcalib_dqm_sourceclient-live_cfg.eventType
eventType
Definition: hcalcalib_dqm_sourceclient-live_cfg.py:200
HcalQIESample::dv
constexpr bool dv() const
is the Data Valid bit set?
Definition: HcalQIESample.h:49
QIE10HeaderSpec::MASK_RESERV
static const int MASK_RESERV
Definition: PackerHelp.h:108
TPHeaderSpec::OFFSET_FLAVOR
static const int OFFSET_FLAVOR
Definition: PackerHelp.h:160
TPHeaderSpec::OFFSET_CHANID
static const int OFFSET_CHANID
Definition: PackerHelp.h:154
UHTRpacker::uhtrData
std::vector< uint16_t > uhtrData
Definition: PackerHelp.h:312
QIE8HeaderSpec::OFFSET_CAPID
static const int OFFSET_CAPID
Definition: PackerHelp.h:88
HcalElectronicsMap::lookup
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id
Definition: HcalElectronicsMap.cc:70
QIE8HeaderSpec::MASK_FIBERCHAN
static const int MASK_FIBERCHAN
Definition: PackerHelp.h:85
UHTRpacker::OFFSET_ORN
static const int OFFSET_ORN
Definition: PackerHelp.h:333
UHTRpacker::OFFSET_BCN
static const int OFFSET_BCN
Definition: PackerHelp.h:320
TPHeaderSpec::MASK_FLAVOR
static const int MASK_FLAVOR
Definition: PackerHelp.h:161
UHTRpacker::packTPheader
uint16_t packTPheader(const HcalTriggerPrimitiveSample &tpSample, int channelid)
Definition: PackerHelp.h:387
QIE11DataFrame::flavor
constexpr int flavor() const
get the flavor of the frame
Definition: QIE11DataFrame.h:87
QIE11HeaderSpec0::OFFSET_FIBERCHAN
static const int OFFSET_FIBERCHAN
Definition: PackerHelp.h:120
UHTRpacker::OFFSET_DATA_LENGTH
static const int OFFSET_DATA_LENGTH
Definition: PackerHelp.h:318
UHTRpacker::OFFSET_SLOT_ID
static const int OFFSET_SLOT_ID
Definition: PackerHelp.h:329
UHTRpacker::packQIE8sample
uint16_t packQIE8sample(const HcalQIESample &qieSample)
Definition: PackerHelp.h:371
TPHeaderSpec::MASK_SOI_BIT
static const int MASK_SOI_BIT
Definition: PackerHelp.h:165
QIE10DataFrame::begin
constexpr edm::DataFrame::iterator begin()
iterators
Definition: QIE10DataFrame.h:81
UHTRpacker::MASK_FW_FLAVOR
static const int MASK_FW_FLAVOR
Definition: PackerHelp.h:336
QIE11HeaderSpec0::MASK_CAPID
static const int MASK_CAPID
Definition: PackerHelp.h:125
QIE8SampleSpec::OFFSET_CAPID
static const int OFFSET_CAPID
Definition: PackerHelp.h:171
QIE10HeaderSpec::MASK_MP
static const int MASK_MP
Definition: PackerHelp.h:106
QIE8SampleSpec::OFFSET_ADC
static const int OFFSET_ADC
Definition: PackerHelp.h:169
RecoTauValidation_cfi.header
header
Definition: RecoTauValidation_cfi.py:292
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
TPHeaderSpec::MASK_CHANID
static const int MASK_CHANID
Definition: PackerHelp.h:155
QIE8HeaderSpec::OFFSET_HEADER_BIT
static const int OFFSET_HEADER_BIT
Definition: PackerHelp.h:94
HLT_2018_cff.toAdd
toAdd
Definition: HLT_2018_cff.py:50595
QIE10DataFrame::FLAG_WORDS
static const int FLAG_WORDS
Definition: QIE10DataFrame.h:15
QIE8HeaderSpec::MASK_FIBERERR
static const int MASK_FIBERERR
Definition: PackerHelp.h:91
QIE10DataFrame::HEADER_WORDS
static const int HEADER_WORDS
Definition: QIE10DataFrame.h:14
QIE10HeaderSpec::OFFSET_FIBERCHAN
static const int OFFSET_FIBERCHAN
Definition: PackerHelp.h:101
QIE10HeaderSpec::OFFSET_FIBER
static const int OFFSET_FIBER
Definition: PackerHelp.h:103
QIE11DataFrame::FLAG_WORDS
static const int FLAG_WORDS
Definition: QIE11DataFrame.h:15
UHTRpacker::MASK_BCN
static const int MASK_BCN
Definition: PackerHelp.h:321
QIE11HeaderSpec0::OFFSET_FIBERERR
static const int OFFSET_FIBERERR
Definition: PackerHelp.h:126
QIE8HeaderSpec::MASK_HEADER_BIT
static const int MASK_HEADER_BIT
Definition: PackerHelp.h:95