CMS 3D CMS Logo

EcalReadoutTools.cc
Go to the documentation of this file.
2 
5  iSetup.get<IdealGeometryRecord>().get(hTriggerTowerMap);
6  triggerTowerMap_ = hTriggerTowerMap.product();
7 
9  iSetup.get<EcalMappingRcd>().get(ecalmapping);
10  elecMap_ = ecalmapping.product();
11 }
12 
14  return triggerTowerMap_->towerOf(xtalId);
15 }
16 
18  const EcalElectronicsId& EcalElecId = elecMap_->getElectronicsId(xtalId);
19  int iDCC = EcalElecId.dccId();
20  int iDccChan = EcalElecId.towerId();
21  const bool ignoreSingle = true;
22  const std::vector<EcalScDetId> id = elecMap_->getEcalScDetId(iDCC, iDccChan, ignoreSingle);
23  return !id.empty() ? id[0] : EcalScDetId();
24 }
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
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:13
EcalReadoutTools::elecMap_
const EcalElectronicsMapping * elecMap_
Definition: EcalReadoutTools.h:16
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
EcalScDetId
Definition: EcalScDetId.h:24
edm::ESHandle< EcalTrigTowerConstituentsMap >
EcalElectronicsMapping::getElectronicsId
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
Definition: EcalElectronicsMapping.cc:324
EcalReadoutTools::EcalReadoutTools
EcalReadoutTools(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Definition: EcalReadoutTools.cc:3
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
iEvent
int iEvent
Definition: GenABIO.cc:224
edm::EventSetup
Definition: EventSetup.h:57
get
#define get
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:15
EcalMappingRcd
Definition: EcalMappingRcd.h:15
edm::Event
Definition: Event.h:73
IdealGeometryRecord
Definition: IdealGeometryRecord.h:27