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.));
TrackIsoCalculator(reco::TrackCollection const &trackCollection, std::string const &trackQuality)
std::vector< Track > TrackCollection
collection of Tracks
reco::TrackCollection const & recCollection_
std::string const & trackQuality_
ALPAKA_FN_ACC static ALPAKA_FN_INLINE float dR2(Position4 pos1, Position4 pos2)
Abs< T >::type abs(const T &t)
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
static TrackQuality qualityByName(const std::string &name)
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.
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.
double eta() const final
momentum pseudorapidity