1 #ifndef RecoParticleFlow_PFClusterProducer_PFHcalRecHitCreator_h 2 #define RecoParticleFlow_PFClusterProducer_PFHcalRecHitCreator_h 21 template <
typename Digi,
typename Geometry,PFLayer::Layer Layer,
int Detector>
46 const Geometry *hcalGeo =
dynamic_cast< const Geometry*
> (gTmp);
50 for(
const auto& erh : *recHitHandle ) {
59 detid = theHcalTopology->
idFront(detid);
62 auto energy = erh.energy();
63 auto time = erh.time();
72 <<
"warning detid "<<detid.
rawId()
73 <<
" not found in geometry"<<std::endl;
84 bool rcleaned =
false;
89 if (!qtest->test(rh,erh,rcleaned)) {
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_
PFHcalRecHitCreator< HORecHit, CaloSubdetectorGeometry, PFLayer::HCAL_BARREL2, HcalOuter > PFHORecHitCreator
bool getByToken(EDGetToken token, Handle< PROD > &result) const
PFHcalRecHitCreator< HBHERecHit, CaloSubdetectorGeometry, PFLayer::HCAL_BARREL1, HcalBarrel > PFHBRecHitCreator
SeedingLayerSetsHits::SeedingLayer Layer
uint32_t rawId() const
get the raw id
int depth() const
get the tower depth
PFHcalRecHitCreator< HBHERecHit, CaloSubdetectorGeometry, PFLayer::HCAL_ENDCAP, HcalEndcap > PFHERecHitCreator
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
edm::EDGetTokenT< edm::SortedCollection< Digi > > recHitToken_
void beginEvent(const edm::Event &event, const edm::EventSetup &setup)
void setTime(double time)
int subdetId() const
get the contents of the subdetector field (not cast into any detector's numbering enum) ...
void importRecHits(std::unique_ptr< reco::PFRecHitCollection > &out, std::unique_ptr< reco::PFRecHitCollection > &cleaned, const edm::Event &iEvent, const edm::EventSetup &iSetup) override
PFHcalRecHitCreator< HFRecHit, CaloSubdetectorGeometry, PFLayer::HF_EM, HcalForward > PFHFEMRecHitCreator
PFHcalRecHitCreator< HFRecHit, CaloSubdetectorGeometry, PFLayer::HF_HAD, HcalForward > PFHFHADRecHitCreator
HcalDetId idFront(const HcalDetId &id) const
PFHcalRecHitCreator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
bool withSpecialRBXHBHE() const
T const * product() const