13 #include <Math/VectorUtil.h> 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)
std::vector< Track > TrackCollection
collection of Tracks
reco::TrackBase::Point beamPoint_
const reco::TrackCollection * trackCollection_
math::XYZPoint Point
point in the space
std::pair< int, float > getIso(const reco::Candidate *) const
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
virtual double eta() const =0
momentum pseudorapidity
static std::atomic< unsigned int > counter
virtual const Point & vertex() const =0
vertex position
PhotonTkIsolation(float extRadius, float intRadius, float etLow, float lip, float drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)