#include <EcalElectronicsMapper.h>
Public Types | |
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, TTMAPMASK = 100 } |
Public Member Functions | |
void | deletePointers () |
EcalElectronicsMapper (unsigned int numbOfXtalTSamples, unsigned int numbOfTriggerTSamples) | |
unsigned int | getActiveDCC () |
unsigned int | getActiveSM () |
unsigned int | getDCCId (unsigned int aSMId) const |
const std::map< unsigned int, unsigned int > & | getDCCMap () const |
std::string | getDCCMapFilePath () const |
DetId * | getDetIdPointer (unsigned int feChannel, unsigned int strip, unsigned int xtal) |
unsigned int | getEBTCCBlockLength () |
unsigned int | getEETCCBlockLength () |
unsigned int | getNumChannelsInDcc (unsigned int aDCCId) |
EcalPseudoStripInputDigi * | getPSInputDigiPointer (unsigned int tccId, unsigned int towerId, unsigned int psId) |
EcalPseudoStripInputDigi * | getPSInputDigiPointer (unsigned int tccId, unsigned int psCounter) |
EcalScDetId * | getSCDetIdPointer (unsigned int smId, unsigned int feChannel) |
EcalElectronicsId * | getSCElectronicsPointer (unsigned int smId, unsigned int feChannel) |
unsigned int | getSMId (unsigned int aDCCId) const |
std::vector< EcalSrFlag * > | getSrFlagPointer (unsigned int feChannel) |
unsigned int | getSRPBlockLength () |
std::vector< unsigned int > * | getTccs (unsigned int smId) |
EcalTriggerPrimitiveDigi * | getTPPointer (unsigned int tccId, unsigned int tower) |
EcalTrigTowerDetId * | getTTDetIdPointer (unsigned int tccId, unsigned int tower) |
EcalElectronicsId * | getTTEleIdPointer (unsigned int tccId, unsigned int tower) |
unsigned int | getUnfilteredTowerBlockLength () |
bool | isGhost (const int FED, const int CCU, const int VFE) |
bool | isTCCExternal (unsigned int TCCId) |
bool | makeMapFromVectors (std::vector< int > &, std::vector< int > &) |
const EcalElectronicsMapping * | mapping () |
unsigned int | numbTriggerTSamples () |
unsigned int | numbXtalTSamples () |
void | resetPointers () |
bool | setActiveDCC (unsigned int dccId) |
bool | setDCCMapFilePath (std::string) |
void | setEcalElectronicsMapping (const EcalElectronicsMapping *) |
~EcalElectronicsMapper () | |
Private Member Functions | |
unsigned int | computeEBTCCBlockLength () |
unsigned int | computeEETCCBlockLength () |
unsigned int | computeUnfilteredFEBlockLength () |
void | fillMaps () |
void | setupGhostMap () |
Static Private Attributes | |
static const unsigned int | numChannelsInDcc_ [NUMB_SM] |
Friends | |
std::ostream & | operator<< (std::ostream &o, const EcalElectronicsMapper &aEcalElectronicsMapper) |
Definition at line 34 of file EcalElectronicsMapper.h.
Enumerator | |
---|---|
kModules | |
kTriggerTowers | |
kTowersInPhi | |
kTowersInEta | |
kCrystals | |
kPns | |
kCrystalsInPhi | |
kCrystalsInEta | |
kCrystalsPerTower | |
kCardsPerTower | |
kChannelsPerCard | |
TTMAPMASK |
Definition at line 156 of file EcalElectronicsMapper.h.
EcalElectronicsMapper::EcalElectronicsMapper | ( | unsigned int | numbOfXtalTSamples, |
unsigned int | numbOfTriggerTSamples | ||
) |
Constructor
Definition at line 9 of file EcalElectronicsMapper.cc.
References resetPointers(), and setupGhostMap().
EcalElectronicsMapper::~EcalElectronicsMapper | ( | ) |
|
private |
Definition at line 375 of file EcalElectronicsMapper.cc.
References l1trig_cff::nTT, and numbTriggerTSamples_.
Referenced by resetPointers().
|
private |
Definition at line 388 of file EcalElectronicsMapper.cc.
Referenced by resetPointers().
|
private |
Definition at line 371 of file EcalElectronicsMapper.cc.
References numbXtalTSamples_.
Referenced by resetPointers().
void EcalElectronicsMapper::deletePointers | ( | ) |
Definition at line 199 of file EcalElectronicsMapper.cc.
References mps_fire::i, mapSmIdToTccIds_, NUMB_FE, NUMB_SM, NUMB_STRIP, NUMB_TCC, NUMB_XTAL, pathToMapFile_, psInput_, scEleIds_, srFlags_, nano_mu_digi_cff::strip, TCC_EB_NUMBTTS, ttDetIds_, ttEleIds_, ttTPIds_, and xtalDetIds_.
Referenced by EcalRawToDigi::produce(), and ~EcalElectronicsMapper().
|
private |
Definition at line 432 of file EcalElectronicsMapper.cc.
References cms::cuda::assert(), EcalElectronicsMapping::dccTowerConstituents(), hcalRecHitTable_cff::detId, CollectionTags_cfi::EBSrFlag, CollectionTags_cfi::EESrFlag, runTauDisplay::eid, EcalElectronicsMapping::getDetId(), EcalElectronicsMapping::getEcalScDetId(), EcalElectronicsMapping::getElectronicsId(), EcalElectronicsMapping::getTriggerElectronicsId(), EcalElectronicsMapping::getTrigTowerDetId(), mps_fire::i, EcalTrigTowerDetId::kEBTowersPerSM, mappingBuilder_, mapSmIdToTccIds_, MAX_CCUID_JUMP, EcalTriggerElectronicsId::MAX_TCCID, EcalTriggerElectronicsId::MAX_TCCID_EEM, EcalTriggerElectronicsId::MAX_TCCID_EEP, MIN_CCUID_JUMP, EcalTriggerElectronicsId::MIN_TCCID_EEM, EcalTriggerElectronicsId::MIN_TCCID_EEP, numbTriggerTSamples_, numChannelsInDcc_, psInput_, nano_mu_digi_cff::rawId, DetId::rawId(), scEleIds_, SECTOR_EEM_CCU_JUMP, SECTOR_EEP_CCU_JUMP, EcalPseudoStripInputDigi::setSample(), EcalPseudoStripInputDigi::setSize(), findQualityFiles::size, srFlags_, EcalElectronicsId::stripId(), EcalElectronicsMapping::tccConstituents(), ecaldqm::tccId(), TCCID_SMID_SHIFT_EB, ecaldqm::towerId(), cmsswSequenceInfo::tp, groupFilesInBlocks::tt, tTandPs_, ttDetIds_, ttEleIds_, ecaldqm::ttId(), ttTPIds_, xtalDetIds_, and EcalElectronicsId::xtalId().
Referenced by setEcalElectronicsMapping().
|
inline |
Definition at line 124 of file EcalElectronicsMapper.h.
References dccId_.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), DCCEBSRPBlock::checkSrpIdAndNumbSRFlags(), DCCEESRPBlock::checkSrpIdAndNumbSRFlags(), DCCEETCCBlock::checkTccIdAndNumbTTs(), DCCEBTCCBlock::checkTccIdAndNumbTTs(), DCCSRPBlock::unpack(), DCCFEBlock::unpack(), DCCMemBlock::unpack(), DCCTCCBlock::unpack(), DCCMemBlock::unpackMemTowerData(), DCCSCBlock::unpackXtalData(), and DCCTowerBlock::unpackXtalData().
|
inline |
Definition at line 126 of file EcalElectronicsMapper.h.
References smId_.
Referenced by DCCEventBlock::addHeaderToCollection(), DCCEBSRPBlock::addSRFlagToCollection(), DCCEBTCCBlock::addTriggerPrimitivesToCollection(), DCCEETCCBlock::checkTccIdAndNumbTTs(), DCCEBTCCBlock::checkTccIdAndNumbTTs(), DCCSCBlock::fillEcalElectronicsError(), DCCTowerBlock::fillEcalElectronicsError(), DCCMemBlock::fillPnDiodeDigisCollection(), EcalRawToDigi::produce(), DCCFEBlock::unpack(), DCCMemBlock::unpack(), and DCCMemBlock::unpackMemTowerData().
unsigned int EcalElectronicsMapper::getDCCId | ( | unsigned int | aSMId | ) | const |
Definition at line 401 of file EcalElectronicsMapper.cc.
References caHitNtupletGeneratorKernels::if(), myDCCMap_, and DCCDataUnpacker::silentMode_.
Referenced by printStatusRecords().
|
inline |
Get methods for DCCId/SMId and map
Definition at line 82 of file EcalElectronicsMapper.h.
References myDCCMap_.
|
inline |
Retrieves current path do the map file
Definition at line 64 of file EcalElectronicsMapper.h.
References pathToMapFile_.
|
inline |
Definition at line 84 of file EcalElectronicsMapper.h.
References smId_, nano_mu_digi_cff::strip, and xtalDetIds_.
Referenced by DCCSCBlock::unpackXtalData(), and DCCTowerBlock::unpackXtalData().
|
inline |
Definition at line 134 of file EcalElectronicsMapper.h.
References ebTccBlockLength_.
Referenced by DCCEBTCCBlock::DCCEBTCCBlock().
|
inline |
Definition at line 136 of file EcalElectronicsMapper.h.
References eeTccBlockLength_.
|
inline |
Definition at line 144 of file EcalElectronicsMapper.h.
References numChannelsInDcc_.
Referenced by DCCFEBlock::unpack().
|
inline |
Definition at line 108 of file EcalElectronicsMapper.h.
References psInput_, ecaldqm::tccId(), and ecaldqm::towerId().
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), and getPSInputDigiPointer().
|
inline |
Definition at line 112 of file EcalElectronicsMapper.h.
References getPSInputDigiPointer(), ecaldqm::tccId(), and tTandPs_.
|
inline |
Definition at line 100 of file EcalElectronicsMapper.h.
References scDetIds_.
|
inline |
Definition at line 104 of file EcalElectronicsMapper.h.
References scEleIds_.
Referenced by DCCSCBlock::fillEcalElectronicsError().
unsigned int EcalElectronicsMapper::getSMId | ( | unsigned int | aDCCId | ) | const |
Definition at line 416 of file EcalElectronicsMapper.cc.
References myDCCMap_, and DCCDataUnpacker::silentMode_.
Referenced by DCCDataUnpacker::getCCUValue(), DCCDataUnpacker::getChannelValue(), and setActiveDCC().
|
inline |
Definition at line 120 of file EcalElectronicsMapper.h.
References smId_, and srFlags_.
Referenced by DCCEBSRPBlock::addSRFlagToCollection(), and DCCEESRPBlock::addSRFlagToCollection().
|
inline |
Definition at line 138 of file EcalElectronicsMapper.h.
References srpBlockLength_.
|
inline |
Definition at line 122 of file EcalElectronicsMapper.h.
References mapSmIdToTccIds_.
Referenced by DCCEETCCBlock::checkTccIdAndNumbTTs().
|
inline |
Definition at line 96 of file EcalElectronicsMapper.h.
References ecaldqm::tccId(), l1tHGCalTowerProducer_cfi::tower, and ttTPIds_.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), and DCCEBTCCBlock::addTriggerPrimitivesToCollection().
|
inline |
Definition at line 88 of file EcalElectronicsMapper.h.
References ecaldqm::tccId(), l1tHGCalTowerProducer_cfi::tower, and ttDetIds_.
|
inline |
Definition at line 92 of file EcalElectronicsMapper.h.
References ecaldqm::tccId(), l1tHGCalTowerProducer_cfi::tower, and ttEleIds_.
Referenced by DCCTowerBlock::fillEcalElectronicsError().
|
inline |
Definition at line 132 of file EcalElectronicsMapper.h.
References unfilteredFEBlockLength_.
Referenced by DCCFEBlock::DCCFEBlock(), and DCCMemBlock::DCCMemBlock().
bool EcalElectronicsMapper::isGhost | ( | const int | FED, |
const int | CCU, | ||
const int | VFE | ||
) |
Definition at line 689 of file EcalElectronicsMapper.cc.
References spr::find(), and ghost_.
Referenced by DCCSCBlock::unpackXtalData().
bool EcalElectronicsMapper::isTCCExternal | ( | unsigned int | TCCId | ) |
Definition at line 393 of file EcalElectronicsMapper.cc.
References NUMB_TCC_EE_MIN_EXT_MAX, NUMB_TCC_EE_MIN_EXT_MIN, NUMB_TCC_EE_PLU_EXT_MAX, and NUMB_TCC_EE_PLU_EXT_MIN.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection().
bool EcalElectronicsMapper::makeMapFromVectors | ( | std::vector< int > & | orderedFedUnpackList, |
std::vector< int > & | orderedDCCIdList | ||
) |
Read map file (returns false if an error ocurred) deprecated by HLT environment HLT friendly: load default mapping or, for non standatd mapping, use 2 vectors from cfg
Definition at line 315 of file EcalElectronicsMapper.cc.
References createfilelist::int, myDCCMap_, ecalcalib_dqm_sourceclient-live_cfg::orderedDCCIdList, AlCaHLTBitMon_QueryRunRegistry::string, createJobs::tmp, and findQualityFiles::v.
Referenced by EcalRawToDigi::EcalRawToDigi().
|
inline |
Definition at line 146 of file EcalElectronicsMapper.h.
References mappingBuilder_.
Referenced by DCCDataUnpacker::getCCUValue(), and DCCDataUnpacker::getChannelValue().
|
inline |
Definition at line 130 of file EcalElectronicsMapper.h.
References numbTriggerTSamples_.
|
inline |
Definition at line 128 of file EcalElectronicsMapper.h.
References numbXtalTSamples_.
Referenced by DCCFEBlock::DCCFEBlock(), DCCMemBlock::DCCMemBlock(), and DCCEventBlock::next_tower_search().
void EcalElectronicsMapper::resetPointers | ( | ) |
Definition at line 18 of file EcalElectronicsMapper.cc.
References computeEBTCCBlockLength(), computeEETCCBlockLength(), computeUnfilteredFEBlockLength(), ebTccBlockLength_, eeTccBlockLength_, EcalTrigTowerDetId::kEBTowersPerSM, mapSmIdToTccIds_, EcalTriggerElectronicsId::MAX_TCCID, NUMB_FE, NUMB_SM, NUMB_STRIP, NUMB_TCC, NUMB_XTAL, psInput_, scEleIds_, nano_mu_digi_cff::strip, TCC_EB_NUMBTTS, ecaldqm::tccId(), tTandPs_, ttDetIds_, ttEleIds_, ttTPIds_, unfilteredFEBlockLength_, and xtalDetIds_.
Referenced by EcalElectronicsMapper(), and EcalRawToDigi::produce().
bool EcalElectronicsMapper::setActiveDCC | ( | unsigned int | dccId | ) |
Set DCC id that is going to be unpacked for the event
Definition at line 253 of file EcalElectronicsMapper.cc.
References ecaldqm::dccId(), dccId_, getSMId(), runTheMatrix::ret, and smId_.
Referenced by EcalRawToDigi::produce().
bool EcalElectronicsMapper::setDCCMapFilePath | ( | std::string | aPath_ | ) |
Receives a string with a path and checks if file is accessible
Definition at line 267 of file EcalElectronicsMapper.cc.
References pathToMapFile_.
void EcalElectronicsMapper::setEcalElectronicsMapping | ( | const EcalElectronicsMapping * | m | ) |
Definition at line 248 of file EcalElectronicsMapper.cc.
References fillMaps(), visualization-live-secondInstance_cfg::m, and mappingBuilder_.
Referenced by EcalRawToDigi::produce().
|
private |
Definition at line 669 of file EcalElectronicsMapper.cc.
References ghost_, mps_fire::i, dqmiodumpmetadata::n, and findQualityFiles::v.
Referenced by EcalElectronicsMapper().
|
friend |
|
private |
Definition at line 187 of file EcalElectronicsMapper.h.
Referenced by getActiveDCC(), and setActiveDCC().
|
private |
Definition at line 195 of file EcalElectronicsMapper.h.
Referenced by getEBTCCBlockLength(), and resetPointers().
|
private |
Definition at line 195 of file EcalElectronicsMapper.h.
Referenced by getEETCCBlockLength(), and resetPointers().
|
private |
Definition at line 221 of file EcalElectronicsMapper.h.
Referenced by isGhost(), and setupGhostMap().
|
private |
Definition at line 211 of file EcalElectronicsMapper.h.
Referenced by fillMaps(), mapping(), and setEcalElectronicsMapping().
|
private |
Definition at line 185 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTccs(), and resetPointers().
|
private |
Definition at line 183 of file EcalElectronicsMapper.h.
Referenced by getDCCId(), getDCCMap(), getSMId(), makeMapFromVectors(), and operator<<().
|
private |
Definition at line 181 of file EcalElectronicsMapper.h.
Referenced by computeEBTCCBlockLength(), fillMaps(), and numbTriggerTSamples().
|
private |
Definition at line 179 of file EcalElectronicsMapper.h.
Referenced by computeUnfilteredFEBlockLength(), and numbXtalTSamples().
|
staticprivate |
Definition at line 197 of file EcalElectronicsMapper.h.
Referenced by fillMaps(), and getNumChannelsInDcc().
|
private |
Definition at line 177 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), getDCCMapFilePath(), operator<<(), and setDCCMapFilePath().
|
private |
Definition at line 207 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getPSInputDigiPointer(), and resetPointers().
|
private |
Definition at line 201 of file EcalElectronicsMapper.h.
Referenced by getSCDetIdPointer().
|
private |
Definition at line 202 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getSCElectronicsPointer(), and resetPointers().
|
private |
Definition at line 189 of file EcalElectronicsMapper.h.
Referenced by getActiveSM(), getDetIdPointer(), getSrFlagPointer(), and setActiveDCC().
|
private |
Definition at line 206 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), and getSrFlagPointer().
|
private |
Definition at line 193 of file EcalElectronicsMapper.h.
Referenced by getSRPBlockLength().
|
private |
Definition at line 209 of file EcalElectronicsMapper.h.
Referenced by fillMaps(), getPSInputDigiPointer(), and resetPointers().
|
private |
Definition at line 203 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTTDetIdPointer(), and resetPointers().
|
private |
Definition at line 204 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTTEleIdPointer(), and resetPointers().
|
private |
Definition at line 205 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTPPointer(), and resetPointers().
|
private |
Definition at line 191 of file EcalElectronicsMapper.h.
Referenced by getUnfilteredTowerBlockLength(), and resetPointers().
|
private |
Definition at line 200 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getDetIdPointer(), and resetPointers().