#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, kDead, kKilled, kTPSaturated, kL1SpikeFlag, kWeird, kDiWeird, kHasSwitchToGain6, kHasSwitchToGain1, kUnknown } |
typedef DetId | key_type |
Public Member Functions | |
bool | checkFlag (int flag) const |
check if the flag is true More... | |
bool | checkFlagMask (uint32_t mask) const |
apply a bitmask to our flags. Experts only More... | |
bool | checkFlags (const std::vector< int > &flagsvec) const |
check if one of the flags in a set is true More... | |
float | chi2 () const |
EcalRecHit () | |
EcalRecHit (const DetId &id, float energy, float time, uint32_t flags=0, uint32_t flagBits=0) | |
DetId | id () const |
get the id More... | |
bool | isRecovered () const |
bool | isTimeErrorValid () const |
bool | isTimeValid () const |
float | outOfTimeChi2 () const |
float | outOfTimeEnergy () const |
Flags | recoFlag () const |
DEPRECATED provided for temporary backward compatibility. More... | |
void | setChi2 (float chi2) |
void | setFlag (int flag) |
set the flags (from Flags or ESFlags) More... | |
void | setOutOfTimeChi2 (float chi2) |
void | setOutOfTimeEnergy (float energy) |
void | setTimeError (uint8_t timeErrBits) |
float | timeError () const |
void | unsetFlag (int flag) |
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 | setEnergy (float energy) |
void | setFlagField (uint32_t value, int base, int width=1) |
void | setFlags (uint32_t flags) |
float | time () const |
Private Attributes | |
uint32_t | flagBits_ |
store rechit condition (see Flags enum) in a bit-wise way More... | |
Definition at line 13 of file EcalRecHit.h.
typedef DetId EcalRecHit::key_type |
Definition at line 15 of file EcalRecHit.h.
enum EcalRecHit::ESFlags |
Definition at line 42 of file EcalRecHit.h.
enum EcalRecHit::Flags |
Definition at line 18 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 9 of file EcalRecHit.cc.
EcalRecHit::EcalRecHit | ( | const DetId & | id, |
float | energy, | ||
float | time, | ||
uint32_t | flags = 0 , |
||
uint32_t | flagBits = 0 |
||
) |
Definition at line 12 of file EcalRecHit.cc.
|
inline |
check if the flag is true
Definition at line 103 of file EcalRecHit.h.
References flagBits_.
Referenced by checkFlags(), PFRecHitProducerECAL::createRecHits(), isRecovered(), recoFlag(), EEBadScFilter::scan5x5(), and EcalSeverityLevelAlgo::severityLevel().
|
inline |
apply a bitmask to our flags. Experts only
Definition at line 109 of file EcalRecHit.h.
References flagBits_.
Referenced by EcalSeverityLevelAlgo::severityLevel().
bool EcalRecHit::checkFlags | ( | const std::vector< int > & | flagsvec | ) | const |
check if one of the flags in a set is true
Definition at line 133 of file EcalRecHit.cc.
References checkFlag().
float EcalRecHit::chi2 | ( | void | ) | const |
Definition at line 26 of file EcalRecHit.cc.
References CaloRecHit::flags().
Referenced by BetaCalculatorECAL::addInfoToCandidate().
|
inline |
get the id
Definition at line 77 of file EcalRecHit.h.
References CaloRecHit::detid().
Referenced by AlCaElectronsTest::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::analyzeEE(), EcalBoundaryInfoCalculator< EcalDetId >::boundaryRecHits(), ClusterShapeAlgo::Calculate_2ndEnergy(), ClusterShapeAlgo::Calculate_TopEnergy(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), EgammaHLTNxNClusterProducer::checkStatusOfEcalRecHit(), HLTEcalResonanceFilter::checkStatusOfEcalRecHit(), ClusterShapeAlgo::Create_Map(), EcalLaserCorrFilter::filter(), EcalRecHitsFilter::filter(), EcalBoundaryInfoCalculator< EcalDetId >::gapRecHits(), ZeeCalibration::getHottestDetId(), EcalMIPRecHitFilter::hltFilter(), EcalRecHitWorkerRecover::insertRecHit(), Multi5x5ClusterAlgo::mainSearch(), CosmicClusterAlgo::makeCluster(), EcalDisplaysByEvent::makeHistos(), PhysicsTowerOrganizer::PhysicsTowerOrganizer(), Multi5x5ClusterAlgo::ProtoBasicCluster::removeHit(), EcalMipGraphs::selectHits(), and EcalDisplaysByEvent::selectHits().
bool EcalRecHit::isRecovered | ( | ) | const |
Definition at line 18 of file EcalRecHit.cc.
References checkFlag(), kLeadingEdgeRecovered, kNeighboursRecovered, and kTowerRecovered.
bool EcalRecHit::isTimeErrorValid | ( | ) | const |
Definition at line 121 of file EcalRecHit.cc.
References isTimeValid(), and timeError().
Referenced by BetaCalculatorECAL::addInfoToCandidate().
bool EcalRecHit::isTimeValid | ( | ) | const |
Definition at line 112 of file EcalRecHit.cc.
References timeError().
Referenced by BetaCalculatorECAL::addInfoToCandidate(), and isTimeErrorValid().
float EcalRecHit::outOfTimeChi2 | ( | ) | const |
Definition at line 34 of file EcalRecHit.cc.
References CaloRecHit::flags().
Referenced by BetaCalculatorECAL::addInfoToCandidate().
float EcalRecHit::outOfTimeEnergy | ( | ) | const |
Definition at line 40 of file EcalRecHit.cc.
References CaloRecHit::flags(), and funct::pow().
Referenced by BetaCalculatorECAL::addInfoToCandidate().
EcalRecHit::Flags EcalRecHit::recoFlag | ( | ) | const |
DEPRECATED provided for temporary backward compatibility.
Definition at line 145 of file EcalRecHit.cc.
References checkFlag(), i, kGood, and kUnknown.
Referenced by BetaCalculatorECAL::addInfoToCandidate(), EgammaHLTNxNClusterProducer::checkStatusOfEcalRecHit(), and HLTEcalResonanceFilter::checkStatusOfEcalRecHit().
void EcalRecHit::setChi2 | ( | float | chi2 | ) |
Definition at line 52 of file EcalRecHit.cc.
References CaloRecHit::flags(), and CaloRecHit::setFlags().
Referenced by EcalRecHitSimpleAlgo::makeRecHit().
|
inline |
set the flags (from Flags or ESFlags)
Definition at line 99 of file EcalRecHit.h.
References flagBits_.
Referenced by ESRecHitAnalyticAlgo::reconstruct(), ESRecHitFitAlgo::reconstruct(), EcalRecHitWorkerSimple::run(), and EcalRecHitWorkerRecover::run().
void EcalRecHit::setOutOfTimeChi2 | ( | float | chi2 | ) |
Definition at line 77 of file EcalRecHit.cc.
References CaloRecHit::flags(), and CaloRecHit::setFlags().
void EcalRecHit::setOutOfTimeEnergy | ( | float | energy | ) |
Definition at line 62 of file EcalRecHit.cc.
References CaloRecHit::flags(), funct::pow(), and CaloRecHit::setFlags().
Referenced by ESRecHitSimAlgo::reconstruct().
void EcalRecHit::setTimeError | ( | uint8_t | timeErrBits | ) |
Definition at line 88 of file EcalRecHit.cc.
References CaloRecHit::aux(), and CaloRecHit::setAux().
float EcalRecHit::timeError | ( | ) | const |
Definition at line 95 of file EcalRecHit.cc.
References CaloRecHit::aux(), and funct::pow().
Referenced by BetaCalculatorECAL::addInfoToCandidate(), isTimeErrorValid(), and isTimeValid().
|
inline |
Definition at line 100 of file EcalRecHit.h.
References flagBits_.
|
private |
store rechit condition (see Flags enum) in a bit-wise way
Definition at line 117 of file EcalRecHit.h.
Referenced by checkFlag(), checkFlagMask(), setFlag(), and unsetFlag().