1 #ifndef RecoParticleFlow_PFClusterProducer_PFHGCalRecHitCreator_h 2 #define RecoParticleFlow_PFClusterProducer_PFHGCalRecHitCreator_h 25 template <
typename DET,PFLayer::Layer Layer,DetId::Detector det,
unsigned subdet>
53 unsigned skipped_rechits = 0;
54 for (
const auto & hgrh : rechits) {
55 const DET detid(hgrh.detid());
57 if( det != detid.det()
or (subdet != 0 and subdet != detid.subdetId() ) ) {
59 <<
"det expected: " << det
60 <<
" det gotten: " << detid.det() <<
" ; " 61 <<
"subdet expected: " << subdet
62 <<
" subdet gotten: " << detid.subdetId() << std::endl;
65 double energy = hgrh.energy();
66 double time = hgrh.time();
73 <<
"warning detid "<<detid.rawId()
74 <<
" not found in geometry"<<std::endl;
82 bool rcleaned =
false;
97 cleaned->push_back(rh);
100 <<
"Skipped " << skipped_rechits
101 <<
" out of " << rechits.size() <<
" rechits!" << std::endl;
103 <<
"Created " << out->size() <<
" PFRecHits!" << std::endl;
std::string geometryInstance_
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
hgcal::RecHitTools recHitTools_
PFHGCalRecHitCreator< HGCScintillatorDetId, PFLayer::HGCAL, DetId::HGCalHSc, ForwardEmpty > PFHGCalHScRecHitCreator
PFHGCalRecHitCreator< HGCalDetId, PFLayer::HGCAL, DetId::Forward, HGCEE > PFHGCEERecHitCreator
PFHGCalRecHitCreator(const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
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
SeedingLayerSetsHits::SeedingLayer Layer
Particle flow rechit (rechit + geometry and topology information). See clustering algorithm in PFClus...
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
PFHGCalRecHitCreator< HGCSiliconDetId,PFLayer::HGCAL, DetId::HGCalHSi, ForwardEmpty > PFHGCalHSiRecHitCreator
PFHGCalRecHitCreator< HGCSiliconDetId,PFLayer::HGCAL, DetId::HGCalEE,ForwardEmpty > PFHGCalEERecHitCreator
virtual std::shared_ptr< const CaloCellGeometry > getGeometry(const DetId &id) const
Get the cell geometry of a given detector id. Should return false if not found.
PFHGCalRecHitCreator< HcalDetId,PFLayer::HGCAL, DetId::Hcal, HcalEndcap > PFHGCHEBRecHitCreator
PFHGCalRecHitCreator< HGCalDetId, PFLayer::HGCAL, DetId::Forward, HGCHEF > PFHGCHEFRecHitCreator
T const * product() const
edm::EDGetTokenT< HGCRecHitCollection > recHitToken_