#include <EcalTBDaqFormatter.h>
Public Member Functions | |
EcalTBDaqFormatter () | |
void | interpretRawData (const FEDRawData &data, EBDigiCollection &digicollection, EcalPnDiodeDigiCollection &pndigicollection, EcalRawDataCollection &DCCheaderCollection, EBDetIdCollection &dccsizecollection, EcalElectronicsIdCollection &ttidcollection, EcalElectronicsIdCollection &blocksizecollection, EBDetIdCollection &chidcollection, EBDetIdCollection &gaincollection, EBDetIdCollection &gainswitchcollection, EcalElectronicsIdCollection &memttidcollection, EcalElectronicsIdCollection &memblocksizecollection, EcalElectronicsIdCollection &memgaincollection, EcalElectronicsIdCollection &memchidcollection, EcalTrigPrimDigiCollection &tpcollection) |
virtual | ~EcalTBDaqFormatter () |
Private Types | |
enum | SMElectronics_t { kSamplesPerChannel = 10, kSamplesPerPn = 50, kChannelsPerTower = 25, kStripsPerTower = 5, kChannelsPerStrip = 5, kPnPerTowerBlock = 5, kTriggerTowersAndMem = 70 } |
enum | SMGeom_t { kModules = 4, kTriggerTowers = 68, kTowersInPhi = 4, kTowersInEta = 17, kCrystals = 1700, kPns = 10, kCrystalsInPhi = 20, kCrystalsInEta = 85, kCrystalsPerTower = 25, kCardsPerTower = 5, kChannelsPerCard = 5 } |
Private Member Functions | |
std::pair< int, int > | cellIndex (int tower_id, int strip, int xtal) |
int | cryIc (int tower_id, int strip, int xtal) |
void | DecodeMEM (DCCTBTowerBlock *towerblock, EcalPnDiodeDigiCollection &pndigicollection, EcalElectronicsIdCollection &memttidcollection, EcalElectronicsIdCollection &memblocksizecollection, EcalElectronicsIdCollection &memgaincollection, EcalElectronicsIdCollection &memchidcollection) |
bool | leftTower (int tower) const |
bool | rightTower (int tower) const |
Private Attributes | |
unsigned | _ExpectedTowers [71] |
unsigned | _expTowersIndex |
unsigned | _numExpectedTowers |
int | data_MEM [500] |
int | memRawSample_ [kStripsPerTower][kChannelsPerStrip][kSamplesPerChannel+1] |
bool | pnAllocated |
bool | pnIsOkInBlock [kPnPerTowerBlock] |
DCCTBDataParser * | theParser_ |
Definition at line 26 of file EcalTBDaqFormatter.h.
|
private |
Enumerator | |
---|---|
kSamplesPerChannel | |
kSamplesPerPn | |
kChannelsPerTower | |
kStripsPerTower | |
kChannelsPerStrip | |
kPnPerTowerBlock | |
kTriggerTowersAndMem |
Definition at line 80 of file EcalTBDaqFormatter.h.
|
private |
Enumerator | |
---|---|
kModules | |
kTriggerTowers | |
kTowersInPhi | |
kTowersInEta | |
kCrystals | |
kPns | |
kCrystalsInPhi | |
kCrystalsInEta | |
kCrystalsPerTower | |
kCardsPerTower | |
kChannelsPerCard |
Definition at line 66 of file EcalTBDaqFormatter.h.
EcalTBDaqFormatter::EcalTBDaqFormatter | ( | ) |
Definition at line 30 of file EcalTBDaqFormatter.cc.
References LogDebug, and theParser_.
|
inlinevirtual |
Definition at line 29 of file EcalTBDaqFormatter.h.
References cellIndex(), cryIc(), data, DecodeMEM(), interpretRawData(), leftTower(), LogDebug, rightTower(), digitizers_cfi::strip, and hgcalTowerProducer_cfi::tower.
|
private |
Definition at line 723 of file EcalTBDaqFormatter.cc.
References PVValHelper::eta, kCardsPerTower, kChannelsPerCard, kCrystalsPerTower, kTowersInPhi, phi, and rightTower().
Referenced by cryIc(), and ~EcalTBDaqFormatter().
|
private |
Definition at line 751 of file EcalTBDaqFormatter.cc.
References cellIndex(), kCrystalsInPhi, and hgcalTowerProducer_cfi::tower.
Referenced by interpretRawData(), and ~EcalTBDaqFormatter().
|
private |
Definition at line 525 of file EcalTBDaqFormatter.cc.
References _ExpectedTowers, _expTowersIndex, edm::EDCollection< T >::begin(), data_MEM, edm::EDCollection< T >::empty(), edm::EDCollection< T >::end(), cuy::ib, triggerObjects_cff::id, kChannelsPerStrip, kChannelsPerTower, kPnPerTowerBlock, kSamplesPerChannel, kSamplesPerPn, kStripsPerTower, LogDebug, memRawSample_, pnIsOkInBlock, edm::EDCollection< T >::push_back(), edm::SortedCollection< T, SORT >::push_back(), simplePhotonAnalyzer_cfi::sample, EcalPnDiodeDigi::setSample(), EcalPnDiodeDigi::setSize(), digitizers_cfi::strip, DCCTBTowerBlock::towerID(), and DCCTBTowerBlock::xtalBlocks().
Referenced by interpretRawData(), and ~EcalTBDaqFormatter().
void EcalTBDaqFormatter::interpretRawData | ( | const FEDRawData & | data, |
EBDigiCollection & | digicollection, | ||
EcalPnDiodeDigiCollection & | pndigicollection, | ||
EcalRawDataCollection & | DCCheaderCollection, | ||
EBDetIdCollection & | dccsizecollection, | ||
EcalElectronicsIdCollection & | ttidcollection, | ||
EcalElectronicsIdCollection & | blocksizecollection, | ||
EBDetIdCollection & | chidcollection, | ||
EBDetIdCollection & | gaincollection, | ||
EBDetIdCollection & | gainswitchcollection, | ||
EcalElectronicsIdCollection & | memttidcollection, | ||
EcalElectronicsIdCollection & | memblocksizecollection, | ||
EcalElectronicsIdCollection & | memgaincollection, | ||
EcalElectronicsIdCollection & | memchidcollection, | ||
EcalTrigPrimDigiCollection & | tpcollection | ||
) |
Definition at line 47 of file EcalTBDaqFormatter.cc.
References _ExpectedTowers, _expTowersIndex, _numExpectedTowers, edm::DataFrameContainer::back(), edmScanValgrind::buffer, cryIc(), FEDRawData::data(), DCCTBDataParser::dccEvents(), EcalDCCTBHeaderRuntypeDecoder::Decode(), DecodeMEM(), EcalBarrel, l1tstage2_dqm_sourceclient-live_cfg::fedId, dqmdumpme::first, mps_fire::i, testProducerWithPsetDescEmpty_cfi::i1, triggerObjects_cff::id, createfilelist::int, kChannelsPerCard, kChannelsPerStrip, kChannelsPerTower, kCrystals, kPns, kStripsPerTower, kTowersInPhi, kTriggerTowers, kTriggerTowersAndMem, LogDebug, MAX_TCC_SIZE, MAX_TT_SIZE, DCCTBDataParser::parseBuffer(), pnAllocated, edm::DataFrameContainer::pop_back(), edm::EDCollection< T >::push_back(), EBDigiCollection::push_back(), edm::SortedCollection< T, SORT >::push_back(), edm::DataFrameContainer::reserve(), edm::SortedCollection< T, SORT >::reserve(), edm::second(), EcalDCCHeaderBlock::setBasicTriggerType(), EcalDCCHeaderBlock::setBX(), EcalDCCHeaderBlock::setErrors(), EcalDCCHeaderBlock::setFedId(), EcalDCCHeaderBlock::setFEStatus(), EcalDCCHeaderBlock::setId(), EcalDCCHeaderBlock::setLV1(), EcalDCCHeaderBlock::setOrbit(), EcalDCCHeaderBlock::setRunNumber(), EcalTriggerPrimitiveDigi::setSample(), EcalDataFrame::setSample(), EcalDCCHeaderBlock::setSelectiveReadout(), EcalTriggerPrimitiveDigi::setSize(), EcalDCCHeaderBlock::setSrpStatus(), EcalDCCHeaderBlock::setTccStatus(), EcalDCCHeaderBlock::setTestZeroSuppression(), EcalDCCHeaderBlock::setZeroSuppression(), FEDRawData::size(), AlCaHLTBitMon_QueryRunRegistry::string, digitizers_cfi::strip, theParser_, hgcalTowerProducer_cfi::tower, and findQualityFiles::v.
Referenced by EcalDCCTBUnpackingModule::produce(), and ~EcalTBDaqFormatter().
|
private |
Definition at line 771 of file EcalTBDaqFormatter.cc.
References rightTower().
Referenced by ~EcalTBDaqFormatter().
|
private |
Definition at line 763 of file EcalTBDaqFormatter.cc.
Referenced by cellIndex(), leftTower(), and ~EcalTBDaqFormatter().
|
private |
Definition at line 92 of file EcalTBDaqFormatter.h.
Referenced by DecodeMEM(), and interpretRawData().
|
private |
Definition at line 93 of file EcalTBDaqFormatter.h.
Referenced by DecodeMEM(), and interpretRawData().
|
private |
Definition at line 91 of file EcalTBDaqFormatter.h.
Referenced by interpretRawData().
|
private |
Definition at line 97 of file EcalTBDaqFormatter.h.
Referenced by DecodeMEM().
|
private |
Definition at line 96 of file EcalTBDaqFormatter.h.
Referenced by DecodeMEM().
|
private |
Definition at line 98 of file EcalTBDaqFormatter.h.
Referenced by interpretRawData().
|
private |
Definition at line 99 of file EcalTBDaqFormatter.h.
Referenced by DecodeMEM().
|
private |
Definition at line 64 of file EcalTBDaqFormatter.h.
Referenced by EcalTBDaqFormatter(), and interpretRawData().