1 #ifndef RecoParticleFlow_PFClusterProducer_PFEcalBarrelRecHitCreator_h 2 #define RecoParticleFlow_PFClusterProducer_PFEcalBarrelRecHitCreator_h 57 for(
const auto& erh : *recHitHandle ) {
58 const DetId& detid = erh.detid();
59 auto energy = erh.energy();
60 auto time = erh.time();
68 <<
"detid " << detid.
rawId() <<
"not found in geometry";
73 auto & rh = out->back();
75 bool rcleaned =
false;
80 if (!qtest->test(rh,erh,rcleaned,hi)) {
91 cleaned->push_back(
std::move(out->back()));
edm::EDGetTokenT< EBSrFlagCollection > srFlagToken_
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
void importRecHits(std::unique_ptr< reco::PFRecHitCollection > &out, std::unique_ptr< reco::PFRecHitCollection > &cleaned, const edm::Event &iEvent, const edm::EventSetup &iSetup) override
PFEcalBarrelRecHitCreator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
edm::EDGetTokenT< EcalRecHitCollection > recHitToken_
EcalTrigTowerDetId towerOf(const DetId &id) const
Get the tower id for this det id (or null if not known)
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
static const int SRF_FULL
void beginEvent(const edm::Event &event, const edm::EventSetup &setup)
void init(const edm::EventSetup &es) override
edm::Handle< EBSrFlagCollection > srFlagHandle_
EcalTrigTowerDetId readOutUnitOf(const EBDetId &detid) const
const EcalTrigTowerConstituentsMap * triggerTowerMap_
bool isHighInterest(const EBDetId &detid)
T const * product() const