Classes | |
struct | EleRegs |
struct | PhoRegs |
Public Member Functions | |
EGRegressionModifierV3 (const edm::ParameterSet &conf, edm::ConsumesCollector &cc) | |
void | modifyObject (reco::GsfElectron &) const final |
void | modifyObject (reco::Photon &) const final |
void | modifyObject (pat::Electron &) const final |
void | modifyObject (pat::Photon &) const final |
void | setEvent (const edm::Event &) final |
void | setEventContent (const edm::EventSetup &) final |
~EGRegressionModifierV3 () override | |
Public Member Functions inherited from ModifyObjectValueBase | |
virtual void | modifyObject (reco::Muon &) const |
virtual void | modifyObject (reco::BaseTau &) const |
virtual void | modifyObject (reco::Jet &) const |
virtual void | modifyObject (pat::Muon &) const |
virtual void | modifyObject (pat::Tau &) const |
virtual void | modifyObject (pat::Jet &) const |
ModifyObjectValueBase (const edm::ParameterSet &conf) | |
const std::string & | name () const |
virtual | ~ModifyObjectValueBase () |
Private Member Functions | |
std::array< float, 32 > | getRegData (const reco::GsfElectron &ele) const |
std::array< float, 32 > | getRegData (const reco::Photon &pho) const |
void | getSeedCrysCoord (const reco::CaloCluster &clus, int &iEtaOrX, int &iPhiOrY) const |
Private Attributes | |
edm::ESHandle< CaloGeometry > | caloGeomHandle_ |
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > | caloGeomToken_ |
std::unique_ptr< EleRegs > | eleRegs_ |
float | maxRawEnergyForLowPtEBSigma_ |
float | maxRawEnergyForLowPtEESigma_ |
std::unique_ptr< PhoRegs > | phoRegs_ |
edm::EDGetTokenT< double > | rhoToken_ |
float | rhoValue_ |
bool | useClosestToCentreSeedCrysDef_ |
Definition at line 22 of file EGRegressionModifierV3.cc.
EGRegressionModifierV3::EGRegressionModifierV3 | ( | const edm::ParameterSet & | conf, |
edm::ConsumesCollector & | cc | ||
) |
Definition at line 72 of file EGRegressionModifierV3.cc.
References caloGeomToken_, gpuPixelDoublets::cc, eleRegs_, edm::ParameterSet::exists(), edm::ParameterSet::getParameterSet(), phoRegs_, and useClosestToCentreSeedCrysDef_.
|
override |
Definition at line 90 of file EGRegressionModifierV3.cc.
|
private |
Definition at line 203 of file EGRegressionModifierV3.cc.
References funct::abs(), data, reco::deltaPhi(), reco::GsfElectron::ShowerShape::e5x5, reco::CaloCluster::eta(), reco::GsfElectron::full5x5_showerShape(), getSeedCrysCoord(), reco::GsfElectron::hcalOverEcalBc(), l1tTowerCalibrationProducer_cfi::iEta, electrons_cff::isEB, reco::GsfElectron::isEB(), SiStripPI::max, reco::GsfElectron::nSaturatedXtals(), reco::CaloCluster::phi(), electrons_cff::rawEnergy, rhoValue_, and reco::GsfElectron::superCluster().
Referenced by modifyObject().
|
private |
Definition at line 267 of file EGRegressionModifierV3.cc.
References funct::abs(), data, reco::deltaPhi(), reco::Photon::ShowerShape::e5x5, reco::CaloCluster::eta(), reco::Photon::full5x5_r9(), reco::Photon::full5x5_showerShapeVariables(), getSeedCrysCoord(), reco::Photon::hadronicOverEm(), l1tTowerCalibrationProducer_cfi::iEta, reco::Photon::isEB(), electrons_cff::isEB, SiStripPI::max, reco::Photon::nSaturatedXtals(), reco::CaloCluster::phi(), electrons_cff::rawEnergy, rhoValue_, and reco::Photon::superCluster().
|
private |
Definition at line 335 of file EGRegressionModifierV3.cc.
References caloGeomHandle_, EcalBarrel, EBDetId::ieta(), electrons_cff::isEB, EEDetId::ix(), egammaTools::localEcalClusterCoordsEB(), egammaTools::localEcalClusterCoordsEE(), reco::CaloCluster::seed(), DetId::subdetId(), and useClosestToCentreSeedCrysDef_.
Referenced by getRegData().
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 104 of file EGRegressionModifierV3.cc.
References reco::GsfElectron::correctMomentum(), eleRegs_, reco::GsfElectron::fbrem(), DetId::Forward, getRegData(), edm::Ref< C, T, F >::isAvailable(), reco::GsfElectron::isEB(), CastorSimpleRecAlgoImpl::isSaturated(), reco::GsfElectron::ClassificationVariables::kDefaultValue, maxRawEnergyForLowPtEBSigma_, maxRawEnergyForLowPtEESigma_, SiStripPI::min, reco::GsfElectron::nSaturatedXtals(), reco::GsfElectron::p4(), electrons_cff::rawEnergy, l1trig_cff::rawEt, reco::GsfElectron::setCorrectedEcalEnergy(), reco::GsfElectron::setCorrectedEcalEnergyError(), reco::GsfElectron::superCluster(), and reco::GsfElectron::trackMomentumError().
Referenced by modifyObject().
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 160 of file EGRegressionModifierV3.cc.
References DetId::Forward, getRegData(), edm::Ref< C, T, F >::isAvailable(), reco::Photon::isEB(), CastorSimpleRecAlgoImpl::isSaturated(), maxRawEnergyForLowPtEBSigma_, maxRawEnergyForLowPtEESigma_, SiStripPI::min, reco::Photon::nSaturatedXtals(), phoRegs_, electrons_cff::rawEnergy, l1trig_cff::rawEt, reco::Photon::setCorrectedEnergy(), and reco::Photon::superCluster().
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 156 of file EGRegressionModifierV3.cc.
References modifyObject().
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 201 of file EGRegressionModifierV3.cc.
References modifyObject().
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 92 of file EGRegressionModifierV3.cc.
References edm::Event::get(), rhoToken_, and rhoValue_.
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 94 of file EGRegressionModifierV3.cc.
References caloGeomHandle_, caloGeomToken_, eleRegs_, edm::EventSetup::getHandle(), phoRegs_, and useClosestToCentreSeedCrysDef_.
|
private |
Definition at line 67 of file EGRegressionModifierV3.cc.
Referenced by getSeedCrysCoord(), and setEventContent().
|
private |
Definition at line 66 of file EGRegressionModifierV3.cc.
Referenced by EGRegressionModifierV3(), and setEventContent().
|
private |
Definition at line 57 of file EGRegressionModifierV3.cc.
Referenced by EGRegressionModifierV3(), modifyObject(), and setEventContent().
|
private |
Definition at line 64 of file EGRegressionModifierV3.cc.
Referenced by modifyObject().
|
private |
Definition at line 65 of file EGRegressionModifierV3.cc.
Referenced by modifyObject().
|
private |
Definition at line 58 of file EGRegressionModifierV3.cc.
Referenced by EGRegressionModifierV3(), modifyObject(), and setEventContent().
|
private |
Definition at line 61 of file EGRegressionModifierV3.cc.
Referenced by setEvent().
|
private |
Definition at line 60 of file EGRegressionModifierV3.cc.
Referenced by getRegData(), and setEvent().
|
private |
Definition at line 63 of file EGRegressionModifierV3.cc.
Referenced by EGRegressionModifierV3(), getSeedCrysCoord(), and setEventContent().