Description: EDProducer of ElectronSeed objects
Implementation: <Notes on="" implementation>="">
Definition at line 33 of file ElectronSeedProducer.cc.
Definition at line 167 of file ElectronSeedProducer.cc.
References allowHGCal_, applyHOverECut_, hgcalTestNeighbor_cfi::detector, EcalBarrel, EcalEndcap, PVValHelper::eta, hcalHelper_, hgcClusterTools_, mps_fire::i, EcalTools::isHGCalDet(), LogDebug, maxHOverEBarrel_, maxHOverEEndcaps_, edm::RefVector< C, T, F >::push_back(), SCEtCut_, edm::RefVector< C, T, F >::size(), and HLT_2022v12_cff::superClusters.
Referenced by produce().
172 auto const& scl = (*superClusters)[
i];
173 double sclEta =
EleRelPoint(scl.position(), beamSpotPosition).
eta();
174 if (scl.energy() / cosh(sclEta) >
SCEtCut_) {
176 bool hoeVeto =
false;
178 double scle = scl.energy();
179 int det_group = scl.seed()->hitsAndFractions()[0].first.det();
180 int detector = scl.seed()->hitsAndFractions()[0].first.subdetId();
186 float had_fraction =
hgcClusterTools_->getClusterHadronFraction(*(scl.seed()));
197 LogDebug(
"ElectronSeedProducer") <<
"Filtered out " << sclRefs.
size() <<
" superclusters from "
std::unique_ptr< ElectronHcalHelper > hcalHelper_
size_type size() const
Size of the RefVector.
void push_back(value_type const &ref)
Add a Ref<C, T> to the RefVector.
std::unique_ptr< hgcal::ClusterTools > hgcClusterTools_
Definition at line 118 of file ElectronSeedProducer.cc.
References allowHGCal_, beamSpotTag_, MillePedeFileConverter_cfg::e, filterClusters(), hcalHelper_, hgcClusterTools_, mps_fire::i, edm::Ref< C, T, F >::id(), initialSeeds_, LogDebug, matcher_, eostools::move(), fileCollector::seed, DetachedQuadStep_cff::seeds, and superClusters_.
119 LogDebug(
"ElectronSeedProducer") <<
"[ElectronSeedProducer::produce] entering ";
121 std::vector<TrajectorySeedCollection const*> initialSeedCollections;
122 std::unique_ptr<TrajectorySeedCollection> initialSeedCollectionPtr =
nullptr;
135 initialSeedCollections.clear();
137 initialSeedCollections.push_back(&
e.get(
seeds));
140 auto seeds = std::make_unique<ElectronSeedCollection>();
141 auto const& beamSportPosition =
e.get(
beamSpotTag_).position();
144 for (
unsigned int i = 0;
i < 2;
i++) {
153 LogDebug(
"ElectronSeedProducer") <<
"new seed with " <<
seed.nHits() <<
" hits" 154 <<
", charge " <<
seed.getCharge() <<
" and cluster energy " 155 << superCluster->energy() <<
" PID " << superCluster.
id();
ProductID id() const
Accessor for product ID.
std::unique_ptr< ElectronHcalHelper > hcalHelper_
std::unique_ptr< ElectronSeedGenerator > matcher_
reco::SuperClusterRefVector filterClusters(math::XYZPoint const &beamSpotPosition, const edm::Handle< reco::SuperClusterCollection > &superClusters) const
edm::EDGetTokenT< reco::SuperClusterCollection > superClusters_[2]
edm::EDGetTokenT< reco::BeamSpot > beamSpotTag_
std::unique_ptr< hgcal::ClusterTools > hgcClusterTools_
std::vector< edm::EDGetTokenT< TrajectorySeedCollection > > initialSeeds_