13 #include <Math/VectorUtil.h>
31 float intRadiusBarrel,
32 float intRadiusEndcap,
41 extRadius2_(extRadius*extRadius),
42 intRadiusBarrel2_(intRadiusBarrel*intRadiusBarrel),
43 intRadiusEndcap2_(intRadiusEndcap*intRadiusEndcap),
44 stripBarrel_(stripBarrel),
45 stripEndcap_(stripEndcap),
49 trackCollection_(trackCollection),
79 float photonEta = photon->
eta();
91 default : dzCut = fabs( (*trItr).vz() - photon->
vertex().z() );
break;
93 if (dzCut >
lip_ )
continue;
95 float this_pt = (*trItr).pt();
96 if ( this_pt <
etLow_ ) continue ;
99 float deta = (*trItr).eta() - photonEta ;
100 if (fabs(photonEta) < 1.479) {
117 std::pair<int,float> retval;
119 retval.second = ptSum;
void setDzOption(const std::string &s)
virtual float eta() const =0
momentum pseudorapidity
std::vector< Track > TrackCollection
collection of Tracks
reco::TrackBase::Point beamPoint_
const reco::TrackCollection * trackCollection_
double deltaR2(const T1 &t1, const T2 &t2)
virtual const Point & vertex() const =0
vertex position
math::XYZPoint Point
point in the space
std::pair< int, float > getIso(const reco::Candidate *) const
static std::atomic< unsigned int > counter
PhotonTkIsolation(float extRadius, float intRadius, float etLow, float lip, float drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)