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) {
23 const float dEta = trk.get<
Eta>() - scEta;
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())
XYZPointD XYZPoint
point in space with cartesian internal representation
Output operator()(const reco::SuperCluster &sc, const math::XYZPoint &vtx)
Configuration const & cfg_
double eta() const
pseudorapidity of cluster centroid