![]() |
![]() |
#include <EcalSeverityLevelAlgo.h>
Public Types | |
enum | EcalSeverityLevel { kGood =0, kProblematic, kRecovered, kTime, kWeird, kBad } |
enum | SpikeId { kE1OverE9 =0, kSwissCross, kSwissCrossBordersIncluded } |
Static Public Member Functions | |
static float | E1OverE9 (const DetId id, const EcalRecHitCollection &, float recHitEtThreshold=0.) |
static float | E2overE9 (const DetId id, const EcalRecHitCollection &, float recHitEtThreshold=10.0, float recHitEtThreshold2=1.0, bool avoidIeta85=false, bool KillSecondHit=true) |
static int | severityLevel (const DetId, const EcalRecHitCollection &, const EcalChannelStatus &, float recHitEtThreshold=5., SpikeId spId=kSwissCross, float spIdThreshold=0.95, float recHitEnergyThresholdForTiming=2., float recHitEnergyThresholdForEE=15, float spIdThresholdIEta85=0.999) |
static float | spikeFromNeighbours (const DetId id, const EcalRecHitCollection &, float recHitEtThreshold, SpikeId spId) |
static bool | spikeFromTiming (const EcalRecHit &, float recHitEnergyThreshold) |
static float | swissCross (const DetId id, const EcalRecHitCollection &, float recHitEtThreshold=0., bool avoidIeta85=true) |
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) |
static uint16_t | retrieveDBStatus (const DetId, const EcalChannelStatus &chStatus) |
static int | severityLevel (uint32_t rhFlag, uint16_t dbStatus) |
static int | severityLevel (const EcalRecHit &, const EcalChannelStatus &) |
Definition at line 8 of file EcalSeverityLevelAlgo.h.
Enumerator | |
---|---|
kGood | |
kProblematic | |
kRecovered | |
kTime | |
kWeird | |
kBad |
Definition at line 19 of file EcalSeverityLevelAlgo.h.
Enumerator | |
---|---|
kE1OverE9 | |
kSwissCross | |
kSwissCrossBordersIncluded |
Definition at line 21 of file EcalSeverityLevelAlgo.h.
|
static |
ratio between the crystal energy and the energy in the 3x3 matrix of crystal
Definition at line 133 of file EcalSeverityLevelAlgo.cc.
References EcalBarrel, EcalEndcap, recHitApproxEt(), and recHitE().
Referenced by spikeFromNeighbours().
|
static |
| | | | +-+-+-+ | |1|2|
+-+-+-+ | | | |
1 - input hit, 2 - highest energy hit in a 3x3 around 1
rechit 1 must have E_t > recHitEtThreshold rechit 2 must have E_t > recHitEtThreshold2
function returns value of E2/E9 centered around 1 (E2=energy of hits 1+2) if energy of 1>2
if energy of 2>1 and KillSecondHit is set to true, function returns value of E2/E9 centered around 2 provided that 1 is the highest energy hit in a 3x3 centered around 2, otherwise, function returns 0
Definition at line 245 of file EcalSeverityLevelAlgo.cc.
References abs, EcalBarrel, EcalEndcap, EBDetId::ieta(), min, EBDetId::offsetBy(), recHitApproxEt(), and recHitE().
|
staticprivate |
Definition at line 226 of file EcalSeverityLevelAlgo.cc.
References EBDetId::approxEta(), EcalBarrel, and recHitE().
Referenced by E1OverE9(), E2overE9(), and swissCross().
|
staticprivate |
return energy of a recHit (if in the collection)
Definition at line 214 of file EcalSeverityLevelAlgo.cc.
References edm::SortedCollection< T, SORT >::end(), and edm::SortedCollection< T, SORT >::find().
Referenced by E1OverE9(), E2overE9(), recHitApproxEt(), recHitE(), severityLevel(), and swissCross().
|
staticprivate |
Definition at line 201 of file EcalSeverityLevelAlgo.cc.
References EcalBarrel, EcalEndcap, EBDetId::offsetBy(), EEDetId::offsetBy(), and recHitE().
|
staticprivate |
Definition at line 94 of file EcalSeverityLevelAlgo.cc.
References EcalCondObjectContainer< T >::end(), and EcalCondObjectContainer< T >::find().
Referenced by severityLevel().
|
static |
compute the severity level
Definition at line 5 of file EcalSeverityLevelAlgo.cc.
References abs, EcalBarrel, EcalEndcap, edm::SortedCollection< T, SORT >::end(), edm::SortedCollection< T, SORT >::find(), kBad, kGood, kProblematic, kSwissCross, kSwissCrossBordersIncluded, kTime, kWeird, funct::log(), recHitE(), retrieveDBStatus(), spikeFromNeighbours(), spikeFromTiming(), and swissCross().
Referenced by EBOccupancyTask::analyze(), EBTimingTask::analyze(), EETimingTask::analyze(), EEOccupancyTask::analyze(), QcdPhotonsDQM::analyze(), EcalClusterSeverityLevelAlgo::closestProblematic(), egammaisolation::EgammaRecHitExtractor::collect(), CaloTowersCreationAlgo::convert(), CaloTowersCreationAlgo::ecalChanStatusForCaloTower(), spr::eECALmatrix(), EgammaRecHitIsolation::getSum_(), EcalClusterSeverityLevelAlgo::goodFraction(), HybridClusterAlgo::makeClusters(), EleIsoDetIdCollectionProducer::produce(), GamIsoDetIdCollectionProducer::produce(), HiSpikeCleaner::produce(), severityLevel(), and ObjectValidator::validHit().
|
staticprivate |
Definition at line 64 of file EcalSeverityLevelAlgo.cc.
References kBad, EcalRecHit::kDead, EcalRecHit::kFakeNeighbours, EcalRecHit::kFaultyHardware, kGood, EcalRecHit::kKilled, EcalRecHit::kLeadingEdgeRecovered, EcalRecHit::kNeighboursRecovered, EcalRecHit::kNoisy, EcalRecHit::kOutOfTime, EcalRecHit::kPoorCalib, EcalRecHit::kPoorReco, kProblematic, kRecovered, EcalRecHit::kSaturated, and EcalRecHit::kTowerRecovered.
|
staticprivate |
Definition at line 54 of file EcalSeverityLevelAlgo.cc.
References EcalRecHit::id(), EcalRecHit::recoFlag(), retrieveDBStatus(), and severityLevel().
|
static |
return the estimator of the signal being a spike based on the topological information from the neighbours
Definition at line 108 of file EcalSeverityLevelAlgo.cc.
References E1OverE9(), kE1OverE9, kSwissCross, kSwissCrossBordersIncluded, and swissCross().
Referenced by severityLevel().
|
static |
return whether or not the rechit is a spike based on the kOutOfTime rechit flag
Definition at line 236 of file EcalSeverityLevelAlgo.cc.
References CaloRecHit::energy(), EcalRecHit::kOutOfTime, and EcalRecHit::recoFlag().
Referenced by severityLevel().
|
static |
1 - the ratio between the energy in the swiss cross around a crystal and the crystal energy (also called S4/S1, Rook)
Definition at line 163 of file EcalSeverityLevelAlgo.cc.
References abs, EcalBarrel, EcalEndcap, EBDetId::ieta(), recHitApproxEt(), and recHitE().
Referenced by EgammaHLTR9Producer::produce(), HiSpikeCleaner::produce(), severityLevel(), and spikeFromNeighbours().