template<typename T, typename C>
class PtIsolationAlgo< T, C >
Definition at line 10 of file PtIsolationAlgo.h.
template<typename T, typename C>
double PtIsolationAlgo< T, C >::operator() |
( |
const T & |
cand, |
|
|
const C & |
elements |
|
) |
| const |
Definition at line 25 of file PtIsolationAlgo.h.
References PtIsolationAlgo< T, C >::d0Max_, deltaR(), PFRecoTauDiscriminationAgainstElectronDeadECAL_cfi::dR, PtIsolationAlgo< T, C >::dRMax_, PtIsolationAlgo< T, C >::dRMin_, PVValHelper::dz, PtIsolationAlgo< T, C >::dzMax_, HTMLExport::elem(), PtIsolationAlgo< T, C >::ptMin_, and mathSSE::sqrt().
Referenced by PtIsolationAlgo< reco::Candidate, reco::CandidateCollection >::PtIsolationAlgo().
27 double candVz =
cand.vz();
28 double candEta =
cand.eta();
29 double candPhi =
cand.phi();
31 double elemPt =
elem->pt();
32 if ( elemPt <
ptMin_ )
continue;
33 double elemVx =
elem->vx();
34 double elemVy =
elem->vy();
35 double elemD0 =
sqrt( elemVx * elemVx + elemVy * elemVy );
36 if ( elemD0 >
d0Max_ )
continue;
37 double dz = fabs(
elem->vz() - candVz );
38 if ( dz >
dzMax_ )
continue;
def elem(elemtype, innerHTML='', html_class='', kwargs)
double deltaR(double eta1, double eta2, double phi1, double phi2)