#include <SCEnergyCorrectorSemiParm.h>
Public Member Functions | |
std::pair< double, double > | getCorrections (const reco::SuperCluster &sc) const |
void | modifyObject (reco::SuperCluster &sc) |
SCEnergyCorrectorSemiParm () | |
void | setEvent (const edm::Event &e) |
void | setEventSetup (const edm::EventSetup &es) |
void | setTokens (const edm::ParameterSet &iConfig, edm::ConsumesCollector &cc) |
~SCEnergyCorrectorSemiParm () | |
Protected Attributes | |
edm::ESHandle< CaloGeometry > | calogeom_ |
edm::ESHandle< CaloTopology > | calotopo_ |
edm::InputTag | ecalHitsEBInputTag_ |
edm::InputTag | ecalHitsEEInputTag_ |
const GBRForestD * | foresteb_ |
const GBRForestD * | forestee_ |
const GBRForestD * | forestsigmaeb_ |
const GBRForestD * | forestsigmaee_ |
edm::Handle< EcalRecHitCollection > | rechitsEB_ |
edm::Handle< EcalRecHitCollection > | rechitsEE_ |
std::string | regressionKeyEB_ |
std::string | regressionKeyEE_ |
edm::EDGetTokenT< EcalRecHitCollection > | tokenEBRecHits_ |
edm::EDGetTokenT< EcalRecHitCollection > | tokenEERecHits_ |
edm::EDGetTokenT< reco::VertexCollection > | tokenVertices_ |
std::string | uncertaintyKeyEB_ |
std::string | uncertaintyKeyEE_ |
edm::InputTag | vertexInputTag_ |
edm::Handle< reco::VertexCollection > | vertices_ |
Private Attributes | |
float | eThreshold_ |
bool | isHLT_ |
int | nHitsAboveThreshold_ |
Definition at line 30 of file SCEnergyCorrectorSemiParm.h.
SCEnergyCorrectorSemiParm::SCEnergyCorrectorSemiParm | ( | ) |
Definition at line 16 of file SCEnergyCorrectorSemiParm.cc.
SCEnergyCorrectorSemiParm::~SCEnergyCorrectorSemiParm | ( | ) |
Definition at line 26 of file SCEnergyCorrectorSemiParm.cc.
std::pair< double, double > SCEnergyCorrectorSemiParm::getCorrections | ( | const reco::SuperCluster & | sc | ) | const |
Definition at line 100 of file SCEnergyCorrectorSemiParm.cc.
References calotopo_, reco::SuperCluster::clusters(), reco::SuperCluster::clustersBegin(), reco::SuperCluster::clustersEnd(), constexpr, reco::deltaPhi(), reco::deltaR(), DetId::det(), EcalBarrel, photonPostprocessing_cfi::eMax, reco::CaloCluster::energy(), reco::CaloCluster::eta(), reco::SuperCluster::etaWidth(), foresteb_, forestee_, forestsigmaeb_, forestsigmaee_, DetId::Forward, GBRForestD::GetResponse(), reco::CaloCluster::hitsAndFractions(), EBDetId::ieta(), isHLT_, edm::isNotFinite(), EEDetId::ix(), hpstanc_transforms::max, interestingEgammaIsoDetIdsSequence_cff::maxDR, RecoTauDiscriminantConfiguration::mean, nHitsAboveThreshold_, AlCaHLTBitMon_ParallelJobs::p, reco::CaloCluster::phi(), reco::SuperCluster::phiWidth(), reco::SuperCluster::preshowerEnergy(), edm::ESHandle< T >::product(), reco::SuperCluster::rawEnergy(), rechitsEB_, rechitsEE_, reco::SuperCluster::seed(), reco::CaloCluster::seed(), ctppsDiamondLocalTracks_cfi::sigma, edm::PtrVectorBase::size(), mathSSE::sqrt(), and vertices_.
Referenced by modifyObject().
void SCEnergyCorrectorSemiParm::modifyObject | ( | reco::SuperCluster & | sc | ) |
Definition at line 309 of file SCEnergyCorrectorSemiParm.cc.
References getCorrections(), isHLT_, reco::CaloCluster::setCorrectedEnergy(), reco::CaloCluster::setCorrectedEnergyUncertainty(), and reco::CaloCluster::setEnergy().
void SCEnergyCorrectorSemiParm::setEvent | ( | const edm::Event & | e | ) |
Definition at line 71 of file SCEnergyCorrectorSemiParm.cc.
References edm::SortedCollection< T, SORT >::begin(), edm::SortedCollection< T, SORT >::end(), eThreshold_, edm::Event::getByToken(), isHLT_, nHitsAboveThreshold_, nullptr, EcalDeadCellBoundaryEnergyFilter_cfi::recHitsEB, rechitsEB_, EcalDeadCellBoundaryEnergyFilter_cfi::recHitsEE, rechitsEE_, tokenEBRecHits_, tokenEERecHits_, tokenVertices_, and vertices_.
void SCEnergyCorrectorSemiParm::setEventSetup | ( | const edm::EventSetup & | es | ) |
Definition at line 49 of file SCEnergyCorrectorSemiParm.cc.
References calogeom_, calotopo_, foresteb_, forestee_, forestsigmaeb_, forestsigmaee_, edm::EventSetup::get(), edm::ESHandle< T >::product(), regressionKeyEB_, regressionKeyEE_, uncertaintyKeyEB_, and uncertaintyKeyEE_.
void SCEnergyCorrectorSemiParm::setTokens | ( | const edm::ParameterSet & | iConfig, |
edm::ConsumesCollector & | cc | ||
) |
Definition at line 30 of file SCEnergyCorrectorSemiParm.cc.
References edm::ConsumesCollector::consumes(), eThreshold_, edm::ParameterSet::getParameter(), isHLT_, regressionKeyEB_, regressionKeyEE_, AlCaHLTBitMon_QueryRunRegistry::string, tokenEBRecHits_, tokenEERecHits_, tokenVertices_, uncertaintyKeyEB_, and uncertaintyKeyEE_.
|
protected |
Definition at line 50 of file SCEnergyCorrectorSemiParm.h.
Referenced by setEventSetup().
|
protected |
Definition at line 49 of file SCEnergyCorrectorSemiParm.h.
Referenced by getCorrections(), and setEventSetup().
|
protected |
Definition at line 60 of file SCEnergyCorrectorSemiParm.h.
|
protected |
Definition at line 61 of file SCEnergyCorrectorSemiParm.h.
|
private |
Definition at line 72 of file SCEnergyCorrectorSemiParm.h.
Referenced by setEvent(), and setTokens().
|
protected |
Definition at line 44 of file SCEnergyCorrectorSemiParm.h.
Referenced by getCorrections(), and setEventSetup().
|
protected |
Definition at line 45 of file SCEnergyCorrectorSemiParm.h.
Referenced by getCorrections(), and setEventSetup().
|
protected |
Definition at line 46 of file SCEnergyCorrectorSemiParm.h.
Referenced by getCorrections(), and setEventSetup().
|
protected |
Definition at line 47 of file SCEnergyCorrectorSemiParm.h.
Referenced by getCorrections(), and setEventSetup().
|
private |
Definition at line 70 of file SCEnergyCorrectorSemiParm.h.
Referenced by getCorrections(), modifyObject(), setEvent(), and setTokens().
|
private |
Definition at line 71 of file SCEnergyCorrectorSemiParm.h.
Referenced by getCorrections(), and setEvent().
|
protected |
Definition at line 57 of file SCEnergyCorrectorSemiParm.h.
Referenced by getCorrections(), and setEvent().
|
protected |
Definition at line 58 of file SCEnergyCorrectorSemiParm.h.
Referenced by getCorrections(), and setEvent().
|
protected |
Definition at line 64 of file SCEnergyCorrectorSemiParm.h.
Referenced by setEventSetup(), and setTokens().
|
protected |
Definition at line 66 of file SCEnergyCorrectorSemiParm.h.
Referenced by setEventSetup(), and setTokens().
|
protected |
Definition at line 52 of file SCEnergyCorrectorSemiParm.h.
Referenced by setEvent(), and setTokens().
|
protected |
Definition at line 53 of file SCEnergyCorrectorSemiParm.h.
Referenced by setEvent(), and setTokens().
|
protected |
Definition at line 54 of file SCEnergyCorrectorSemiParm.h.
Referenced by setEvent(), and setTokens().
|
protected |
Definition at line 65 of file SCEnergyCorrectorSemiParm.h.
Referenced by setEventSetup(), and setTokens().
|
protected |
Definition at line 67 of file SCEnergyCorrectorSemiParm.h.
Referenced by setEventSetup(), and setTokens().
|
protected |
Definition at line 62 of file SCEnergyCorrectorSemiParm.h.
|
protected |
Definition at line 56 of file SCEnergyCorrectorSemiParm.h.
Referenced by getCorrections(), and setEvent().