6 #include <Math/VectorUtil.h>
17 using namespace ROOT::Math::VectorUtil ;
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;
66 retval.first = counter;
67 retval.second = ptSum;
76 return getIso(electron).first ;
81 return getIso(electron).second ;
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()
int getNumberTracks(const reco::GsfElectron *) const
virtual GsfTrackRef gsfTrack() const
reference to a GsfTrack