#include <SuperclusTkIsolFromCands.h>
Definition at line 15 of file SuperclusTkIsolFromCands.h.
◆ SuperclusTkIsolFromCands() [1/2]
◆ SuperclusTkIsolFromCands() [2/2]
◆ operator()()
Definition at line 5 of file SuperclusTkIsolFromCands.cc.
References funct::abs(), EleTkIsolFromCands::Configuration::barrelCuts, EleTkIsolFromCands::cfg_, reco::deltaR2(), HLT_2024v14_cff::dEta, ALPAKA_ACCELERATOR_NAMESPACE::dR2(), l1ctLayer1_cff::dZ, EleTkIsolFromCands::Configuration::endcapCuts, reco::CaloCluster::eta(), EleTkIsolFromCands::getPreselectedTracks(), reco::CaloCluster::phi(), trk, and L1BJetProducer_cff::vtx.
12 const float scEta = sc.
eta();
13 const float scPhi = sc.
phi();
14 const float vtxVz =
vtx.z();
16 const bool isBarrelSC =
std::abs(scEta) < 1.5;
21 for (
auto const&
trk : preselectedTracks) {
24 const float dZ = vtxVz -
trk.get<
Vz>();
27 ptSum +=
trk.get<
Pt>();
32 return {nrTrks, ptSum};
double phi() const
azimuthal angle of cluster centroid
ALPAKA_FN_ACC static ALPAKA_FN_INLINE float dR2(Position4 pos1, Position4 pos2)
Abs< T >::type abs(const T &t)
TrackTable const & getPreselectedTracks(bool isBarrel)
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())
Configuration const & cfg_
double eta() const
pseudorapidity of cluster centroid