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_ |
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 74 of file EGRegressionModifierV3.cc.
|
override |
Definition at line 91 of file EGRegressionModifierV3.cc.
|
private |
Definition at line 209 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(), reco::GsfElectron::isEB(), SiStripPI::max, reco::GsfElectron::nSaturatedXtals(), reco::CaloCluster::phi(), rhoValue_, and reco::GsfElectron::superCluster().
Referenced by modifyObject().
|
private |
Definition at line 274 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(), reco::Photon::isEB(), SiStripPI::max, reco::Photon::nSaturatedXtals(), reco::CaloCluster::phi(), rhoValue_, and reco::Photon::superCluster().
|
private |
Definition at line 343 of file EGRegressionModifierV3.cc.
References caloGeomHandle_, EcalBarrel, EBDetId::ieta(), EEDetId::ix(), egammaTools::localEcalClusterCoordsEB(), egammaTools::localEcalClusterCoordsEE(), reco::CaloCluster::seed(), DetId::subdetId(), and useClosestToCentreSeedCrysDef_.
Referenced by getRegData().
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 107 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_, min(), reco::GsfElectron::nSaturatedXtals(), reco::GsfElectron::p4(), reco::GsfElectron::setCorrectedEcalEnergy(), reco::GsfElectron::setCorrectedEcalEnergyError(), reco::GsfElectron::superCluster(), and reco::GsfElectron::trackMomentumError().
Referenced by modifyObject().
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 164 of file EGRegressionModifierV3.cc.
References DetId::Forward, getRegData(), edm::Ref< C, T, F >::isAvailable(), reco::Photon::isEB(), CastorSimpleRecAlgoImpl::isSaturated(), maxRawEnergyForLowPtEBSigma_, maxRawEnergyForLowPtEESigma_, min(), reco::Photon::nSaturatedXtals(), phoRegs_, reco::Photon::setCorrectedEnergy(), and reco::Photon::superCluster().
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 159 of file EGRegressionModifierV3.cc.
References modifyObject().
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 205 of file EGRegressionModifierV3.cc.
References modifyObject().
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 93 of file EGRegressionModifierV3.cc.
References edm::Event::getByToken(), rhoToken_, and rhoValue_.
|
finalvirtual |
Reimplemented from ModifyObjectValueBase.
Definition at line 100 of file EGRegressionModifierV3.cc.
References caloGeomHandle_, eleRegs_, edm::EventSetup::get(), phoRegs_, and useClosestToCentreSeedCrysDef_.
|
private |
Definition at line 66 of file EGRegressionModifierV3.cc.
Referenced by getSeedCrysCoord(), and setEventContent().
|
private |
Definition at line 57 of file EGRegressionModifierV3.cc.
Referenced by 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 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 getSeedCrysCoord(), and setEventContent().