#include <EcalClustersGraph.h>
Public Types | |
typedef std::vector< CalibratedPFCluster > | CalibratedPFClusterVector |
typedef std::vector< std::pair< CalibratedPFCluster, CalibratedPFClusterVector > > | EcalGraphOutput |
Public Member Functions | |
EcalClustersGraph (CalibratedPFClusterVector clusters, int nSeeds, const CaloTopology *topology, const CaloSubdetectorGeometry *ebGeom, const CaloSubdetectorGeometry *eeGeom, const EcalRecHitCollection *recHitsEB, const EcalRecHitCollection *recHitsEE, const reco::SCProducerCache *cache) | |
void | evaluateScores () |
void | fillVariables () |
EcalGraphOutput | getGraphOutput () |
void | initWindows () |
double | scoreThreshold (const CaloCluster *cluster) |
void | selectClusters () |
void | setThresholds () |
Private Member Functions | |
std::array< int, 3 > | clusterPosition (const CaloCluster *cluster) const |
std::pair< double, double > | computeCovariances (const CaloCluster *cluster) |
std::vector< double > | computeShowerShapes (const CaloCluster *cluster, bool full5x5) |
DeepSCInputs::FeaturesMap | computeVariables (const CaloCluster *seed, const CaloCluster *cluster) const |
DeepSCInputs::FeaturesMap | computeWindowVariables (const std::vector< DeepSCInputs::FeaturesMap > &clusters) const |
double | deltaEta (double seed_eta, double cluster_eta) const |
std::array< double, 3 > | dynamicWindow (double seedEta) const |
std::vector< std::vector< float > > | fillHits (const CaloCluster *cluster) const |
Private Attributes | |
CalibratedPFClusterVector | clusters_ |
const CaloSubdetectorGeometry * | ebGeom_ |
const CaloSubdetectorGeometry * | eeGeom_ |
reco::GraphMap | graphMap_ |
reco::DeepSCInputs::Inputs | inputs_ |
std::array< float, 3 > | locCov_ |
uint | nCls_ |
uint | nSeeds_ |
const EcalRecHitCollection * | recHitsEB_ |
const EcalRecHitCollection * | recHitsEE_ |
const reco::SCProducerCache * | scProducerCache_ |
reco::GraphMap::CollectionStrategy | strategy_ |
float | threshold_ |
const CaloTopology * | topology_ |
std::pair< double, double > | widths_ |
Definition at line 53 of file EcalClustersGraph.h.
typedef std::vector<CalibratedPFCluster> reco::EcalClustersGraph::CalibratedPFClusterVector |
Definition at line 55 of file EcalClustersGraph.h.
typedef std::vector<std::pair<CalibratedPFCluster, CalibratedPFClusterVector> > reco::EcalClustersGraph::EcalGraphOutput |
Definition at line 56 of file EcalClustersGraph.h.
EcalClustersGraph::EcalClustersGraph | ( | CalibratedPFClusterVector | clusters, |
int | nSeeds, | ||
const CaloTopology * | topology, | ||
const CaloSubdetectorGeometry * | ebGeom, | ||
const CaloSubdetectorGeometry * | eeGeom, | ||
const EcalRecHitCollection * | recHitsEB, | ||
const EcalRecHitCollection * | recHitsEE, | ||
const reco::SCProducerCache * | cache | ||
) |
Definition at line 10 of file EcalClustersGraph.cc.
References reco::GraphMap::addNode(), reco::DeepSCInputs::Inputs::clustersX, reco::DeepSCConfiguration::collectionStrategy, reco::SCProducerCache::config, graphMap_, reco::DeepSCInputs::Inputs::hitsX, mps_fire::i, inputs_, reco::DeepSCInputs::Inputs::isSeed, LogTrace, nCls_, nSeeds_, scProducerCache_, strategy_, and reco::DeepSCInputs::Inputs::windowX.
|
private |
Definition at line 59 of file EcalClustersGraph.cc.
References reco::CaloCluster::caloID(), ebGeom_, PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, eeGeom_, PFLayer::fromCaloID(), CaloSubdetectorGeometry::getClosestCell(), LEDCalibrationChannels::ieta, LEDCalibrationChannels::iphi, and reco::CaloCluster::position().
Referenced by computeVariables(), and initWindows().
|
private |
Definition at line 253 of file EcalClustersGraph.cc.
References reco::CaloCluster::caloID(), reco::deltaPhi(), bTagMiniDQMDeepCSV::denominator, HLT_2023v12_cff::dEta, ebGeom_, PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, eeGeom_, edm::SortedCollection< T, SORT >::end(), reco::CaloCluster::energy(), photons_cff::etaWidth, edm::SortedCollection< T, SORT >::find(), PFLayer::fromCaloID(), CaloSubdetectorGeometry::getGeometry(), reco::CaloCluster::hitsAndFractions(), photons_cff::phiWidth, reco::CaloCluster::position(), position, recHitsEB_, recHitsEE_, and mathSSE::sqrt().
Referenced by computeShowerShapes().
|
private |
Definition at line 298 of file EcalClustersGraph.cc.
References reco::CaloCluster::caloID(), computeCovariances(), StorageManager_cfg::e1, EcalClusterToolsT< noZS >::e3x3(), vertexPlots::e4, EcalClusterToolsT< noZS >::eBottom(), PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, EcalClusterToolsT< noZS >::eLeft(), cosmicPhotonAnalyzer_cfi::eMax, EcalClusterToolsT< noZS >::eMax(), reco::CaloCluster::energy(), EcalClusterToolsT< noZS >::eRight(), EcalClusterToolsT< noZS >::eTop(), PFLayer::fromCaloID(), reco::CaloCluster::hitsAndFractions(), edm::isFinite(), EcalClusterToolsT< noZS >::localCovariances(), locCov_, electrons_cff::r9, recHitsEB_, recHitsEE_, mathSSE::sqrt(), topology_, and widths_.
|
private |
Definition at line 204 of file EcalClustersGraph.cc.
References clusterPosition(), deltaEta(), reco::deltaPhi(), reco::CaloCluster::energy(), reco::CaloCluster::eta(), reco::CaloCluster::hitsAndFractions(), reco::CaloCluster::phi(), and fileCollector::seed.
Referenced by fillVariables().
|
private |
Definition at line 229 of file EcalClustersGraph.cc.
References bsc_activity_cfg::clusters, crabWrapper::key, SiStripPI::max, SiStripPI::min, and heppy_batch::val.
Referenced by fillVariables().
|
inlineprivate |
Definition at line 82 of file EcalClustersGraph.h.
Referenced by computeVariables(), and initWindows().
|
private |
Definition at line 87 of file EcalClustersGraph.cc.
References funct::abs(), PVValHelper::eta, and svgfig::window().
Referenced by initWindows().
void EcalClustersGraph::evaluateScores | ( | ) |
Definition at line 398 of file EcalClustersGraph.cc.
References reco::SCProducerCache::deepSCEvaluator, reco::GraphMap::getOutEdges(), graphMap_, mps_fire::i, inputs_, dqmiolumiharvest::j, dqmdumpme::k, LogTrace, nSeeds_, scProducerCache_, reco::GraphMap::setAdjMatrix(), and parallelization::uint.
|
private |
Definition at line 166 of file EcalClustersGraph.cc.
References reco::SCProducerCache::deepSCEvaluator, EcalBarrel, EcalEndcap, HCALHighEnergyHPDFilter_cfi::energy, edm::SortedCollection< T, SORT >::find(), dqmdumpme::first, reco::CaloCluster::hitsAndFractions(), mps_fire::i, EBDetId::ieta(), EBDetId::iphi(), EEDetId::ix(), EEDetId::iy(), MillePedeFileConverter_cfg::out, recHitsEB_, recHitsEE_, scProducerCache_, and EEDetId::zside().
Referenced by fillVariables().
void EcalClustersGraph::fillVariables | ( | ) |
Definition at line 356 of file EcalClustersGraph.cc.
References clusters_, reco::DeepSCInputs::Inputs::clustersX, computeVariables(), computeWindowVariables(), reco::SCProducerCache::deepSCEvaluator, fillHits(), reco::GraphMap::getOutEdges(), graphMap_, reco::DeepSCInputs::Inputs::hitsX, inputs_, reco::DeepSCInputs::Inputs::isSeed, crabWrapper::key, LogDebug, LogTrace, nSeeds_, scProducerCache_, parallelization::uint, heppy_batch::val, and reco::DeepSCInputs::Inputs::windowX.
EcalClustersGraph::EcalGraphOutput EcalClustersGraph::getGraphOutput | ( | ) |
Definition at line 425 of file EcalClustersGraph.cc.
References clusters_, reco::GraphMap::getGraphOutput(), graphMap_, and fileCollector::seed.
void EcalClustersGraph::initWindows | ( | ) |
Definition at line 135 of file EcalClustersGraph.cc.
References funct::abs(), reco::GraphMap::addEdge(), clusterPosition(), clusters_, deltaEta(), reco::deltaPhi(), dynamicWindow(), graphMap_, nCls_, nSeeds_, parallelization::uint, and ApeEstimator_cff::width.
double reco::EcalClustersGraph::scoreThreshold | ( | const CaloCluster * | cluster | ) |
void EcalClustersGraph::selectClusters | ( | ) |
Definition at line 420 of file EcalClustersGraph.cc.
References reco::GraphMap::collectNodes(), graphMap_, strategy_, and threshold_.
void EcalClustersGraph::setThresholds | ( | ) |
|
private |
Definition at line 97 of file EcalClustersGraph.h.
Referenced by fillVariables(), getGraphOutput(), and initWindows().
|
private |
Definition at line 106 of file EcalClustersGraph.h.
Referenced by clusterPosition(), and computeCovariances().
|
private |
Definition at line 107 of file EcalClustersGraph.h.
Referenced by clusterPosition(), and computeCovariances().
|
private |
Definition at line 113 of file EcalClustersGraph.h.
Referenced by EcalClustersGraph(), evaluateScores(), fillVariables(), getGraphOutput(), initWindows(), and selectClusters().
|
private |
Definition at line 117 of file EcalClustersGraph.h.
Referenced by EcalClustersGraph(), evaluateScores(), and fillVariables().
|
private |
Definition at line 101 of file EcalClustersGraph.h.
Referenced by computeShowerShapes().
|
private |
Definition at line 99 of file EcalClustersGraph.h.
Referenced by EcalClustersGraph(), and initWindows().
|
private |
Definition at line 98 of file EcalClustersGraph.h.
Referenced by EcalClustersGraph(), evaluateScores(), fillVariables(), and initWindows().
|
private |
Definition at line 108 of file EcalClustersGraph.h.
Referenced by computeCovariances(), computeShowerShapes(), and fillHits().
|
private |
Definition at line 109 of file EcalClustersGraph.h.
Referenced by computeCovariances(), computeShowerShapes(), and fillHits().
|
private |
Definition at line 110 of file EcalClustersGraph.h.
Referenced by EcalClustersGraph(), evaluateScores(), fillHits(), and fillVariables().
|
private |
Definition at line 114 of file EcalClustersGraph.h.
Referenced by EcalClustersGraph(), and selectClusters().
|
private |
Definition at line 118 of file EcalClustersGraph.h.
Referenced by selectClusters(), and setThresholds().
|
private |
Definition at line 105 of file EcalClustersGraph.h.
Referenced by computeShowerShapes().
|
private |
Definition at line 102 of file EcalClustersGraph.h.
Referenced by computeShowerShapes().