Go to the documentation of this file. 1 #ifndef __L1Trigger_L1THGCal_HGCalShowerShape_h__
2 #define __L1Trigger_L1THGCal_HGCalShowerShape_h__
58 float meanX(
const std::vector<pair<float, float>>& energy_X_tc)
const;
61 template <
typename Delta = std::minus<
float>>
62 float sigmaXX(
const std::vector<pair<float, float>>& energy_X_tc,
const float X_cluster)
const {
65 float deltaX2_sum = 0;
66 for (
const auto& energy_X : energy_X_tc) {
67 deltaX2_sum += energy_X.first *
pow(
delta(energy_X.second, X_cluster), 2);
68 Etot += energy_X.first;
72 X_MSE = deltaX2_sum / Etot;
73 float X_RMS =
sqrt(X_MSE);
81 float sigmaPhiPhi(
const std::vector<pair<float, float>>& energy_phi_tc,
const float phi_cluster)
const {
82 return sigmaXX<DeltaPhi<float>>(energy_phi_tc, phi_cluster);
84 template <
typename T,
typename Tref>
85 bool pass(
const T&
obj,
const Tref& ref)
const {
89 return pass_threshold && pass_distance;
void fillShapes(l1t::HGCalMulticluster &, const HGCalTriggerGeometryBase &) const
bool pass(const T &obj, const Tref &ref) const
float sigmaRRMax(const l1t::HGCalMulticluster &c3d) const
int maxLayer(const l1t::HGCalMulticluster &c3d) const
float sigmaRRTot(const l1t::HGCalMulticluster &c3d) const
float sigmaPhiPhiTot(const l1t::HGCalMulticluster &c3d) const
float sigmaRRMean(const l1t::HGCalMulticluster &c3d, float radius=5.) const
float sigmaEtaEtaMax(const l1t::HGCalMulticluster &c3d) const
T operator()(const T &x, const T &y) const
float sigmaXX(const std::vector< pair< float, float >> &energy_X_tc, const float X_cluster) const
float meanZ(const l1t::HGCalMulticluster &c3d) const
int firstLayer(const l1t::HGCalMulticluster &c3d) const
float sigmaPhiPhi(const std::vector< pair< float, float >> &energy_phi_tc, const float phi_cluster) const
float meanX(const std::vector< pair< float, float >> &energy_X_tc) const
void eventSetup(const edm::EventSetup &es)
HGCalTriggerTools triggerTools_
float percentileTriggerCells(const l1t::HGCalMulticluster &c3d, float quantile=0.5) const
int lastLayer(const l1t::HGCalMulticluster &c3d) const
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
float percentileLayer(const l1t::HGCalMulticluster &c3d, const HGCalTriggerGeometryBase &triggerGeometry, float quantile=0.5) const
XYZTLorentzVectorD XYZTLorentzVector
Lorentz vector with cylindrical internal representation using pseudorapidity.
float eMax(const l1t::HGCalMulticluster &c3d) const
float sigmaZZ(const l1t::HGCalMulticluster &c3d) const
int showerLength(const l1t::HGCalMulticluster &c3d) const
float sigmaEtaEtaTot(const l1t::HGCalMulticluster &c3d) const
Power< A, B >::type pow(const A &a, const B &b)
Abs< T >::type abs(const T &t)
int coreShowerLength(const l1t::HGCalMulticluster &c3d, const HGCalTriggerGeometryBase &triggerGeometry) const
math::XYZTLorentzVector LorentzVector
float sigmaPhiPhiMax(const l1t::HGCalMulticluster &c3d) const