14 const std::vector<DetId::Detector>& subDets,
26 if (
std::find(subDets.begin(), subDets.end(), clus.seed().det()) == subDets.end()) {
30 float clusEt = clus.energy() *
std::sin(clus.position().theta());
43 if (dR2 < minDR2 || dR2 > maxDR2) {
51 hadValue += clus.energy();
constexpr double deltaPhi(double phi1, double phi2)
Sin< T >::type sin(const T &t)
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
ALPAKA_FN_ACC static ALPAKA_FN_INLINE float dR2(Position4 pos1, Position4 pos2)
constexpr auto deltaR2(const T1 &t1, const T2 &t2) -> decltype(t1.eta())