#include <GainSwitchTools.h>
Public Types | |
enum | ShowerShapeType { ShowerShapeType::Full5x5 =0, ShowerShapeType::Fractions } |
Static Public Member Functions | |
static void | correctHadem (reco::GsfElectron::ShowerShape &showerShape, float eNewOverEOld, const GainSwitchTools::ShowerShapeType ssType) |
static void | correctHadem (reco::Photon::ShowerShape &showerShape, float eNewOverEOld) |
template<typename R , typename H , typename M > | |
static edm::Ref< typename H::element_type > | findNewRef (R const &, H const &, M const &) |
static std::vector< DetId > | gainSwitchedIdsIn5x5 (const DetId &id, const EcalRecHitCollection *recHits, const CaloTopology *topology) |
static const std::vector< int > | gainSwitchFlags () |
static bool | hasEBGainSwitch (const reco::SuperCluster &superClus, const EcalRecHitCollection *recHits) |
static bool | hasEBGainSwitch (const EcalRecHitCollection *recHits) |
static bool | hasEBGainSwitchIn5x5 (const reco::SuperCluster &superClus, const EcalRecHitCollection *recHits, const CaloTopology *topology) |
template<typename HANDLE > | |
static reco::SuperClusterRef | matchSCBySeedCrys (const reco::SuperCluster &, HANDLE const &) |
template<typename HANDLE > | |
static reco::SuperClusterRef | matchSCBySeedCrys (const reco::SuperCluster &, HANDLE const &, int maxDEta, int maxDPhi) |
static float | newRawEnergyNoFracs (const reco::SuperCluster &superClus, const std::vector< DetId > gainSwitchedHitIds, const EcalRecHitCollection *oldRecHits, const EcalRecHitCollection *newRecHits) |
static int | nrCrysWithFlagsIn5x5 (const DetId &id, const std::vector< int > &flags, const EcalRecHitCollection *recHits, const CaloTopology *topology) |
template<bool noZS> | |
static reco::GsfElectron::ShowerShape | redoEcalShowerShape (reco::GsfElectron::ShowerShape showerShape, const reco::SuperClusterRef &superClus, const EcalRecHitCollection *recHits, const CaloTopology *topology, const CaloGeometry *geometry) |
template<bool noZS> | |
static reco::Photon::ShowerShape | redoEcalShowerShape (reco::Photon::ShowerShape showerShape, const reco::SuperClusterRef &superClus, const EcalRecHitCollection *recHits, const CaloTopology *topology, const CaloGeometry *geometry) |
Static Private Member Functions | |
static int | calDIEta (int lhs, int rhs) |
static int | calDIPhi (int lhs, int rhs) |
Static Private Attributes | |
static const std::vector< int > | gainSwitchFlags_ ={EcalRecHit::kHasSwitchToGain6,EcalRecHit::kHasSwitchToGain1} |
Definition at line 21 of file GainSwitchTools.h.
|
strong |
Enumerator | |
---|---|
Full5x5 | |
Fractions |
Definition at line 25 of file GainSwitchTools.h.
|
staticprivate |
Definition at line 122 of file GainSwitchTools.cc.
Referenced by matchSCBySeedCrys().
|
staticprivate |
Definition at line 132 of file GainSwitchTools.cc.
Referenced by matchSCBySeedCrys().
|
static |
Definition at line 104 of file GainSwitchTools.cc.
References Full5x5, reco::GsfElectron::ShowerShape::hcalDepth1OverEcal, reco::GsfElectron::ShowerShape::hcalDepth1OverEcalBc, reco::GsfElectron::ShowerShape::hcalDepth2OverEcal, and reco::GsfElectron::ShowerShape::hcalDepth2OverEcalBc.
Referenced by PhotonGSCrysSimpleFixer::produce(), GsfEleGSCrysSimpleFixer::produce(), and GsfElectronGSCrysFixer::produce().
|
static |
Definition at line 113 of file GainSwitchTools.cc.
References reco::Photon::ShowerShape::hcalDepth1OverEcal, reco::Photon::ShowerShape::hcalDepth1OverEcalBc, reco::Photon::ShowerShape::hcalDepth2OverEcal, and reco::Photon::ShowerShape::hcalDepth2OverEcalBc.
|
static |
Definition at line 80 of file GainSwitchTools.h.
Referenced by GEDPhotonCoreGSCrysFixer::produce(), ConversionGSCrysFixer::produce(), PFGSFixLinker::produce(), and GsfElectronCoreGSCrysFixer::produce().
|
static |
Definition at line 64 of file GainSwitchTools.cc.
References edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), gainSwitchFlags(), CaloTopology::getSubdetectorTopology(), CaloNavigator< T, TOPO >::home(), and CaloNavigator< T, TOPO >::offsetBy().
Referenced by PhotonGSCrysSimpleFixer::produce(), and GsfEleGSCrysSimpleFixer::produce().
|
inlinestatic |
Definition at line 37 of file GainSwitchTools.h.
References gainSwitchFlags_.
Referenced by gainSwitchedIdsIn5x5(), hasEBGainSwitch(), and hasEBGainSwitchIn5x5().
|
static |
Definition at line 33 of file GainSwitchTools.cc.
References reco::SuperCluster::clusters(), EcalBarrel, edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), gainSwitchFlags(), and reco::SuperCluster::seed().
|
static |
Definition at line 54 of file GainSwitchTools.cc.
References EcalBarrel, gainSwitchFlags(), and hit::id.
|
static |
Definition at line 48 of file GainSwitchTools.cc.
References EcalBarrel, gainSwitchFlags(), nrCrysWithFlagsIn5x5(), HLT_25ns10e33_v2_cff::recHits, reco::SuperCluster::seed(), and ecaldqm::topology().
Referenced by GEDPhotonGSCrysFixer::produce(), PhotonGSCrysSimpleFixer::produce(), GsfEleGSCrysSimpleFixer::produce(), GsfElectronGSCrysFixer::produce(), and EGGainSwitchFlagProducer< C >::produce().
|
static |
Definition at line 93 of file GainSwitchTools.h.
References reco::SuperCluster::seed().
Referenced by EGRefinedSCFixer::produce().
|
static |
Definition at line 104 of file GainSwitchTools.h.
References calDIEta(), calDIPhi(), EcalBarrel, and reco::SuperCluster::seed().
|
static |
Definition at line 86 of file GainSwitchTools.cc.
References edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), and reco::SuperCluster::rawEnergy().
Referenced by PhotonGSCrysSimpleFixer::produce(), and GsfEleGSCrysSimpleFixer::produce().
|
static |
Definition at line 11 of file GainSwitchTools.cc.
References edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), CaloTopology::getSubdetectorTopology(), CaloNavigator< T, TOPO >::home(), and CaloNavigator< T, TOPO >::offsetBy().
Referenced by hasEBGainSwitchIn5x5().
|
static |
Definition at line 134 of file GainSwitchTools.h.
References EcalClusterToolsT< noZS >::covariances(), EcalClusterToolsT< noZS >::e1x5(), reco::GsfElectron::ShowerShape::e1x5, reco::GsfElectron::ShowerShape::e2nd, EcalClusterToolsT< noZS >::e2x5Max(), reco::GsfElectron::ShowerShape::e2x5Max, EcalClusterToolsT< noZS >::e3x3(), EcalClusterToolsT< noZS >::e5x5(), reco::GsfElectron::ShowerShape::e5x5, reco::GsfElectron::ShowerShape::eBottom, reco::GsfElectron::ShowerShape::eLeft, reco::GsfElectron::ShowerShape::eMax, reco::GsfElectron::ShowerShape::eRight, reco::GsfElectron::ShowerShape::eTop, edm::isNotFinite(), EcalClusterToolsT< noZS >::localCovariances(), reco::GsfElectron::ShowerShape::r9, reco::GsfElectron::ShowerShape::sigmaEtaEta, reco::GsfElectron::ShowerShape::sigmaIetaIeta, reco::GsfElectron::ShowerShape::sigmaIetaIphi, reco::GsfElectron::ShowerShape::sigmaIphiIphi, and mathSSE::sqrt().
|
static |
Definition at line 166 of file GainSwitchTools.h.
References EcalClusterToolsT< noZS >::covariances(), EcalClusterToolsT< noZS >::e1x3(), reco::Photon::ShowerShape::e1x3, EcalClusterToolsT< noZS >::e1x5(), reco::Photon::ShowerShape::e1x5, EcalClusterToolsT< noZS >::e2nd(), reco::Photon::ShowerShape::e2nd, EcalClusterToolsT< noZS >::e2x2(), reco::Photon::ShowerShape::e2x2, reco::Photon::ShowerShape::e2x5, EcalClusterToolsT< noZS >::e2x5Bottom(), reco::Photon::ShowerShape::e2x5Bottom, EcalClusterToolsT< noZS >::e2x5Left(), reco::Photon::ShowerShape::e2x5Left, EcalClusterToolsT< noZS >::e2x5Max(), reco::Photon::ShowerShape::e2x5Max, EcalClusterToolsT< noZS >::e2x5Right(), reco::Photon::ShowerShape::e2x5Right, EcalClusterToolsT< noZS >::e2x5Top(), reco::Photon::ShowerShape::e2x5Top, EcalClusterToolsT< noZS >::e3x3(), reco::Photon::ShowerShape::e3x3, EcalClusterToolsT< noZS >::e5x5(), reco::Photon::ShowerShape::e5x5, EcalClusterToolsT< noZS >::eBottom(), reco::Photon::ShowerShape::eBottom, EcalClusterToolsT< noZS >::eLeft(), reco::Photon::ShowerShape::eLeft, EcalClusterToolsT< noZS >::eMax(), EcalClusterToolsT< noZS >::eRight(), reco::Photon::ShowerShape::eRight, EcalClusterToolsT< noZS >::eTop(), reco::Photon::ShowerShape::eTop, edm::isNotFinite(), EcalClusterToolsT< noZS >::localCovariances(), reco::Photon::ShowerShape::maxEnergyXtal, reco::Photon::ShowerShape::sigmaEtaEta, reco::Photon::ShowerShape::sigmaIetaIeta, reco::Photon::ShowerShape::sigmaIphiIphi, and mathSSE::sqrt().
|
staticprivate |
Definition at line 73 of file GainSwitchTools.h.
Referenced by gainSwitchFlags().