CMS 3D CMS Logo

EcalReadoutTools.cc
Go to the documentation of this file.
2 
4 
6  iSetup.get<IdealGeometryRecord>().get(hTriggerTowerMap);
7  triggerTowerMap_ = hTriggerTowerMap.product();
8 
10  iSetup.get< EcalMappingRcd >().get(ecalmapping);
11  elecMap_ = ecalmapping.product();
12 
13 }
14 
16  return triggerTowerMap_->towerOf(xtalId);
17 }
18 
20  const EcalElectronicsId& EcalElecId = elecMap_->getElectronicsId(xtalId);
21  int iDCC= EcalElecId.dccId();
22  int iDccChan = EcalElecId.towerId();
23  const bool ignoreSingle = true;
24  const std::vector<EcalScDetId> id = elecMap_->getEcalScDetId(iDCC, iDccChan, ignoreSingle);
25  return !id.empty()?id[0]:EcalScDetId();
26 }
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
EcalReadoutTools(const edm::Event &iEvent, const edm::EventSetup &iSetup)
EcalTrigTowerDetId readOutUnitOf(const EBDetId &xtalId) const
int towerId() const
get the tower id
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
int iEvent
Definition: GenABIO.cc:230
const EcalTrigTowerConstituentsMap * triggerTowerMap_
const EcalElectronicsMapping * elecMap_
int dccId() const
get the DCC (Ecal Local DCC value not global one) id
std::vector< EcalScDetId > getEcalScDetId(int DCCid, int DCC_Channel, bool ignoreSingleCrystal=true) const
T get() const
Definition: EventSetup.h:62
T const * product() const
Definition: ESHandle.h:86