27 const T& tauCandidate)
const {
32 isoDeposit.addCandEnergy(tauCandidate.pt());
40 for (reco::PFTauCollection::const_iterator pfTau = pfTaus->begin(); pfTau != pfTaus->end(); ++pfTau) {
41 double dR =
deltaR(pfTau->eta(), pfTau->phi(), tauCandidate.eta(), tauCandidate.phi());
42 if (pfTau_matched ==
nullptr ||
dR < dR_min) {
44 pfTau_matched = &(*pfTau);
54 double dRsignalCone_max = 0.;
62 fabs(candidate->vertex().z() - tauVertex.z()) <
maxDzTrack_) {
65 bool isSignalCone =
false;
66 for (std::vector<reco::CandidatePtr>::const_iterator tauSignalConeConstituent =
68 tauSignalConeConstituent != pfTau_matched->
signalCands().end();
69 ++tauSignalConeConstituent) {
70 double dR =
deltaR(candidate->momentum(), (*tauSignalConeConstituent)->momentum());
77 isoDeposit.addDeposit(candidateDirection, candidate->pt());
87 isoDepositVeto.
vetoDir = tauCandidateDirection;
88 isoDepositVeto.
dR = dRsignalCone_max + 1.e-3;
89 isoDeposit.setVeto(isoDepositVeto);
92 <<
" Failed to match PFTau to tauCandidate direction given by"
93 <<
" eta = " << tauCandidate.eta() <<
", phi = " << tauCandidate.phi()
94 <<
" --> skipping computation of IsoDeposit !!";