#include <EcalTools.h>
Static Public Member Functions | |
static bool | deadNeighbour (const DetId &id, const EcalChannelStatus &chs, int chStatusThreshold, int dx, int dy) |
return true if the channel at offsets dx,dy is dead More... | |
static bool | isHGCalDet (DetId::Detector thedet) |
identify HGCal cells More... | |
static bool | isNextToBoundary (const DetId &id) |
true if near a crack or ecal border More... | |
static bool | isNextToDead (const DetId &id, const EcalNextToDeadChannel &es) |
true if the channel is near a dead one (in the 3x3) More... | |
static bool | isNextToDeadFromNeighbours (const DetId &id, const EcalChannelStatus &chs, int chStatusThreshold) |
same as isNextToDead, but will use information from the neighbour More... | |
static float | swissCross (const DetId &id, const EcalRecHitCollection &recHits, float recHitThreshold, bool avoidIeta85=true) |
the good old 1-e4/e1. Ignore hits below recHitThreshold More... | |
Static Private Member Functions | |
static float | recHitApproxEt (const DetId id, const EcalRecHitCollection &recHits) |
static float | recHitE (const DetId id, const EcalRecHitCollection &recHits) |
static float | recHitE (const DetId id, const EcalRecHitCollection &recHits, int dEta, int dPhi) |
Definition at line 18 of file EcalTools.h.
|
static |
return true if the channel at offsets dx,dy is dead
Definition at line 87 of file EcalTools.cc.
References PVValHelper::dx, PVValHelper::dy, EcalBarrel, EcalEndcap, EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::find(), EBDetId::offsetBy(), and EEDetId::offsetBy().
Referenced by isNextToDeadFromNeighbours().
|
inlinestatic |
identify HGCal cells
Definition at line 49 of file EcalTools.h.
References DetId::Forward, DetId::Hcal, DetId::HGCalEE, DetId::HGCalHSc, and DetId::HGCalHSi.
Referenced by GsfElectronAlgo::createElectron(), EcalRegressionData::fill(), GEDPhotonProducer::fillPhotonCollection(), ElectronSeedProducer::filterClusters(), and EGRegressionModifierV2::modifyObject().
|
static |
true if near a crack or ecal border
|
static |
true if the channel is near a dead one (in the 3x3)
This function will use the ChannelStatus record to determine if the channel is next to a dead one, using bit 12 of the channel status word
Definition at line 54 of file EcalTools.cc.
References EcalCondObjectContainer< T >::end(), and EcalCondObjectContainer< T >::find().
Referenced by InterestingDetIdCollectionProducer::produce(), and InterestingDetIdFromSuperClusterProducer::produce().
|
static |
same as isNextToDead, but will use information from the neighbour
Looks at neighbours in 3x3 and returns true if one of them has chStatus above chStatusThreshold. Use sparingly, slow. Normally isNextToDead() should be used instead.
Definition at line 66 of file EcalTools.cc.
References deadNeighbour().
Referenced by EcalNextToDeadChannelESProducer::setupNextToDeadChannels().
|
staticprivate |
Definition at line 134 of file EcalTools.cc.
References EBDetId::approxEta(), EcalBarrel, recHitE(), and FastTrackerRecHitMaskProducer_cfi::recHits.
Referenced by swissCross().
|
staticprivate |
Definition at line 123 of file EcalTools.cc.
References FastTrackerRecHitMaskProducer_cfi::recHits.
Referenced by recHitApproxEt(), recHitE(), and swissCross().
|
staticprivate |
Definition at line 110 of file EcalTools.cc.
References EcalBarrel, EcalEndcap, EBDetId::offsetBy(), EEDetId::offsetBy(), recHitE(), and FastTrackerRecHitMaskProducer_cfi::recHits.
|
static |
the good old 1-e4/e1. Ignore hits below recHitThreshold
Definition at line 9 of file EcalTools.cc.
References funct::abs(), StorageManager_cfg::e1, EcalBarrel, EcalEndcap, EBDetId::ieta(), recHitApproxEt(), recHitE(), FastTrackerRecHitMaskProducer_cfi::recHits, and OccupancyTask_cfi::recHitThreshold.
Referenced by HiSpikeCleaner::produce(), and ecaldqm::RecoSummaryTask::runOnRecHits().