#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 39 of file EcalElectronicsMapper.h.
Enumerator | |
---|---|
kModules | |
kTriggerTowers | |
kTowersInPhi | |
kTowersInEta | |
kCrystals | |
kPns | |
kCrystalsInPhi | |
kCrystalsInEta | |
kCrystalsPerTower | |
kCardsPerTower | |
kChannelsPerCard | |
TTMAPMASK |
Definition at line 155 of file EcalElectronicsMapper.h.
EcalElectronicsMapper::EcalElectronicsMapper | ( | unsigned int | numbOfXtalTSamples, |
unsigned int | numbOfTriggerTSamples | ||
) |
Constructor
Definition at line 8 of file EcalElectronicsMapper.cc.
References resetPointers(), and setupGhostMap().
EcalElectronicsMapper::~EcalElectronicsMapper | ( | ) |
|
private |
Definition at line 350 of file EcalElectronicsMapper.cc.
References nTT, and numbTriggerTSamples_.
Referenced by resetPointers().
|
private |
Definition at line 363 of file EcalElectronicsMapper.cc.
Referenced by resetPointers().
|
private |
Definition at line 343 of file EcalElectronicsMapper.cc.
References numbXtalTSamples_.
Referenced by resetPointers().
void EcalElectronicsMapper::deletePointers | ( | ) |
Definition at line 153 of file EcalElectronicsMapper.cc.
References mps_fire::i, mapSmIdToTccIds_, NUMB_FE, NUMB_SM, NUMB_STRIP, NUMB_TCC, NUMB_XTAL, pathToMapFile_, psInput_, scEleIds_, srFlags_, digitizers_cfi::strip, TCC_EB_NUMBTTS, ttDetIds_, ttEleIds_, ttTPIds_, and xtalDetIds_.
Referenced by ~EcalElectronicsMapper().
|
private |
Definition at line 411 of file EcalElectronicsMapper.cc.
References EcalElectronicsMapping::dccTowerConstituents(), runTauDisplay::eid, EcalElectronicsMapping::getDetId(), EcalElectronicsMapping::getEcalScDetId(), EcalElectronicsMapping::getElectronicsId(), EcalElectronicsMapping::getTriggerElectronicsId(), EcalElectronicsMapping::getTrigTowerDetId(), mps_fire::i, photons_cff::ids, 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_, DetId::rawId(), scEleIds_, SECTOR_EEM_CCU_JUMP, SECTOR_EEP_CCU_JUMP, EcalPseudoStripInputDigi::setSample(), EcalTriggerPrimitiveDigi::setSample(), EcalPseudoStripInputDigi::setSize(), EcalTriggerPrimitiveDigi::setSize(), findQualityFiles::size, srFlags_, EcalElectronicsId::stripId(), EcalElectronicsMapping::tccConstituents(), ecaldqm::tccId(), TCCID_SMID_SHIFT_EB, DataFormats::L1THGCal::towerId, groupFilesInBlocks::tt, tTandPs_, ttDetIds_, ttEleIds_, ecaldqm::ttId(), ttTPIds_, xtalDetIds_, and EcalElectronicsId::xtalId().
Referenced by setEcalElectronicsMapping().
|
inline |
Definition at line 122 of file EcalElectronicsMapper.h.
References dccId_.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), DCCEESRPBlock::checkSrpIdAndNumbSRFlags(), DCCEBSRPBlock::checkSrpIdAndNumbSRFlags(), DCCEETCCBlock::checkTccIdAndNumbTTs(), DCCEBTCCBlock::checkTccIdAndNumbTTs(), DCCFEBlock::unpack(), DCCSRPBlock::unpack(), DCCMemBlock::unpack(), DCCTCCBlock::unpack(), DCCMemBlock::unpackMemTowerData(), DCCTowerBlock::unpackXtalData(), and DCCSCBlock::unpackXtalData().
|
inline |
Definition at line 124 of file EcalElectronicsMapper.h.
References smId_.
Referenced by DCCEventBlock::addHeaderToCollection(), DCCEBSRPBlock::addSRFlagToCollection(), DCCEBTCCBlock::addTriggerPrimitivesToCollection(), DCCEETCCBlock::checkTccIdAndNumbTTs(), DCCEBTCCBlock::checkTccIdAndNumbTTs(), DCCTowerBlock::fillEcalElectronicsError(), DCCSCBlock::fillEcalElectronicsError(), DCCMemBlock::fillPnDiodeDigisCollection(), EcalRawToDigi::produce(), DCCFEBlock::unpack(), DCCMemBlock::unpack(), and DCCMemBlock::unpackMemTowerData().
unsigned int EcalElectronicsMapper::getDCCId | ( | unsigned int | aSMId | ) | const |
Definition at line 377 of file EcalElectronicsMapper.cc.
References myDCCMap_, and DCCDataUnpacker::silentMode_.
Referenced by getSRPBlockLength(), and printStatusRecords().
|
inline |
Get methods for DCCId/SMId and map
Definition at line 94 of file EcalElectronicsMapper.h.
References myDCCMap_.
|
inline |
Retrieves current path do the map file
Definition at line 75 of file EcalElectronicsMapper.h.
References makeMapFromVectors(), and pathToMapFile_.
|
inline |
Definition at line 96 of file EcalElectronicsMapper.h.
References smId_, and xtalDetIds_.
Referenced by DCCTowerBlock::unpackXtalData(), and DCCSCBlock::unpackXtalData().
|
inline |
Definition at line 132 of file EcalElectronicsMapper.h.
References ebTccBlockLength_.
Referenced by DCCEBTCCBlock::DCCEBTCCBlock().
|
inline |
Definition at line 134 of file EcalElectronicsMapper.h.
References eeTccBlockLength_.
|
inline |
Definition at line 142 of file EcalElectronicsMapper.h.
References numChannelsInDcc_.
Referenced by DCCFEBlock::unpack().
|
inline |
Definition at line 108 of file EcalElectronicsMapper.h.
References psInput_.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), and getPSInputDigiPointer().
|
inline |
Definition at line 110 of file EcalElectronicsMapper.h.
References getPSInputDigiPointer(), and tTandPs_.
|
inline |
Definition at line 104 of file EcalElectronicsMapper.h.
References scDetIds_.
|
inline |
Definition at line 106 of file EcalElectronicsMapper.h.
References scEleIds_.
Referenced by DCCSCBlock::fillEcalElectronicsError().
unsigned int EcalElectronicsMapper::getSMId | ( | unsigned int | aDCCId | ) | const |
Definition at line 392 of file EcalElectronicsMapper.cc.
References myDCCMap_, and DCCDataUnpacker::silentMode_.
Referenced by DCCDataUnpacker::getCCUValue(), DCCDataUnpacker::getChannelValue(), getSRPBlockLength(), and setActiveDCC().
|
inline |
Definition at line 118 of file EcalElectronicsMapper.h.
References smId_, and srFlags_.
Referenced by DCCEESRPBlock::addSRFlagToCollection(), and DCCEBSRPBlock::addSRFlagToCollection().
|
inline |
Definition at line 136 of file EcalElectronicsMapper.h.
References getDCCId(), getSMId(), and srpBlockLength_.
|
inline |
Definition at line 120 of file EcalElectronicsMapper.h.
References mapSmIdToTccIds_.
Referenced by DCCEETCCBlock::checkTccIdAndNumbTTs().
|
inline |
Definition at line 102 of file EcalElectronicsMapper.h.
References ttTPIds_.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), and DCCEBTCCBlock::addTriggerPrimitivesToCollection().
|
inline |
Definition at line 98 of file EcalElectronicsMapper.h.
References ttDetIds_.
|
inline |
Definition at line 100 of file EcalElectronicsMapper.h.
References ttEleIds_.
Referenced by DCCTowerBlock::fillEcalElectronicsError().
|
inline |
Definition at line 130 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 730 of file EcalElectronicsMapper.cc.
References spr::find(), ghost_, NUMB_SM, and numChannelsInDcc_.
Referenced by DCCSCBlock::unpackXtalData().
bool EcalElectronicsMapper::isTCCExternal | ( | unsigned int | TCCId | ) |
Definition at line 369 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(), and mapping().
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 279 of file EcalElectronicsMapper.cc.
References createfilelist::int, myDCCMap_, AlCaHLTBitMon_QueryRunRegistry::string, tmp, and findQualityFiles::v.
Referenced by getDCCMapFilePath().
|
inline |
Definition at line 144 of file EcalElectronicsMapper.h.
References isTCCExternal(), mappingBuilder_, connectstrParser::o, and operator<<.
Referenced by DCCDataUnpacker::getCCUValue(), and DCCDataUnpacker::getChannelValue().
|
inline |
Definition at line 128 of file EcalElectronicsMapper.h.
References numbTriggerTSamples_.
|
inline |
Definition at line 126 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_, photons_cff::ids, EcalTrigTowerDetId::kEBTowersPerSM, mapSmIdToTccIds_, EcalTriggerElectronicsId::MAX_TCCID, NUMB_FE, NUMB_SM, NUMB_STRIP, NUMB_TCC, NUMB_XTAL, psInput_, scEleIds_, digitizers_cfi::strip, TCC_EB_NUMBTTS, ecaldqm::tccId(), tTandPs_, ttDetIds_, ttEleIds_, ttTPIds_, unfilteredFEBlockLength_, and xtalDetIds_.
Referenced by EcalElectronicsMapper().
bool EcalElectronicsMapper::setActiveDCC | ( | unsigned int | dccId | ) |
Set DCC id that is going to be unpacked for the event
Definition at line 211 of file EcalElectronicsMapper.cc.
References ecaldqm::dccId(), dccId_, getSMId(), 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 227 of file EcalElectronicsMapper.cc.
References pathToMapFile_.
void EcalElectronicsMapper::setEcalElectronicsMapping | ( | const EcalElectronicsMapping * | m | ) |
Definition at line 206 of file EcalElectronicsMapper.cc.
References fillMaps(), funct::m, and mappingBuilder_.
|
private |
Definition at line 672 of file EcalElectronicsMapper.cc.
References ghost_, mps_fire::i, gen::n, and findQualityFiles::v.
Referenced by EcalElectronicsMapper().
|
friend |
|
private |
Definition at line 188 of file EcalElectronicsMapper.h.
Referenced by getActiveDCC(), and setActiveDCC().
|
private |
Definition at line 196 of file EcalElectronicsMapper.h.
Referenced by getEBTCCBlockLength(), and resetPointers().
|
private |
Definition at line 196 of file EcalElectronicsMapper.h.
Referenced by getEETCCBlockLength(), and resetPointers().
|
private |
Definition at line 224 of file EcalElectronicsMapper.h.
Referenced by isGhost(), and setupGhostMap().
|
private |
Definition at line 213 of file EcalElectronicsMapper.h.
Referenced by fillMaps(), mapping(), and setEcalElectronicsMapping().
|
private |
Definition at line 186 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTccs(), and resetPointers().
|
private |
Definition at line 184 of file EcalElectronicsMapper.h.
Referenced by getDCCId(), getDCCMap(), getSMId(), makeMapFromVectors(), and operator<<().
|
private |
Definition at line 182 of file EcalElectronicsMapper.h.
Referenced by computeEBTCCBlockLength(), fillMaps(), and numbTriggerTSamples().
|
private |
Definition at line 180 of file EcalElectronicsMapper.h.
Referenced by computeUnfilteredFEBlockLength(), and numbXtalTSamples().
|
staticprivate |
Definition at line 198 of file EcalElectronicsMapper.h.
Referenced by fillMaps(), getNumChannelsInDcc(), and isGhost().
|
private |
Definition at line 178 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), getDCCMapFilePath(), operator<<(), and setDCCMapFilePath().
|
private |
Definition at line 209 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getPSInputDigiPointer(), and resetPointers().
|
private |
Definition at line 203 of file EcalElectronicsMapper.h.
Referenced by getSCDetIdPointer().
|
private |
Definition at line 204 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getSCElectronicsPointer(), and resetPointers().
|
private |
Definition at line 190 of file EcalElectronicsMapper.h.
Referenced by getActiveSM(), getDetIdPointer(), getSrFlagPointer(), and setActiveDCC().
|
private |
Definition at line 208 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), and getSrFlagPointer().
|
private |
Definition at line 194 of file EcalElectronicsMapper.h.
Referenced by getSRPBlockLength().
|
private |
Definition at line 211 of file EcalElectronicsMapper.h.
Referenced by fillMaps(), getPSInputDigiPointer(), and resetPointers().
|
private |
Definition at line 205 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTTDetIdPointer(), and resetPointers().
|
private |
Definition at line 206 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTTEleIdPointer(), and resetPointers().
|
private |
Definition at line 207 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTPPointer(), and resetPointers().
|
private |
Definition at line 192 of file EcalElectronicsMapper.h.
Referenced by getUnfilteredTowerBlockLength(), and resetPointers().
|
private |
Definition at line 202 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getDetIdPointer(), and resetPointers().