10 : recCollection_{trackCollection}, trackQuality_{
trackQuality} {}
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;
58 double Tx =
getTrackIso(cluster, x, threshold, innerDR);
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_
Abs< T >::type abs(const T &t)
uint16_t const *__restrict__ x
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