1 #ifndef RecoParticleFlow_PFClusterProducer_PFHGCalRecHitCreator_h
2 #define RecoParticleFlow_PFClusterProducer_PFHGCalRecHitCreator_h
22 template <
typename DET,PFLayer::Layer Layer,ForwardSubdetector subdet>
47 unsigned skipped_rechits = 0;
48 for (
unsigned int i=0;
i<rechits.
size();++
i) {
50 const DET detid(hgrh.
detid());
52 if( subdet != detid.subdet() ) {
54 <<
"subdet expected: " << subdet
55 <<
" subdet gotten: " << detid.subdet() << std::endl;
59 double time = hgrh.
time();
67 <<
"warning detid "<<detid.rawId()
68 <<
" not found in geometry"<<std::endl;
80 bool rcleaned =
false;
95 cleaned->push_back(rh);
98 <<
"Skipped " << skipped_rechits
99 <<
" out of " << rechits.
size() <<
" rechits!" << std::endl;
101 <<
"Created " << out->size() <<
" PFRecHits!" << std::endl;
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
A base class to handle the particular shape of HGCal volumes.
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
const DetId & detid() const
bool getByToken(EDGetToken token, Handle< PROD > &result) const
PFHGCalRecHitCreator< HGCEEDetId, PFLayer::HGCAL, HGCEE > PFHGCEERecHitCreator
PFHGCalRecHitCreator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
SeedingLayerSetsHits::SeedingLayer Layer
PFHGCalRecHitCreator< HGCHEDetId, PFLayer::HGCAL, HGCHEB > PFHGCHEBRecHitCreator
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
edm::EDGetTokenT< HGCRecHitCollection > recHitToken_
void importRecHits(std::auto_ptr< reco::PFRecHitCollection > &out, std::auto_ptr< reco::PFRecHitCollection > &cleaned, const edm::Event &iEvent, const edm::EventSetup &iSetup)
PFHGCalRecHitCreator< HGCHEDetId, PFLayer::HGCAL, HGCHEF > PFHGCHEFRecHitCreator
virtual const CaloCellGeometry * getGeometry(const DetId &id) const override
Get the cell geometry of a given detector id. Should return false if not found.
std::string geometryInstance_