79 auto out = std::make_unique<std::vector<pat::Tau>>();
95 tau.isolations_.clear();
96 tau.isoDeposits_.clear();
105 tau.setSignalChargedHadrCands(signalChHPtrs);
110 tau.setSignalNeutralHadrCands(signalNHPtrs);
115 tau.setSignalGammaCands(signalGammaPtrs);
120 tau.setIsolationChargedHadrCands(isolationChHPtrs);
125 tau.setIsolationNeutralHadrCands(isolationNHPtrs);
130 tau.setIsolationGammaCands(isolationGammaPtrs);
133 std::vector<reco::CandidatePtr> signalLostTracks;
134 for (
const auto &trkRef :
tau.signalTracks()) {
135 const auto &lostCandRef = (*trk2lost)[
edm::refToPtr(trkRef)];
136 if (lostCandRef.isNonnull())
139 tau.setSignalLostTracks(signalLostTracks);
143 tau.pfSpecific_[0].signalPiZeroCandidates_.clear();
144 tau.pfSpecific_[0].isolationPiZeroCandidates_.clear();
147 tau.pfSpecific_[0].signalTauChargedHadronCandidates_.clear();
148 tau.pfSpecific_[0].isolationTauChargedHadronCandidates_.clear();
151 tau.pfSpecific_.clear();
const bool linkToLostTracks_
Ptr< typename C::value_type > refToPtr(Ref< C, typename C::value_type, refhelper::FindUsingAdvance< C, typename C::value_type > > const &ref)
void push_back(Ptr< T > const &iPtr)
const edm::EDGetTokenT< edm::View< pat::Tau > > src_
const bool dropPFSpecific_
const bool dropPiZeroRefs_
const edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > trk2lost_
Analysis-level tau class.
const edm::EDGetTokenT< edm::Association< pat::PackedCandidateCollection > > pf2pc_
const bool dropTauChargedHadronRefs_
const bool linkToPackedPF_
boost::indirect_iterator< typename seq_t::const_iterator > const_iterator
std::unique_ptr< pat::ObjectModifier< pat::Tau > > tauModifier_