#include <EcalRecHit.h>
Public Types | |
enum | ESFlags { kESGood, kESDead, kESHot, kESPassBX, kESTwoGoodRatios, kESBadRatioFor12, kESBadRatioFor23Upper, kESBadRatioFor23Lower, kESTS1Largest, kESTS3Largest, kESTS3Negative, kESSaturated, kESTS2Saturated, kESTS3Saturated, kESTS13Sigmas, kESTS15Sigmas } |
enum | Flags { kGood =0, kPoorReco, kOutOfTime, kFaultyHardware, kNoisy, kPoorCalib, kSaturated, kLeadingEdgeRecovered, kNeighboursRecovered, kTowerRecovered, kFake, kFakeNeighbours, kDead, kKilled, kTPSaturated, kL1SpikeFlag, kUnknown } |
typedef DetId | key_type |
Public Member Functions | |
float | chi2 () const |
float | chi2Prob () const |
EcalRecHit () | |
EcalRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t flagBits=0) | |
uint32_t | flagBits () const |
DetId | id () const |
get the id More... | |
bool | isRecovered () const |
bool | isTimeErrorValid () const |
bool | isTimeValid () const |
float | outOfTimeChi2 () const |
float | outOfTimeChi2Prob () const |
float | outOfTimeEnergy () const |
uint32_t | recoFlag () const |
void | setChi2 (float chi2) |
void | setChi2Prob (float chi2Prob) |
void | setFlagBits (uint32_t flagBits) |
void | setOutOfTimeChi2 (float chi2) |
void | setOutOfTimeChi2Prob (float chi2Prob) |
void | setOutOfTimeEnergy (float energy) |
void | setRecoFlag (uint32_t flag) |
void | setTimeError (uint8_t timeErrBits) |
float | timeError () const |
Public Member Functions inherited from CaloRecHit | |
uint32_t | aux () const |
CaloRecHit () | |
CaloRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t aux=0) | |
const DetId & | detid () const |
float | energy () const |
uint32_t | flagField (int base, int width=1) const |
uint32_t | flags () const |
void | setAux (uint32_t value) |
void | setFlagField (uint32_t value, int base, int width=1) |
void | setFlags (uint32_t flags) |
float | time () const |
virtual | ~CaloRecHit () |
Private Attributes | |
uint32_t | flagBits_ |
Definition at line 12 of file EcalRecHit.h.
typedef DetId EcalRecHit::key_type |
Definition at line 14 of file EcalRecHit.h.
enum EcalRecHit::ESFlags |
Definition at line 40 of file EcalRecHit.h.
enum EcalRecHit::Flags |
Definition at line 17 of file EcalRecHit.h.
EcalRecHit::EcalRecHit | ( | ) |
bit structure of CaloRecHit::flags_ used in EcalRecHit:
| 32 | 31...25 | 24...12 | 11...5 | 4...1 | | | | | | | | | | +–> reco flags ( 4 bits) | | | +–> chi2 for in time events ( 7 bits) | | +–> energy for out-of-time events (13 bits) | +–> chi2 for out-of-time events ( 7 bits) +–> spare ( 1 bit )
Definition at line 11 of file EcalRecHit.cc.
EcalRecHit::EcalRecHit | ( | const DetId & | id, |
float | energy, | ||
float | time, | ||
uint32_t | flags = 0 , |
||
uint32_t | flagBits = 0 |
||
) |
Definition at line 14 of file EcalRecHit.cc.
float EcalRecHit::chi2 | ( | void | ) | const |
Definition at line 27 of file EcalRecHit.cc.
References CaloRecHit::flags().
Referenced by BetaCalculatorECAL::addInfoToCandidate().
float EcalRecHit::chi2Prob | ( | ) | const |
Definition at line 33 of file EcalRecHit.cc.
References ExpressReco_HICollisions_FallBack::cerr, and CaloRecHit::flags().
|
inline |
|
inline |
get the id
Definition at line 74 of file EcalRecHit.h.
References CaloRecHit::detid().
Referenced by AlCaElectronsTest::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::analyzeEE(), ClusterShapeAlgo::Calculate_2ndEnergy(), ClusterShapeAlgo::Calculate_TopEnergy(), EgammaHLTNxNClusterProducer::checkStatusOfEcalRecHit(), HLTEcalResonanceFilter::checkStatusOfEcalRecHit(), ClusterShapeAlgo::Create_Map(), EcalRecHitsFilter::filter(), EcalMIPRecHitFilter::filter(), ZeeCalibration::getHottestDetId(), EcalRecHitWorkerRecover::insertRecHit(), CosmicClusterAlgo::makeCluster(), EcalDisplaysByEvent::makeHistos(), PhysicsTowerOrganizer::PhysicsTowerOrganizer(), EcalMipGraphs::selectHits(), EcalDisplaysByEvent::selectHits(), and EcalSeverityLevelAlgo::severityLevel().
bool EcalRecHit::isRecovered | ( | ) | const |
Definition at line 20 of file EcalRecHit.cc.
References kLeadingEdgeRecovered, kNeighboursRecovered, kTowerRecovered, and recoFlag().
bool EcalRecHit::isTimeErrorValid | ( | ) | const |
Definition at line 184 of file EcalRecHit.cc.
References isTimeValid(), and timeError().
Referenced by BetaCalculatorECAL::addInfoToCandidate().
bool EcalRecHit::isTimeValid | ( | ) | const |
Definition at line 175 of file EcalRecHit.cc.
References timeError().
Referenced by BetaCalculatorECAL::addInfoToCandidate(), and isTimeErrorValid().
float EcalRecHit::outOfTimeChi2 | ( | ) | const |
Definition at line 58 of file EcalRecHit.cc.
References CaloRecHit::flags().
Referenced by BetaCalculatorECAL::addInfoToCandidate().
float EcalRecHit::outOfTimeChi2Prob | ( | ) | const |
Definition at line 44 of file EcalRecHit.cc.
References ExpressReco_HICollisions_FallBack::cerr.
float EcalRecHit::outOfTimeEnergy | ( | ) | const |
Definition at line 64 of file EcalRecHit.cc.
References CaloRecHit::flags(), and funct::pow().
Referenced by BetaCalculatorECAL::addInfoToCandidate().
|
inline |
Definition at line 78 of file EcalRecHit.h.
References CaloRecHit::flags().
Referenced by BetaCalculatorECAL::addInfoToCandidate(), EgammaHLTNxNClusterProducer::checkStatusOfEcalRecHit(), HLTEcalResonanceFilter::checkStatusOfEcalRecHit(), PFRecHitProducerECAL::createRecHits(), isRecovered(), CosmicClusterAlgo::makeCluster(), EcalSeverityLevelAlgo::severityLevel(), and EcalSeverityLevelAlgo::spikeFromTiming().
void EcalRecHit::setChi2 | ( | float | chi2 | ) |
Definition at line 97 of file EcalRecHit.cc.
References CaloRecHit::flags(), and CaloRecHit::setFlags().
Referenced by EcalRecHitSimpleAlgo::makeRecHit().
void EcalRecHit::setChi2Prob | ( | float | chi2Prob | ) |
Definition at line 77 of file EcalRecHit.cc.
References ExpressReco_HICollisions_FallBack::cerr.
|
inline |
Definition at line 94 of file EcalRecHit.h.
References flagBits(), and flagBits_.
Referenced by EcalRecHitWorkerRecover::run().
void EcalRecHit::setOutOfTimeChi2 | ( | float | chi2 | ) |
Definition at line 140 of file EcalRecHit.cc.
References CaloRecHit::flags(), and CaloRecHit::setFlags().
void EcalRecHit::setOutOfTimeChi2Prob | ( | float | chi2Prob | ) |
Definition at line 119 of file EcalRecHit.cc.
References ExpressReco_HICollisions_FallBack::cerr.
void EcalRecHit::setOutOfTimeEnergy | ( | float | energy | ) |
Definition at line 107 of file EcalRecHit.cc.
References CaloRecHit::flags(), funct::pow(), and CaloRecHit::setFlags().
Referenced by ESRecHitSimAlgo::reconstruct().
void EcalRecHit::setRecoFlag | ( | uint32_t | flag | ) |
Definition at line 72 of file EcalRecHit.cc.
References CaloRecHit::flags(), and CaloRecHit::setFlags().
Referenced by ESRecHitAnalyticAlgo::reconstruct(), and ESRecHitFitAlgo::reconstruct().
void EcalRecHit::setTimeError | ( | uint8_t | timeErrBits | ) |
Definition at line 151 of file EcalRecHit.cc.
References CaloRecHit::aux(), and CaloRecHit::setAux().
float EcalRecHit::timeError | ( | ) | const |
Definition at line 158 of file EcalRecHit.cc.
References CaloRecHit::aux(), and funct::pow().
Referenced by BetaCalculatorECAL::addInfoToCandidate(), isTimeErrorValid(), and isTimeValid().
|
private |
Definition at line 98 of file EcalRecHit.h.
Referenced by flagBits(), and setFlagBits().