template<typename DET, PFLayer::Layer Layer, unsigned subdet>
class PFHGCalRecHitCreator< DET, Layer, subdet >
Definition at line 24 of file PFHGCalRecHitCreator.h.
template<typename DET , PFLayer::Layer Layer, unsigned subdet>
Implements PFRecHitCreatorBase.
Definition at line 34 of file PFHGCalRecHitCreator.h.
References Exception, relativeConstraints::geom, edm::EventSetup::get(), edm::Event::getByToken(), ecaldqm::getGeometry(), CaloGeometry::getSubdetectorGeometry(), mps_fire::i, keep, LogDebug, edm::ESHandle< T >::product(), PFRecHitCreatorBase::qualityTests_, TrackInfoProducer_cfi::rechits, PFHGCalRecHitCreator< DET, Layer, subdet >::recHitToken_, and ntuplemaker::time.
48 unsigned skipped_rechits = 0;
49 for (
const auto & hgrh : rechits) {
50 const DET detid(hgrh.detid());
52 if( subdet != detid.subdetId() ) {
54 <<
"subdet expected: " << subdet
55 <<
" subdet gotten: " << detid.subdetId() << std::endl;
58 double energy = hgrh.energy();
59 double time = hgrh.time();
66 <<
"warning detid "<<detid.rawId()
67 <<
" not found in geometry"<<std::endl;
79 bool rcleaned =
false;
94 cleaned->push_back(rh);
97 <<
"Skipped " << skipped_rechits
98 <<
" out of " << rechits.size() <<
" rechits!" << std::endl;
100 <<
"Created " <<
out->size() <<
" PFRecHits!" << std::endl;
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
CaloGeometry const * getGeometry()
SeedingLayerSetsHits::SeedingLayer Layer
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
edm::EDGetTokenT< HGCRecHitCollection > recHitToken_
T const * product() const