13 float intRadiusBarrel,
14 float intRadiusEndcap,
23 : extRadius2_(extRadius * extRadius),
24 intRadiusBarrel2_(intRadiusBarrel * intRadiusBarrel),
25 intRadiusEndcap2_(intRadiusEndcap * intRadiusEndcap),
26 stripBarrel_(stripBarrel),
27 stripEndcap_(stripEndcap),
31 trackCollection_(trackCollection),
32 beamPoint_(beamPoint) {
39 else if (!s.compare(
"vz"))
41 else if (!s.compare(
"bs"))
43 else if (!s.compare(
"vtx"))
57 float photonEta = photon->
eta();
66 dzCut = fabs((*trItr).dz() - photon->
vertex().z());
69 dzCut = fabs((*trItr).vz() - photon->
vertex().z());
75 dzCut = fabs((*trItr).dz(photon->
vertex()));
78 dzCut = fabs((*trItr).vz() - photon->
vertex().z());
84 float this_pt = (*trItr).pt();
90 float deta = (*trItr).eta() - photonEta;
91 if (fabs(photonEta) < 1.479) {
105 std::pair<int, float> retval;
107 retval.second = ptSum;
void setDzOption(const std::string &s)
std::vector< Track > TrackCollection
collection of Tracks
reco::TrackBase::Point beamPoint_
const reco::TrackCollection * trackCollection_
virtual const Point & vertex() const =0
vertex position
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())
static std::atomic< unsigned int > counter
virtual double eta() const =0
momentum pseudorapidity
PhotonTkIsolation(float extRadius, float intRadius, float etLow, float lip, float drb, const reco::TrackCollection *trackCollection, reco::TrackBase::Point beamPoint)