1 #ifndef IsolationUtils_PtIsolationAlgo_h 2 #define IsolationUtils_PtIsolationAlgo_h 9 template <
typename T,
typename C>
22 template <
typename T,
typename C>
25 double candVz = cand.vz();
26 double candEta = cand.eta();
27 double candPhi = cand.phi();
28 for (
typename C::const_iterator
elem = elements.begin();
elem != elements.end(); ++
elem) {
29 double elemPt =
elem->pt();
32 double elemVx =
elem->vx();
33 double elemVy =
elem->vy();
34 double elemD0 =
sqrt(elemVx * elemVx + elemVy * elemVy);
37 double dz = fabs(
elem->vz() - candVz);
double operator()(const T &, const C &) const
PtIsolationAlgo(double dRMin, double dRMax, double dzMax, double d0Max, double ptMin)
def elem(elemtype, innerHTML='', html_class='', kwargs)