6 #include <Math/VectorUtil.h> 25 extRadius_(extRadius),
26 intRadius_(intRadius),
29 trackCollection_(trackCollection)
46 for ( reco::TrackCollection::const_iterator itrTr = (*trackCollection_).begin() ;
47 itrTr != (*trackCollection_).end() ;
51 double this_pt = (*itrTr).pt();
54 if (fabs( (*itrTr).dz() - (*tmpTrack).dz() ) >
lip_ )
56 double dr =
DeltaR(tmpTrackMomentumAtVtx,tmpElectronMomentumAtVtx) ;
61 ptSum += this_pt*this_pt;
65 std::pair<int,double> retval;
67 retval.second = ptSum;
76 return getIso(electron).first ;
81 return getIso(electron).second ;
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