#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 | 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 () |
Private Attributes | |
unsigned int | dccId_ |
unsigned int | ebTccBlockLength_ |
unsigned int | eeTccBlockLength_ |
const EcalElectronicsMapping * | mappingBuilder_ |
std::map< unsigned int, std::vector< unsigned int > * > | mapSmIdToTccIds_ |
std::map< unsigned int, unsigned int > | myDCCMap_ |
unsigned int | numbTriggerTSamples_ |
unsigned int | numbXtalTSamples_ |
std::string | pathToMapFile_ |
EcalPseudoStripInputDigi * | psInput_ [NUMB_TCC][TCC_EB_NUMBTTS][NUMB_STRIP] |
EcalScDetId * | scDetIds_ [NUMB_SM][NUMB_FE] |
EcalElectronicsId * | scEleIds_ [NUMB_SM][NUMB_FE] |
unsigned int | smId_ |
std::vector< EcalSrFlag * > | srFlags_ [NUMB_SM][NUMB_FE] |
unsigned int | srpBlockLength_ |
short | tTandPs_ [NUMB_TCC][5 *EcalTrigTowerDetId::kEBTowersPerSM][2] |
EcalTrigTowerDetId * | ttDetIds_ [NUMB_TCC][NUMB_FE] |
EcalElectronicsId * | ttEleIds_ [NUMB_TCC][NUMB_FE] |
EcalTriggerPrimitiveDigi * | ttTPIds_ [NUMB_TCC][NUMB_FE] |
unsigned int | unfilteredFEBlockLength_ |
DetId * | xtalDetIds_ [NUMB_SM][NUMB_FE][NUMB_STRIP][NUMB_XTAL] |
Static Private Attributes | |
static const unsigned int | numChannelsInDcc_ [NUMB_SM] |
Friends | |
std::ostream & | operator<< (std::ostream &o, const EcalElectronicsMapper &aEcalElectronicsMapper) |
Definition at line 41 of file EcalElectronicsMapper.h.
Enumerator | |
---|---|
kModules | |
kTriggerTowers | |
kTowersInPhi | |
kTowersInEta | |
kCrystals | |
kPns | |
kCrystalsInPhi | |
kCrystalsInEta | |
kCrystalsPerTower | |
kCardsPerTower | |
kChannelsPerCard | |
TTMAPMASK |
Definition at line 158 of file EcalElectronicsMapper.h.
EcalElectronicsMapper::EcalElectronicsMapper | ( | unsigned int | numbOfXtalTSamples, |
unsigned int | numbOfTriggerTSamples | ||
) |
Constructor
Definition at line 8 of file EcalElectronicsMapper.cc.
References resetPointers().
EcalElectronicsMapper::~EcalElectronicsMapper | ( | ) |
|
private |
Definition at line 349 of file EcalElectronicsMapper.cc.
References nTT, and numbTriggerTSamples_.
Referenced by resetPointers().
|
private |
Definition at line 362 of file EcalElectronicsMapper.cc.
Referenced by resetPointers().
|
private |
Definition at line 342 of file EcalElectronicsMapper.cc.
References numbXtalTSamples_.
Referenced by resetPointers().
void EcalElectronicsMapper::deletePointers | ( | ) |
Definition at line 152 of file EcalElectronicsMapper.cc.
References i, mapSmIdToTccIds_, NUMB_FE, NUMB_SM, NUMB_STRIP, NUMB_TCC, NUMB_XTAL, pathToMapFile_, psInput_, scEleIds_, srFlags_, strip(), TCC_EB_NUMBTTS, ttDetIds_, ttEleIds_, ttTPIds_, and xtalDetIds_.
Referenced by ~EcalElectronicsMapper().
|
private |
Definition at line 410 of file EcalElectronicsMapper.cc.
References EcalElectronicsMapping::dccTowerConstituents(), EcalElectronicsMapping::getDetId(), EcalElectronicsMapping::getEcalScDetId(), EcalElectronicsMapping::getElectronicsId(), EcalElectronicsMapping::getTriggerElectronicsId(), EcalElectronicsMapping::getTrigTowerDetId(), 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_, 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(), TCCID_SMID_SHIFT_EB, tTandPs_, ttDetIds_, ttEleIds_, ttTPIds_, xtalDetIds_, and EcalElectronicsId::xtalId().
Referenced by setEcalElectronicsMapping().
|
inline |
Definition at line 125 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 127 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(), DCCMemBlock::unpackMemTowerData(), and EcalUnpackerWorker::work().
unsigned int EcalElectronicsMapper::getDCCId | ( | unsigned int | aSMId | ) | const |
Definition at line 376 of file EcalElectronicsMapper.cc.
References myDCCMap_, and DCCDataUnpacker::silentMode_.
Referenced by printStatusRecords().
|
inline |
Get methods for DCCId/SMId and map
Definition at line 97 of file EcalElectronicsMapper.h.
References myDCCMap_.
|
inline |
Retrieves current path do the map file
Definition at line 78 of file EcalElectronicsMapper.h.
References pathToMapFile_.
|
inline |
Definition at line 99 of file EcalElectronicsMapper.h.
References smId_, and xtalDetIds_.
Referenced by DCCTowerBlock::unpackXtalData(), and DCCSCBlock::unpackXtalData().
|
inline |
Definition at line 135 of file EcalElectronicsMapper.h.
References ebTccBlockLength_.
Referenced by DCCEBTCCBlock::DCCEBTCCBlock().
|
inline |
Definition at line 137 of file EcalElectronicsMapper.h.
References eeTccBlockLength_.
|
inline |
Definition at line 145 of file EcalElectronicsMapper.h.
References numChannelsInDcc_.
Referenced by DCCFEBlock::unpack().
|
inline |
Definition at line 111 of file EcalElectronicsMapper.h.
References psInput_.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), and getPSInputDigiPointer().
|
inline |
Definition at line 113 of file EcalElectronicsMapper.h.
References getPSInputDigiPointer(), and tTandPs_.
|
inline |
Definition at line 107 of file EcalElectronicsMapper.h.
References scDetIds_.
|
inline |
Definition at line 109 of file EcalElectronicsMapper.h.
References scEleIds_.
Referenced by DCCSCBlock::fillEcalElectronicsError().
unsigned int EcalElectronicsMapper::getSMId | ( | unsigned int | aDCCId | ) | const |
Definition at line 391 of file EcalElectronicsMapper.cc.
References myDCCMap_, and DCCDataUnpacker::silentMode_.
Referenced by DCCDataUnpacker::getCCUValue(), DCCDataUnpacker::getChannelValue(), and setActiveDCC().
|
inline |
Definition at line 121 of file EcalElectronicsMapper.h.
References smId_, and srFlags_.
Referenced by DCCEESRPBlock::addSRFlagToCollection(), and DCCEBSRPBlock::addSRFlagToCollection().
|
inline |
Definition at line 139 of file EcalElectronicsMapper.h.
References srpBlockLength_.
|
inline |
Definition at line 123 of file EcalElectronicsMapper.h.
References mapSmIdToTccIds_.
Referenced by DCCEETCCBlock::checkTccIdAndNumbTTs().
|
inline |
Definition at line 105 of file EcalElectronicsMapper.h.
References ttTPIds_.
Referenced by DCCEETCCBlock::addTriggerPrimitivesToCollection(), and DCCEBTCCBlock::addTriggerPrimitivesToCollection().
|
inline |
Definition at line 101 of file EcalElectronicsMapper.h.
References ttDetIds_.
|
inline |
Definition at line 103 of file EcalElectronicsMapper.h.
References ttEleIds_.
Referenced by DCCTowerBlock::fillEcalElectronicsError().
|
inline |
Definition at line 133 of file EcalElectronicsMapper.h.
References unfilteredFEBlockLength_.
Referenced by DCCFEBlock::DCCFEBlock(), and DCCMemBlock::DCCMemBlock().
bool EcalElectronicsMapper::isTCCExternal | ( | unsigned int | TCCId | ) |
Definition at line 368 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 278 of file EcalElectronicsMapper.cc.
References myDCCMap_, tmp, and v.
Referenced by EcalUnpackerWorker::EcalUnpackerWorker().
|
inline |
Definition at line 147 of file EcalElectronicsMapper.h.
References mappingBuilder_.
Referenced by DCCDataUnpacker::getCCUValue(), and DCCDataUnpacker::getChannelValue().
|
inline |
Definition at line 131 of file EcalElectronicsMapper.h.
References numbTriggerTSamples_.
|
inline |
Definition at line 129 of file EcalElectronicsMapper.h.
References numbXtalTSamples_.
Referenced by DCCFEBlock::DCCFEBlock(), and DCCMemBlock::DCCMemBlock().
void EcalElectronicsMapper::resetPointers | ( | ) |
Definition at line 17 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_, strip(), TCC_EB_NUMBTTS, 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 210 of file EcalElectronicsMapper.cc.
References dccId_, getSMId(), runTheMatrix::ret, and smId_.
Referenced by EcalRawToDigi::produce(), and EcalUnpackerWorker::work().
bool EcalElectronicsMapper::setDCCMapFilePath | ( | std::string | aPath_ | ) |
Receives a string with a path and checks if file is accessible
Definition at line 226 of file EcalElectronicsMapper.cc.
References pathToMapFile_.
void EcalElectronicsMapper::setEcalElectronicsMapping | ( | const EcalElectronicsMapping * | m | ) |
Definition at line 205 of file EcalElectronicsMapper.cc.
References fillMaps(), m, and mappingBuilder_.
Referenced by EcalUnpackerWorker::setHandles().
|
friend |
|
private |
Definition at line 191 of file EcalElectronicsMapper.h.
Referenced by getActiveDCC(), and setActiveDCC().
|
private |
Definition at line 199 of file EcalElectronicsMapper.h.
Referenced by getEBTCCBlockLength(), and resetPointers().
|
private |
Definition at line 199 of file EcalElectronicsMapper.h.
Referenced by getEETCCBlockLength(), and resetPointers().
|
private |
Definition at line 216 of file EcalElectronicsMapper.h.
Referenced by fillMaps(), mapping(), and setEcalElectronicsMapping().
|
private |
Definition at line 189 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTccs(), and resetPointers().
|
private |
Definition at line 187 of file EcalElectronicsMapper.h.
Referenced by getDCCId(), getDCCMap(), getSMId(), makeMapFromVectors(), and operator<<().
|
private |
Definition at line 185 of file EcalElectronicsMapper.h.
Referenced by computeEBTCCBlockLength(), fillMaps(), and numbTriggerTSamples().
|
private |
Definition at line 183 of file EcalElectronicsMapper.h.
Referenced by computeUnfilteredFEBlockLength(), and numbXtalTSamples().
|
staticprivate |
Definition at line 201 of file EcalElectronicsMapper.h.
Referenced by fillMaps(), and getNumChannelsInDcc().
|
private |
Definition at line 181 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), getDCCMapFilePath(), operator<<(), and setDCCMapFilePath().
|
private |
Definition at line 212 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getPSInputDigiPointer(), and resetPointers().
|
private |
Definition at line 206 of file EcalElectronicsMapper.h.
Referenced by getSCDetIdPointer().
|
private |
Definition at line 207 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getSCElectronicsPointer(), and resetPointers().
|
private |
Definition at line 193 of file EcalElectronicsMapper.h.
Referenced by getActiveSM(), getDetIdPointer(), getSrFlagPointer(), and setActiveDCC().
|
private |
Definition at line 211 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), and getSrFlagPointer().
|
private |
Definition at line 197 of file EcalElectronicsMapper.h.
Referenced by getSRPBlockLength().
|
private |
Definition at line 214 of file EcalElectronicsMapper.h.
Referenced by fillMaps(), getPSInputDigiPointer(), and resetPointers().
|
private |
Definition at line 208 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTTDetIdPointer(), and resetPointers().
|
private |
Definition at line 209 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTTEleIdPointer(), and resetPointers().
|
private |
Definition at line 210 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getTPPointer(), and resetPointers().
|
private |
Definition at line 195 of file EcalElectronicsMapper.h.
Referenced by getUnfilteredTowerBlockLength(), and resetPointers().
|
private |
Definition at line 205 of file EcalElectronicsMapper.h.
Referenced by deletePointers(), fillMaps(), getDetIdPointer(), and resetPointers().