#include <PFECALSuperClusterAlgo.h>
Public Types | |
enum | clustering_type { kBOX = 1, kMustache = 2, kDeepSC = 3 } |
enum | energy_weight { kRaw, kCalibratedNoPS, kCalibratedTotal } |
Private Member Functions | |
void | buildAllSuperClusters (CalibratedPFClusterVector &, double seedthresh) |
void | buildAllSuperClustersDeepSC (CalibratedPFClusterVector &, double seedthresh) |
void | buildAllSuperClustersMustacheOrBox (CalibratedPFClusterVector &, double seedthresh) |
void | buildSuperClusterMustacheOrBox (CalibratedPFCluster &, CalibratedPFClusterVector &) |
void | finalizeSuperCluster (CalibratedPFCluster &seed, CalibratedPFClusterVector &clustered, bool isEE) |
Definition at line 66 of file PFECALSuperClusterAlgo.h.
Enumerator | |
---|---|
kRaw | |
kCalibratedNoPS | |
kCalibratedTotal |
Definition at line 69 of file PFECALSuperClusterAlgo.h.
PFECALSuperClusterAlgo::PFECALSuperClusterAlgo | ( | const reco::SCProducerCache * | cache | ) |
constructor
Definition at line 111 of file PFECALSuperClusterAlgo.cc.
|
private |
Definition at line 271 of file PFECALSuperClusterAlgo.cc.
References _clustype, buildAllSuperClustersDeepSC(), buildAllSuperClustersMustacheOrBox(), bsc_activity_cfg::clusters, kBOX, kDeepSC, and kMustache.
Referenced by run().
|
private |
Definition at line 294 of file PFECALSuperClusterAlgo.cc.
References barrelRecHits_, bsc_activity_cfg::clusters, HLT_2022v15_cff::distance, ebGeom_, PFLayer::ECAL_ENDCAP, eeGeom_, endcapRecHits_, finalizeSuperCluster(), SCProducerCache_, fileCollector::seed, threshIsET_, and topology_.
Referenced by buildAllSuperClusters().
|
private |
Definition at line 278 of file PFECALSuperClusterAlgo.cc.
References buildSuperClusterMustacheOrBox(), bsc_activity_cfg::clusters, and threshIsET_.
Referenced by buildAllSuperClusters().
|
private |
Definition at line 327 of file PFECALSuperClusterAlgo.cc.
References _clustype, bsc_activity_cfg::clusters, doSatelliteClusterMerge_, dropUnseedable_, PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, etawidthSuperClusterBarrel_, etawidthSuperClusterEndcap_, Exception, finalizeSuperCluster(), fractionForMajority_, PFLayer::HGCAL, mustacheSCParams_, phiwidthSuperClusterBarrel_, phiwidthSuperClusterEndcap_, satelliteThreshold_, scDynamicDPhiParams_, fileCollector::seed, superClustersEB_, superClustersEE_, useDynamicDPhi_, and verbose_.
Referenced by buildAllSuperClustersMustacheOrBox().
|
private |
Definition at line 413 of file PFECALSuperClusterAlgo.cc.
References _eweight, _pfEnergyCalibration, reco::SuperCluster::addCluster(), reco::CaloCluster::addHitAndFraction(), reco::SuperCluster::addPreshowerCluster(), applyCrackCorrections_, barrelRecHits_, beamSpot_, channelStatus_, TauDecayModes::dec, PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, EEtoPS_, endcapRecHits_, reco::CaloCluster::energy(), Exception, spr::find(), edm::SortedCollection< T, SORT >::find(), edm::Ptr< T >::get(), PFLayer::HGCAL, isOOTCollection_, kCalibratedNoPS, kCalibratedTotal, EcalRecHit::kOutOfTime, kRaw, PFClusterWidthAlgo::pflowEtaWidth(), PFClusterWidthAlgo::pflowPhiWidth(), reco::BeamSpot::position(), reco::CaloCluster::position(), RecoTauValidation_cfi::posX, RecoTauValidation_cfi::posY, reco::SuperCluster::preshowerClustersBegin(), reco::SuperCluster::preshowerClustersEnd(), ptFast(), reco::SuperCluster::rawEnergy(), regr_, reco::SuperCluster::seed(), fileCollector::seed, reco::CaloCluster::setCorrectedEnergy(), reco::SuperCluster::setEtaWidth(), reco::SuperCluster::setPhiWidth(), reco::SuperCluster::setPreshowerEnergy(), reco::SuperCluster::setPreshowerEnergyPlane1(), reco::SuperCluster::setPreshowerEnergyPlane2(), reco::SuperCluster::setSeed(), sortByKey(), superClustersEB_, superClustersEE_, threshSuperClusterEt_, and useRegression_.
Referenced by buildAllSuperClustersDeepSC(), and buildSuperClusterMustacheOrBox().
|
inline |
Definition at line 114 of file PFECALSuperClusterAlgo.h.
References superClustersEB_.
Referenced by PFECALSuperClusterProducer::produce().
|
inline |
Definition at line 115 of file PFECALSuperClusterAlgo.h.
References superClustersEE_.
Referenced by PFECALSuperClusterProducer::produce().
void PFECALSuperClusterAlgo::loadAndSortPFClusters | ( | const edm::Event & | evt | ) |
Definition at line 184 of file PFECALSuperClusterAlgo.cc.
References _clustersEB, _clustersEE, _clustype, barrelRecHits_, beamSpot_, bsc_activity_cfg::clusters, PFLayer::ECAL_BARREL, PFLayer::ECAL_ENDCAP, EEtoPS_, endcapRecHits_, CalibratedPFCluster::energy(), Exception, PFLayer::HGCAL, mps_fire::i, iEvent, inputTagBarrelRecHits_, inputTagBeamSpot_, inputTagEndcapRecHits_, inputTagPFClusters_, inputTagPFClustersES_, isOOTCollection_, edm::HandleBase::isValid(), kDeepSC, LogDebug, edm::Handle< T >::product(), regr_, jetUpdater_cfi::sort, superClustersEB_, superClustersEE_, threshPFClusterBarrel_, threshPFClusterEndcap_, and useRegression_.
Referenced by PFECALSuperClusterProducer::produce().
void PFECALSuperClusterAlgo::run | ( | ) |
Definition at line 264 of file PFECALSuperClusterAlgo.cc.
References _clustersEB, _clustersEE, buildAllSuperClusters(), threshPFClusterSeedBarrel_, and threshPFClusterSeedEndcap_.
Referenced by PFECALSuperClusterProducer::produce().
|
inline |
Definition at line 76 of file PFECALSuperClusterAlgo.h.
References _clustype.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 107 of file PFECALSuperClusterAlgo.h.
References HLT_2022v15_cff::applyCrackCorrections, and applyCrackCorrections_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 103 of file PFECALSuperClusterAlgo.h.
References ztail::d, and dropUnseedable_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 78 of file PFECALSuperClusterAlgo.h.
References _eweight.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 94 of file PFECALSuperClusterAlgo.h.
References etawidthSuperClusterBarrel_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 96 of file PFECALSuperClusterAlgo.h.
References etawidthSuperClusterEndcap_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 105 of file PFECALSuperClusterAlgo.h.
References HLT_2022v15_cff::isOOTCollection, and isOOTCollection_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 102 of file PFECALSuperClusterAlgo.h.
References f, and fractionForMajority_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
void PFECALSuperClusterAlgo::setPFClusterCalibration | ( | const std::shared_ptr< PFEnergyCalibration > & | calib | ) |
Definition at line 114 of file PFECALSuperClusterAlgo.cc.
References _pfEnergyCalibration, and l1tEGammaCrystalsEmulatorProducer_cfi::calib.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 93 of file PFECALSuperClusterAlgo.h.
References phiwidthSuperClusterBarrel_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 95 of file PFECALSuperClusterAlgo.h.
References phiwidthSuperClusterEndcap_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 100 of file PFECALSuperClusterAlgo.h.
References doSatelliteClusterMerge_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 101 of file PFECALSuperClusterAlgo.h.
References satelliteThreshold_, and submitPVValidationJobs::t.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 89 of file PFECALSuperClusterAlgo.h.
References DMR_cfg::thresh, and threshPFClusterBarrel_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 91 of file PFECALSuperClusterAlgo.h.
References DMR_cfg::thresh, and threshPFClusterEndcap_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 88 of file PFECALSuperClusterAlgo.h.
References DMR_cfg::thresh, and threshPFClusterSeedBarrel_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 90 of file PFECALSuperClusterAlgo.h.
References DMR_cfg::thresh, and threshPFClusterSeedEndcap_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 86 of file PFECALSuperClusterAlgo.h.
References DMR_cfg::thresh, and threshSuperClusterEt_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
void PFECALSuperClusterAlgo::setTokens | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector && | cc | ||
) |
Definition at line 118 of file PFECALSuperClusterAlgo.cc.
References _clustype, edm::BeginLuminosityBlock, caloGeometryToken_, caloTopologyToken_, gpuPixelDoublets::cc, ecalMustacheSCParametersToken_, ecalSCDynamicDPhiParametersToken_, esChannelStatusToken_, esEEInterCalibToken_, edm::ParameterSet::getParameter(), inputTagBarrelRecHits_, inputTagBeamSpot_, inputTagEndcapRecHits_, inputTagPFClusters_, inputTagPFClustersES_, isOOTCollection_, kDeepSC, kMustache, regr_, useDynamicDPhi_, and useRegression_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 82 of file PFECALSuperClusterAlgo.h.
References useDynamicDPhi_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 80 of file PFECALSuperClusterAlgo.h.
References threshIsET_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 84 of file PFECALSuperClusterAlgo.h.
References HLT_2022v15_cff::useRegression, and useRegression_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
|
inline |
Definition at line 74 of file PFECALSuperClusterAlgo.h.
References verbose, and verbose_.
Referenced by PFECALSuperClusterProducer::PFECALSuperClusterProducer().
void PFECALSuperClusterAlgo::update | ( | const edm::EventSetup & | setup | ) |
Definition at line 152 of file PFECALSuperClusterAlgo.cc.
References _clustype, _pfEnergyCalibration, caloGeometryToken_, caloTopologyToken_, channelStatus_, ebGeom_, DetId::Ecal, EcalBarrel, EcalEndcap, EcalPreshower, eeGeom_, esChannelStatusToken_, esEEInterCalibToken_, esGeom_, geometry_, CaloGeometry::getSubdetectorGeometry(), kDeepSC, edm::ESHandle< T >::product(), regr_, singleTopDQM_cfi::setup, topology_, and useRegression_.
Referenced by progressbar.ProgressBar::__next__(), MatrixUtil.Matrix::__setitem__(), MatrixUtil.Steps::__setitem__(), PFECALSuperClusterProducer::beginLuminosityBlock(), progressbar.ProgressBar::finish(), and MatrixUtil.Steps::overwrite().
void PFECALSuperClusterAlgo::updateSCParams | ( | const edm::EventSetup & | setup | ) |
Definition at line 175 of file PFECALSuperClusterAlgo.cc.
References _clustype, ecalMustacheSCParametersToken_, ecalSCDynamicDPhiParametersToken_, kMustache, mustacheSCParams_, scDynamicDPhiParams_, singleTopDQM_cfi::setup, and useDynamicDPhi_.
Referenced by PFECALSuperClusterProducer::produce().
|
private |
Definition at line 144 of file PFECALSuperClusterAlgo.h.
Referenced by loadAndSortPFClusters(), and run().
|
private |
Definition at line 145 of file PFECALSuperClusterAlgo.h.
Referenced by loadAndSortPFClusters(), and run().
|
private |
Definition at line 150 of file PFECALSuperClusterAlgo.h.
Referenced by buildAllSuperClusters(), buildSuperClusterMustacheOrBox(), loadAndSortPFClusters(), setClusteringType(), setTokens(), update(), and updateSCParams().
|
private |
Definition at line 151 of file PFECALSuperClusterAlgo.h.
Referenced by finalizeSuperCluster(), and setEnergyWeighting().
|
private |
Definition at line 149 of file PFECALSuperClusterAlgo.h.
Referenced by finalizeSuperCluster(), setPFClusterCalibration(), and update().
|
private |
Definition at line 182 of file PFECALSuperClusterAlgo.h.
Referenced by finalizeSuperCluster(), and setCrackCorrections().
|
private |
Definition at line 191 of file PFECALSuperClusterAlgo.h.
Referenced by buildAllSuperClustersDeepSC(), finalizeSuperCluster(), and loadAndSortPFClusters().
|
private |
Definition at line 133 of file PFECALSuperClusterAlgo.h.
Referenced by finalizeSuperCluster(), and loadAndSortPFClusters().
|
private |
Definition at line 131 of file PFECALSuperClusterAlgo.h.
Referenced by setTokens(), and update().
|
private |
Definition at line 130 of file PFECALSuperClusterAlgo.h.
Referenced by setTokens(), and update().
|
private |
Definition at line 134 of file PFECALSuperClusterAlgo.h.
Referenced by finalizeSuperCluster(), and update().
|
private |
Definition at line 176 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and setSatelliteMerging().
|
private |
Definition at line 178 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and setDropUnseedable().
|
private |
Definition at line 136 of file PFECALSuperClusterAlgo.h.
Referenced by buildAllSuperClustersDeepSC(), and update().
|
private |
Definition at line 128 of file PFECALSuperClusterAlgo.h.
Referenced by setTokens(), and updateSCParams().
|
private |
Definition at line 129 of file PFECALSuperClusterAlgo.h.
Referenced by setTokens(), and updateSCParams().
|
private |
Definition at line 137 of file PFECALSuperClusterAlgo.h.
Referenced by buildAllSuperClustersDeepSC(), and update().
|
private |
Definition at line 148 of file PFECALSuperClusterAlgo.h.
Referenced by finalizeSuperCluster(), and loadAndSortPFClusters().
|
private |
Definition at line 192 of file PFECALSuperClusterAlgo.h.
Referenced by buildAllSuperClustersDeepSC(), finalizeSuperCluster(), and loadAndSortPFClusters().
|
private |
Definition at line 127 of file PFECALSuperClusterAlgo.h.
Referenced by setTokens(), and update().
|
private |
Definition at line 126 of file PFECALSuperClusterAlgo.h.
Referenced by setTokens(), and update().
|
private |
Definition at line 138 of file PFECALSuperClusterAlgo.h.
Referenced by update().
|
private |
Definition at line 172 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and setEtawidthSuperClusterBarrel().
|
private |
Definition at line 174 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and setEtawidthSuperClusterEndcap().
|
private |
Definition at line 177 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and setMajorityFraction().
|
private |
Definition at line 135 of file PFECALSuperClusterAlgo.h.
Referenced by update().
|
private |
Definition at line 189 of file PFECALSuperClusterAlgo.h.
Referenced by loadAndSortPFClusters(), and setTokens().
|
private |
Definition at line 124 of file PFECALSuperClusterAlgo.h.
Referenced by loadAndSortPFClusters(), and setTokens().
|
private |
Definition at line 190 of file PFECALSuperClusterAlgo.h.
Referenced by loadAndSortPFClusters(), and setTokens().
|
private |
Definition at line 122 of file PFECALSuperClusterAlgo.h.
Referenced by loadAndSortPFClusters(), and setTokens().
|
private |
Definition at line 123 of file PFECALSuperClusterAlgo.h.
Referenced by loadAndSortPFClusters(), and setTokens().
|
private |
Definition at line 188 of file PFECALSuperClusterAlgo.h.
Referenced by finalizeSuperCluster(), loadAndSortPFClusters(), setIsOOTCollection(), and setTokens().
|
private |
Definition at line 141 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and updateSCParams().
|
private |
Definition at line 171 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and setPhiwidthSuperClusterBarrel().
|
private |
Definition at line 173 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and setPhiwidthSuperClusterEndcap().
|
private |
Definition at line 162 of file PFECALSuperClusterAlgo.h.
Referenced by finalizeSuperCluster(), loadAndSortPFClusters(), setTokens(), and update().
|
private |
Definition at line 177 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and setSatelliteThreshold().
|
private |
Definition at line 142 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and updateSCParams().
|
private |
Definition at line 185 of file PFECALSuperClusterAlgo.h.
Referenced by buildAllSuperClustersDeepSC().
|
private |
Definition at line 146 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), finalizeSuperCluster(), getEBOutputSCCollection(), and loadAndSortPFClusters().
|
private |
Definition at line 147 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), finalizeSuperCluster(), getEEOutputSCCollection(), and loadAndSortPFClusters().
|
private |
Definition at line 183 of file PFECALSuperClusterAlgo.h.
Referenced by buildAllSuperClustersDeepSC(), buildAllSuperClustersMustacheOrBox(), and setUseETForSeeding().
|
private |
Definition at line 167 of file PFECALSuperClusterAlgo.h.
Referenced by loadAndSortPFClusters(), and setThreshPFClusterBarrel().
|
private |
Definition at line 169 of file PFECALSuperClusterAlgo.h.
Referenced by loadAndSortPFClusters(), and setThreshPFClusterEndcap().
|
private |
Definition at line 166 of file PFECALSuperClusterAlgo.h.
Referenced by run(), and setThreshPFClusterSeedBarrel().
|
private |
Definition at line 168 of file PFECALSuperClusterAlgo.h.
Referenced by run(), and setThreshPFClusterSeedEndcap().
|
private |
Definition at line 164 of file PFECALSuperClusterAlgo.h.
Referenced by finalizeSuperCluster(), and setThreshSuperClusterEt().
|
private |
Definition at line 139 of file PFECALSuperClusterAlgo.h.
Referenced by buildAllSuperClustersDeepSC(), and update().
|
private |
Definition at line 180 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), setTokens(), setUseDynamicDPhi(), and updateSCParams().
|
private |
Definition at line 161 of file PFECALSuperClusterAlgo.h.
Referenced by finalizeSuperCluster(), loadAndSortPFClusters(), setTokens(), setUseRegression(), and update().
|
private |
Definition at line 158 of file PFECALSuperClusterAlgo.h.
Referenced by buildSuperClusterMustacheOrBox(), and setVerbosityLevel().