#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 | isNextToBoundary (const DetId &id) |
true if near a crack or ecal border More... | |
static bool | isNextToDead (const DetId &id, const edm::EventSetup &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 17 of file EcalTools.h.
|
static |
return true if the channel at offsets dx,dy is dead
Definition at line 88 of file EcalTools.cc.
References EcalBarrel, EcalEndcap, EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::find(), EBDetId::offsetBy(), and EEDetId::offsetBy().
Referenced by isNextToDeadFromNeighbours().
|
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 52 of file EcalTools.cc.
References EcalCondObjectContainer< T >::end(), EcalCondObjectContainer< T >::find(), and edm::EventSetup::get().
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 71 of file EcalTools.cc.
References deadNeighbour().
Referenced by EcalNextToDeadChannelESProducer::findNextToDeadChannelsCallback().
|
staticprivate |
Definition at line 142 of file EcalTools.cc.
References EBDetId::approxEta(), EcalBarrel, and recHitE().
Referenced by swissCross().
|
staticprivate |
Definition at line 132 of file EcalTools.cc.
References edm::SortedCollection< T, SORT >::end(), and edm::SortedCollection< T, SORT >::find().
Referenced by recHitApproxEt(), recHitE(), and swissCross().
|
staticprivate |
Definition at line 118 of file EcalTools.cc.
References EcalBarrel, EcalEndcap, EBDetId::offsetBy(), EEDetId::offsetBy(), and recHitE().
|
static |
the good old 1-e4/e1. Ignore hits below recHitThreshold
Definition at line 11 of file EcalTools.cc.
References funct::abs(), EcalBarrel, EcalEndcap, EBDetId::ieta(), recHitApproxEt(), and recHitE().
Referenced by ZeeCandidateFilter::filter(), HiSpikeCleaner::produce(), and ecaldqm::RecoSummaryTask::runOnRecHits().