6 #include <Math/VectorUtil.h> 21 : extRadius_(extRadius), intRadius_(intRadius), ptLow_(ptLow), lip_(lip), trackCollection_(trackCollection) {}
33 for (reco::TrackCollection::const_iterator itrTr = (*trackCollection_).begin(); itrTr != (*trackCollection_).end();
36 double this_pt = (*itrTr).pt();
39 if (fabs((*itrTr).dz() - (*tmpTrack).dz()) >
lip_)
41 double dr =
DeltaR(tmpTrackMomentumAtVtx, tmpElectronMomentumAtVtx);
44 ptSum += this_pt * this_pt;
48 std::pair<int, double> retval;
50 retval.second = ptSum;
57 return getIso(electron).first;
GsfTrackRef gsfTrack() const override
reference to a GsfTrack
double getPtTracks(const reco::GsfElectron *) const
std::vector< Track > TrackCollection
collection of Tracks
std::pair< int, double > getIso(const reco::GsfElectron *) const
ElectronSqPtTkIsolation(double extRadius, double intRadius, double ptLow, double lip, const reco::TrackCollection *)
XYZVectorD XYZVector
spatial vector with cartesian internal representation
~ElectronSqPtTkIsolation()
static std::atomic< unsigned int > counter
int getNumberTracks(const reco::GsfElectron *) const