Go to the documentation of this file.
15 const double innerDR) {
23 double pt = recTrack.pt();
25 if (dR2 >= (0.01 *
x *
x))
27 if (dR2 < innerDR * innerDR)
30 totalPt = totalPt +
pt;
39 const double innerDR) {
40 double SClusterEta = cluster.
eta();
48 double pt = recTrack.pt();
49 if (
std::abs(recTrack.eta() - SClusterEta) >= 0.1 *
x)
55 totalPt = totalPt +
pt;
59 double CTx = (Tx - totalPt / 40.0 *
x) * (1 / (1 -
x / 40.));
reco::TrackCollection const & recCollection_
std::string const & trackQuality_
TrackIsoCalculator(reco::TrackCollection const &trackCollection, std::string const &trackQuality)
double eta() const final
momentum pseudorapidity
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
static TrackQuality qualityByName(const std::string &name)
double getTrackIso(reco::Photon const &clus, const double i, const double threshold, const double innerDR=0)
Return the tracker energy in a cone around the photon.
Abs< T >::type abs(const T &t)
double getBkgSubTrackIso(reco::Photon const &clus, const double i, const double threshold, const double innerDR=0)
Return the background-subtracted tracker energy in a cone around the photon.
std::vector< Track > TrackCollection
collection of Tracks