Build a collection of piZeros from objects in the input jet.
Implements reco::tau::RecoTauPiZeroBuilderPlugin.
Definition at line 192 of file RecoTauPiZeroStripPlugin2.cc.
194 edm::LogPrint(
"RecoTauPiZeroStripPlugin2") <<
"<RecoTauPiZeroStripPlugin2::operator()>:";
210 for (CandPtrs::iterator
cand = candsVector.begin();
cand != candsVector.end(); ++
cand) {
213 <<
"PFGamma #" <<
idx <<
" (" <<
cand->id() <<
":" <<
cand->key() <<
"): Et = " << (*cand)->et()
214 <<
", eta = " << (*cand)->eta() <<
", phi = " << (*cand)->phi();
218 edm::LogPrint(
"RecoTauPiZeroStripPlugin2") <<
"--> assigning seedCandId = " << seedCands.size();
222 <<
"track: Pt = " << candTrack->
pt() <<
" eta = " << candTrack->
eta()
223 <<
", phi = " << candTrack->
phi() <<
", charge = " << candTrack->
charge();
230 <<
", dPt/Pt = " << (candTrack->
ptError() / candTrack->
pt()) <<
")";
233 seedCands.push_back(*
cand);
236 edm::LogPrint(
"RecoTauPiZeroStripPlugin2") <<
"--> assigning addCandId = " << addCands.size();
238 addCands.push_back(*
cand);
243 std::vector<bool> seedCandFlags(seedCands.size());
244 std::vector<bool> addCandFlags(addCands.size());
246 std::set<size_t> seedCandIdsCurrentStrip;
247 std::set<size_t> addCandIdsCurrentStrip;
250 while (idxSeed < seedCands.size()) {
252 edm::LogPrint(
"RecoTauPiZeroStripPlugin2") <<
"processing seed #" << idxSeed;
254 seedCandIdsCurrentStrip.clear();
255 addCandIdsCurrentStrip.clear();
258 strip->addDaughter(seedCands[idxSeed]);
259 seedCandIdsCurrentStrip.insert(idxSeed);
262 int stripBuildIteration = 0;
274 ++stripBuildIteration;
280 <<
"Building strip: Et = " <<
strip->et() <<
", eta = " <<
strip->eta() <<
", phi = " <<
strip->phi();
283 if (
strip->daughterPtr(0).isNonnull())
284 strip->setVertex(
strip->daughterPtr(0)->vertex());
288 markCandsInStrip(seedCandFlags, seedCandIdsCurrentStrip);
289 markCandsInStrip(addCandFlags, addCandIdsCurrentStrip);
293 <<
"Discarding strip: Et = " <<
strip->et() <<
", eta = " <<
strip->eta() <<
", phi = " <<
strip->phi();
297 while (idxSeed < seedCands.size() && seedCandFlags[idxSeed]) {
321 std::unique_ptr<RecoTauPiZero> combinedStrips(
332 for (
auto const&
gamma :
first->daughterPtrVector()) {
333 combinedStrips->addDaughter(
gamma);
335 for (
auto const&
gamma :
second->daughterPtrVector()) {
336 combinedStrips->addDaughter(
gamma);
339 if (combinedStrips->daughterPtr(0).isNonnull())
340 combinedStrips->setVertex(combinedStrips->daughterPtr(0)->vertex());
342 stripCombinations.push_back(
std::move(combinedStrips));
References addCandsToStrip(), reco::tau::RecoTauVertexAssociator::associatedVertex(), reco::TrackBase::charge(), combinatoricStripMassHypo_, combineStrips_, reco::TrackBase::dxy(), reco::TrackBase::dz(), reco::TrackBase::eta(), reco::tau::RecoTauQualityCuts::filterCandRefs(), dqmdumpme::first, CustomPhysics_cfi::gamma, getTrack(), reco::TrackBase::hitPattern(), training_settings::idx, inputParticleIds_, edm::RefToBase< T >::isNonnull(), metsig::jet, reco::RecoTauPiZero::kStrips, reco::RecoTauPiZero::kUndefined, maxStripBuildIterations_, maxStrips_, minGammaEtStripAdd_, minGammaEtStripSeed_, minStripEt_, eostools::move(), reco::TrackBase::normalizedChi2(), reco::HitPattern::numberOfValidPixelHits(), reco::HitPattern::numberOfValidTrackerHits(), convertSQLitetoXML_cfg::output, p4Builder_, reco::tau::pfCandidates(), reco::TrackBase::phi(), reco::LeafCandidate::pt(), reco::TrackBase::pt(), reco::TrackBase::ptError(), qcuts_, edm::second(), AddFourMomenta::set(), reco::tau::RecoTauQualityCuts::setPV(), digitizers_cfi::strip, reco::tau::takeNElements(), updateStripAfterEachDaughter_, verbosity_, and vertexAssociator_.