CMS 3D CMS Logo

EcalReadoutTools.cc
Go to the documentation of this file.
2 
3 EcalReadoutTools::EcalReadoutTools(const edm::Event&, const edm::EventSetup& iSetup, const ESGetTokens& esGetTokens) {
5  elecMap_ = &iSetup.getData(esGetTokens.ecalElectronicsMappingToken);
6 }
7 
9  return triggerTowerMap_->towerOf(xtalId);
10 }
11 
13  const EcalElectronicsId& EcalElecId = elecMap_->getElectronicsId(xtalId);
14  int iDCC = EcalElecId.dccId();
15  int iDccChan = EcalElecId.towerId();
16  const bool ignoreSingle = true;
17  const std::vector<EcalScDetId> id = elecMap_->getEcalScDetId(iDCC, iDccChan, ignoreSingle);
18  return !id.empty() ? id[0] : EcalScDetId();
19 }
EcalReadoutTools::ESGetTokens::ecalTrigTowerConstituentsMapToken
const edm::ESGetToken< EcalTrigTowerConstituentsMap, IdealGeometryRecord > ecalTrigTowerConstituentsMapToken
Definition: EcalReadoutTools.h:21
EBDetId
Definition: EBDetId.h:17
EcalElectronicsMapping::getEcalScDetId
std::vector< EcalScDetId > getEcalScDetId(int DCCid, int DCC_Channel, bool ignoreSingleCrystal=true) const
Definition: EcalElectronicsMapping.cc:799
EcalTrigTowerDetId
Definition: EcalTrigTowerDetId.h:14
EcalElectronicsId::dccId
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
Definition: EcalElectronicsId.h:31
EcalReadoutTools.h
EcalElectronicsId::towerId
int towerId() const
get the tower id
Definition: EcalElectronicsId.h:33
EcalReadoutTools::readOutUnitOf
EcalTrigTowerDetId readOutUnitOf(const EBDetId &xtalId) const
Definition: EcalReadoutTools.cc:8
EcalReadoutTools::EcalReadoutTools
EcalReadoutTools(const edm::Event &, const edm::EventSetup &, const ESGetTokens &)
Definition: EcalReadoutTools.cc:3
EcalReadoutTools::elecMap_
const EcalElectronicsMapping * elecMap_
Definition: EcalReadoutTools.h:15
EcalScDetId
Definition: EcalScDetId.h:24
EcalElectronicsMapping::getElectronicsId
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
Definition: EcalElectronicsMapping.cc:324
EcalReadoutTools::ESGetTokens::ecalElectronicsMappingToken
const edm::ESGetToken< EcalElectronicsMapping, EcalMappingRcd > ecalElectronicsMappingToken
Definition: EcalReadoutTools.h:22
EcalElectronicsId
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
Definition: EcalElectronicsId.h:18
EEDetId
Definition: EEDetId.h:14
edm::EventSetup
Definition: EventSetup.h:58
edm::EventSetup::getData
bool getData(T &iHolder) const
Definition: EventSetup.h:127
EcalTrigTowerConstituentsMap::towerOf
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
Definition: EcalTrigTowerConstituentsMap.cc:11
EcalReadoutTools::triggerTowerMap_
const EcalTrigTowerConstituentsMap * triggerTowerMap_
Definition: EcalReadoutTools.h:14
edm::Event
Definition: Event.h:73
EcalReadoutTools::ESGetTokens
Definition: EcalReadoutTools.h:18