13 #include <Math/VectorUtil.h> 40 : extRadius2_(extRadius * extRadius),
41 intRadiusBarrel2_(intRadiusBarrel * intRadiusBarrel),
42 intRadiusEndcap2_(intRadiusEndcap * intRadiusEndcap),
43 stripBarrel_(stripBarrel),
44 stripEndcap_(stripEndcap),
48 trackCollection_(trackCollection),
49 beamPoint_(beamPoint) {
56 else if (!s.compare(
"vz"))
58 else if (!s.compare(
"bs"))
60 else if (!s.compare(
"vtx"))
83 dzCut = fabs((*trItr).dz() - photon->
vertex().z());
86 dzCut = fabs((*trItr).vz() - photon->
vertex().z());
92 dzCut = fabs((*trItr).dz(photon->
vertex()));
95 dzCut = fabs((*trItr).vz() - photon->
vertex().z());
101 float this_pt = (*trItr).pt();
108 if (fabs(photonEta) < 1.479) {
122 std::pair<int, float> retval;
124 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)