1 #ifndef RecoParticleFlow_PFClusterProducer_PFEcalEndcapRecHitCreator_h 2 #define RecoParticleFlow_PFClusterProducer_PFEcalEndcapRecHitCreator_h 59 for(
const auto& erh : *recHitHandle ) {
60 const DetId& detid = erh.detid();
61 auto energy = erh.energy();
62 auto time = erh.time();
71 <<
"detid "<< detid.
rawId() <<
"not found in geometry";
76 auto & rh = out->back();
78 bool rcleaned =
false;
83 if (!qtest->test(rh,erh,rcleaned,hi)) {
94 cleaned->push_back(
std::move(out->back()));
121 int iDCC= EcalElecId.
dccId();
122 int iDccChan = EcalElecId.
towerId();
123 const bool ignoreSingle =
true;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
const CaloSubdetectorGeometry * getSubdetectorGeometry(const DetId &id) const
access the subdetector geometry for the given subdetector directly
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
Ecal readout channel identification [32:20] Unused (so far) [19:13] DCC id [12:6] tower [5:3] strip [...
edm::EDGetTokenT< EcalRecHitCollection > recHitToken_
int towerId() const
get the tower id
bool isHighInterest(const EEDetId &detid)
void init(const edm::EventSetup &es) override
virtual const CaloCellGeometry * getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
uint32_t rawId() const
get the raw id
EcalElectronicsId getElectronicsId(const DetId &id) const
Get the electronics id for this det id.
PFEcalEndcapRecHitCreator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
static const int SRF_FULL
void beginEvent(const edm::Event &event, const edm::EventSetup &setup)
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
void importRecHits(std::unique_ptr< reco::PFRecHitCollection > &out, std::unique_ptr< reco::PFRecHitCollection > &cleaned, const edm::Event &iEvent, const edm::EventSetup &iSetup) override
edm::Handle< EESrFlagCollection > srFlagHandle_
EcalScDetId readOutUnitOf(const EEDetId &detid) const
edm::EDGetTokenT< EESrFlagCollection > srFlagToken_
const EcalTrigTowerConstituentsMap * eTTmap_
const EcalElectronicsMapping * elecMap_
T const * product() const