25 HGCalTriggerClusterInterpretationEM::HGCalTriggerClusterInterpretationEM() {}
32 const unsigned corrections_size = 2;
33 if (scale_corrections_coeff_.size() != corrections_size) {
35 <<
"HGCalTriggerClusterInterpretationEM::scale_correction_coeff parameter has size: "
36 << scale_corrections_coeff_.size() <<
" while expected is " << corrections_size;
40 <<
"HGCalTriggerClusterInterpretationEM::layer_containment_corrs and "
41 "HGCalTriggerClusterInterpretationEM::dr_bylayer have different size!";
50 for (
unsigned int idx = 0; idx != multiclusters.
size(); idx++) {
59 double dr = (cluster3d_position - cluster2d.second->centreProj()).
mag();
HGCalTriggerClusterInterpretationEM()
unsigned size(int bx) const
void initialize(const edm::ParameterSet &conf) final
T mag() const
The vector magnitude. Equivalent to sqrt(vec.mag2())
const GlobalPoint & centreProj() const
~HGCalTriggerClusterInterpretationEM() override
#define DEFINE_HGC_TPG_CLUSTER_INTERPRETER(type, name)
constexpr std::array< uint8_t, layerIndexSize > layer
std::vector< double > scale_corrections_coeff_
std::vector< double > dr_bylayer_
HGCalTriggerTools triggerTools_
BXVector< HGCalMulticluster > HGCalMulticlusterBxCollection
Abs< T >::type abs(const T &t)
void setGeometry(const HGCalTriggerGeometryBase *const) final
void saveEnergyInterpretation(const HGCalMulticluster::EnergyInterpretation eInt, double energy)
T getParameter(std::string const &) const
std::vector< double > layer_containment_corrs_
void interpret(l1t::HGCalMulticlusterBxCollection &multiclusters) const final
const std::unordered_map< uint32_t, edm::Ptr< C > > & constituents() const
double eta() const final
momentum pseudorapidity