#include <HGCalShowerShape.h>
Classes | |
struct | DeltaPhi |
Public Types | |
typedef math::XYZTLorentzVector | LorentzVector |
Private Member Functions | |
float | meanX (const std::vector< pair< float, float >> &energy_X_tc) const |
template<typename T , typename Tref > | |
bool | pass (const T &obj, const Tref &ref) const |
float | sigmaPhiPhi (const std::vector< pair< float, float >> &energy_phi_tc, const float phi_cluster) const |
float | sigmaXX (const std::vector< pair< float, float >> &energy_X_tc, const float X_cluster) const |
float | varPhiPhi (const std::vector< pair< float, float >> &energy_phi_tc, const float phi_cluster) const |
template<typename Delta = std::minus<float>> | |
float | varXX (const std::vector< pair< float, float >> &energy_X_tc, const float X_cluster) const |
Private Attributes | |
double | distance_ = 1. |
double | threshold_ = 0. |
HGCalTriggerTools | triggerTools_ |
Definition at line 12 of file HGCalShowerShape.h.
Definition at line 14 of file HGCalShowerShape.h.
|
inline |
Definition at line 16 of file HGCalShowerShape.h.
HGCalShowerShape::HGCalShowerShape | ( | const edm::ParameterSet & | conf | ) |
Definition at line 9 of file HGCalShowerShape.cc.
|
inline |
Definition at line 19 of file HGCalShowerShape.h.
int HGCalShowerShape::bitmap | ( | const l1t::HGCalMulticluster & | c3d, |
int | start = 1 , |
||
int | end = 14 , |
||
float | threshold = 0 |
||
) | const |
Definition at line 552 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), mps_fire::end, HGCalTriggerTools::getTriggerGeometry(), mps_fire::i, HGCalTriggerGeometryBase::lastTriggerLayer(), nano_mu_digi_cff::layer, hgcalTBTopologyTester_cfi::layers, nlayers, pass(), DiMuonV_cfg::threshold, caloTruthCellsProducer_cfi::triggerCells, HGCalTriggerTools::triggerLayer(), and triggerTools_.
Referenced by fillShapes().
int HGCalShowerShape::coreShowerLength | ( | const l1t::HGCalMulticluster & | c3d, |
const HGCalTriggerGeometryBase & | triggerGeometry | ||
) | const |
Definition at line 81 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), ForwardEmpty, HFNose, HGCalTriggerTools::isNose(), nano_mu_digi_cff::layer, hgcalTBTopologyTester_cfi::layers, HGCalTriggerTools::layers(), nlayers, pass(), HGCalTriggerGeometryBase::triggerLayer(), and triggerTools_.
Referenced by fillShapes().
float HGCalShowerShape::eMax | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 407 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), nano_mu_digi_cff::layer, HGCalTriggerTools::layerWithOffset(), pass(), and triggerTools_.
Referenced by fillShapes().
void HGCalShowerShape::fillShapes | ( | l1t::HGCalMulticluster & | c3d, |
const HGCalTriggerGeometryBase & | triggerGeometry | ||
) | const |
Definition at line 584 of file HGCalShowerShape.cc.
References bitmap(), coreShowerLength(), eMax(), firstLayer(), HGCEE, HGCalTriggerGeometryBase::lastTriggerLayer(), HGCalTriggerTools::layers(), maxLayer(), meanZ(), percentileLayer(), percentileTriggerCells(), l1t::HGCalClusterT< C >::setCoreShowerLength(), l1t::HGCalClusterT< C >::setEbm0(), l1t::HGCalClusterT< C >::setEbm1(), l1t::HGCalClusterT< C >::setEMax(), l1t::HGCalClusterT< C >::setEmax1layers(), l1t::HGCalClusterT< C >::setEmax3layers(), l1t::HGCalClusterT< C >::setEmax5layers(), l1t::HGCalClusterT< C >::setEot(), l1t::HGCalClusterT< C >::setFirst1layers(), l1t::HGCalClusterT< C >::setFirst3layers(), l1t::HGCalClusterT< C >::setFirst5layers(), l1t::HGCalClusterT< C >::setFirstHcal1layers(), l1t::HGCalClusterT< C >::setFirstHcal3layers(), l1t::HGCalClusterT< C >::setFirstHcal5layers(), l1t::HGCalClusterT< C >::setFirstLayer(), l1t::HGCalClusterT< C >::setHbm(), l1t::HGCalClusterT< C >::setLast1layers(), l1t::HGCalClusterT< C >::setLast3layers(), l1t::HGCalClusterT< C >::setLast5layers(), l1t::HGCalClusterT< C >::setLayer10percent(), l1t::HGCalClusterT< C >::setLayer50percent(), l1t::HGCalClusterT< C >::setLayer90percent(), l1t::HGCalClusterT< C >::setMaxLayer(), l1t::HGCalClusterT< C >::setShowerLength(), l1t::HGCalClusterT< C >::setSigmaEtaEtaMax(), l1t::HGCalClusterT< C >::setSigmaEtaEtaTot(), l1t::HGCalClusterT< C >::setSigmaPhiPhiMax(), l1t::HGCalClusterT< C >::setSigmaPhiPhiTot(), l1t::HGCalClusterT< C >::setSigmaRRMax(), l1t::HGCalClusterT< C >::setSigmaRRMean(), l1t::HGCalClusterT< C >::setSigmaRRTot(), l1t::HGCalClusterT< C >::setSigmaZZ(), l1t::HGCalClusterT< C >::setTriggerCells67percent(), l1t::HGCalClusterT< C >::setTriggerCells90percent(), l1t::HGCalClusterT< C >::setVarEtaEta(), l1t::HGCalClusterT< C >::setVarPhiPhi(), l1t::HGCalClusterT< C >::setVarRR(), l1t::HGCalClusterT< C >::setVarZZ(), l1t::HGCalClusterT< C >::setZBarycenter(), showerLength(), sigmaEtaEtaMax(), sigmaEtaEtaTot(), sigmaPhiPhiMax(), sigmaPhiPhiTot(), sigmaRRMax(), sigmaRRMean(), sigmaRRTot(), sigmaZZ(), sumLayers(), triggerTools_, varEtaEta(), varPhiPhi(), varRR(), and varZZ().
Referenced by HGCalMulticlusteringImpl::finalizeClusters(), HGCalHistoClusteringImpl::finalizeClusters(), and CaloTruthCellsProducer::produce().
int HGCalShowerShape::firstLayer | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 30 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), nano_mu_digi_cff::layer, HGCalTriggerTools::layerWithOffset(), pass(), and triggerTools_.
Referenced by fillShapes(), and showerLength().
int HGCalShowerShape::lastLayer | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 65 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), nano_mu_digi_cff::layer, HGCalTriggerTools::layerWithOffset(), pass(), and triggerTools_.
Referenced by showerLength().
int HGCalShowerShape::maxLayer | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 46 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), nano_mu_digi_cff::layer, HGCalTriggerTools::layerWithOffset(), pass(), and triggerTools_.
Referenced by fillShapes().
|
private |
Definition at line 15 of file HGCalShowerShape.cc.
Referenced by meanZ(), sigmaRRMax(), sigmaRRMean(), sigmaRRTot(), varRR(), and varZZ().
float HGCalShowerShape::meanZ | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 429 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), meanX(), pass(), and caloTruthCellsProducer_cfi::triggerCells.
Referenced by fillShapes().
|
inlineprivate |
Definition at line 99 of file HGCalShowerShape.h.
References funct::abs(), distance_, mag(), getGTfromDQMFile::obj, amptDefault_cfi::proj, and threshold_.
Referenced by bitmap(), coreShowerLength(), eMax(), firstLayer(), lastLayer(), maxLayer(), meanZ(), percentileLayer(), percentileTriggerCells(), sigmaEtaEtaMax(), sigmaEtaEtaTot(), sigmaPhiPhiMax(), sigmaPhiPhiTot(), sigmaRRMax(), sigmaRRMean(), sigmaRRTot(), sumLayers(), varEtaEta(), varPhiPhi(), varRR(), and varZZ().
float HGCalShowerShape::percentileLayer | ( | const l1t::HGCalMulticluster & | c3d, |
const HGCalTriggerGeometryBase & | triggerGeometry, | ||
float | quantile = 0.5 |
||
) | const |
Definition at line 112 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), ForwardEmpty, HFNose, HGCalTriggerTools::isNose(), nano_mu_digi_cff::layer, hgcalTBTopologyTester_cfi::layers, HGCalTriggerTools::layers(), nlayers, pass(), DiDispStaMuonMonitor_cfi::pt, HLT_2024v13_cff::pt1, SusyPostProcessor_cff::quantile, caloTruthCellsProducer_cfi::triggerCells, HGCalTriggerGeometryBase::triggerLayer(), and triggerTools_.
Referenced by fillShapes().
float HGCalShowerShape::percentileTriggerCells | ( | const l1t::HGCalMulticluster & | c3d, |
float | quantile = 0.5 |
||
) | const |
Definition at line 150 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), pass(), SusyPostProcessor_cff::quantile, and caloTruthCellsProducer_cfi::triggerCells.
Referenced by fillShapes().
|
inline |
Definition at line 21 of file HGCalShowerShape.h.
References relativeConstraints::geom, HGCalTriggerTools::setGeometry(), and triggerTools_.
Referenced by CaloTruthCellsProducer::produce(), HGCalHistoClusteringImpl::setGeometry(), and HGCalMulticlusteringImpl::setGeometry().
|
inline |
Definition at line 26 of file HGCalShowerShape.h.
References firstLayer(), and lastLayer().
Referenced by fillShapes().
float HGCalShowerShape::sigmaEtaEtaMax | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 253 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), nano_mu_digi_cff::layer, HGCalTriggerTools::layerWithOffset(), pass(), sigmaXX(), caloTruthCellsProducer_cfi::triggerCells, and triggerTools_.
Referenced by fillShapes().
float HGCalShowerShape::sigmaEtaEtaTot | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 182 of file HGCalShowerShape.cc.
References mathSSE::sqrt(), and varEtaEta().
Referenced by fillShapes().
float HGCalShowerShape::sigmaEtaEtaTot | ( | const l1t::HGCalCluster & | c2d | ) | const |
Definition at line 468 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), reco::LeafCandidate::eta(), pass(), and sigmaXX().
|
inlineprivate |
Definition at line 87 of file HGCalShowerShape.h.
References mathSSE::sqrt(), and varPhiPhi().
Referenced by sigmaPhiPhiMax(), and sigmaPhiPhiTot().
float HGCalShowerShape::sigmaPhiPhiMax | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 286 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), nano_mu_digi_cff::layer, HGCalTriggerTools::layerWithOffset(), pass(), sigmaPhiPhi(), caloTruthCellsProducer_cfi::triggerCells, and triggerTools_.
Referenced by fillShapes().
float HGCalShowerShape::sigmaPhiPhiTot | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 204 of file HGCalShowerShape.cc.
References mathSSE::sqrt(), and varPhiPhi().
Referenced by fillShapes().
float HGCalShowerShape::sigmaPhiPhiTot | ( | const l1t::HGCalCluster & | c2d | ) | const |
Definition at line 484 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), pass(), reco::LeafCandidate::phi(), and sigmaPhiPhi().
float HGCalShowerShape::sigmaRRMax | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 319 of file HGCalShowerShape.cc.
References funct::abs(), l1t::HGCalClusterT< C >::constituents(), nano_mu_digi_cff::layer, HGCalTriggerTools::layerWithOffset(), meanX(), pass(), funct::pow(), alignCSCRings::r, sigmaXX(), mathSSE::sqrt(), caloTruthCellsProducer_cfi::triggerCells, and triggerTools_.
Referenced by fillShapes().
float HGCalShowerShape::sigmaRRMean | ( | const l1t::HGCalMulticluster & | c3d, |
float | radius = 5. |
||
) | const |
Definition at line 353 of file HGCalShowerShape.cc.
References funct::abs(), l1t::HGCalClusterT< C >::constituents(), PVValHelper::dx, PVValHelper::dy, reco::LeafCandidate::energy(), nano_mu_digi_cff::layer, HGCalTriggerTools::layerWithOffset(), meanX(), pass(), l1t::HGCalTriggerCell::position(), alignCSCRings::r, CosmicsPD_Skims::radius, sigmaXX(), mathSSE::sqrt(), caloTruthCellsProducer_cfi::triggerCells, triggerTools_, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
Referenced by fillShapes().
float HGCalShowerShape::sigmaRRTot | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 226 of file HGCalShowerShape.cc.
References mathSSE::sqrt(), and varRR().
Referenced by fillShapes().
float HGCalShowerShape::sigmaRRTot | ( | const l1t::HGCalCluster & | c2d | ) | const |
Definition at line 500 of file HGCalShowerShape.cc.
References funct::abs(), l1t::HGCalClusterT< C >::constituents(), meanX(), pass(), funct::pow(), alignCSCRings::r, sigmaXX(), and mathSSE::sqrt().
|
inlineprivate |
Definition at line 81 of file HGCalShowerShape.h.
References mathSSE::sqrt(), and varXX().
Referenced by sigmaEtaEtaMax(), sigmaEtaEtaTot(), sigmaRRMax(), sigmaRRMean(), and sigmaRRTot().
float HGCalShowerShape::sigmaZZ | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 447 of file HGCalShowerShape.cc.
References mathSSE::sqrt(), and varZZ().
Referenced by fillShapes().
float HGCalShowerShape::sumLayers | ( | const l1t::HGCalMulticluster & | c3d, |
int | start = 1 , |
||
int | end = 0 |
||
) | const |
Definition at line 521 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), mps_fire::end, DivergingColor::frac, HGCalTriggerTools::getTriggerGeometry(), mps_fire::i, HGCalTriggerGeometryBase::lastTriggerLayer(), nano_mu_digi_cff::layer, hgcalTBTopologyTester_cfi::layers, nlayers, pass(), compareTotals::tot, caloTruthCellsProducer_cfi::triggerCells, HGCalTriggerTools::triggerLayer(), and triggerTools_.
Referenced by fillShapes().
float HGCalShowerShape::varEtaEta | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 184 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), reco::LeafCandidate::eta(), pass(), caloTruthCellsProducer_cfi::triggerCells, and varXX().
Referenced by fillShapes(), and sigmaEtaEtaTot().
float HGCalShowerShape::varPhiPhi | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 206 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), pass(), reco::LeafCandidate::phi(), and caloTruthCellsProducer_cfi::triggerCells.
Referenced by fillShapes(), sigmaPhiPhi(), and sigmaPhiPhiTot().
|
inlineprivate |
Definition at line 94 of file HGCalShowerShape.h.
float HGCalShowerShape::varRR | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 228 of file HGCalShowerShape.cc.
References funct::abs(), l1t::HGCalClusterT< C >::constituents(), meanX(), pass(), funct::pow(), alignCSCRings::r, mathSSE::sqrt(), caloTruthCellsProducer_cfi::triggerCells, and varXX().
Referenced by fillShapes(), and sigmaRRTot().
|
inlineprivate |
Definition at line 67 of file HGCalShowerShape.h.
References dumpMFGeometry_cfg::delta, and funct::pow().
Referenced by sigmaXX(), varEtaEta(), varRR(), and varZZ().
float HGCalShowerShape::varZZ | ( | const l1t::HGCalMulticluster & | c3d | ) | const |
Definition at line 448 of file HGCalShowerShape.cc.
References l1t::HGCalClusterT< C >::constituents(), meanX(), pass(), caloTruthCellsProducer_cfi::triggerCells, and varXX().
Referenced by fillShapes(), and sigmaZZ().
|
private |
Definition at line 108 of file HGCalShowerShape.h.
Referenced by pass().
|
private |
Definition at line 107 of file HGCalShowerShape.h.
Referenced by pass().
|
private |
Definition at line 106 of file HGCalShowerShape.h.
Referenced by bitmap(), coreShowerLength(), eMax(), fillShapes(), firstLayer(), lastLayer(), maxLayer(), percentileLayer(), setGeometry(), sigmaEtaEtaMax(), sigmaPhiPhiMax(), sigmaRRMax(), sigmaRRMean(), and sumLayers().