#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 |
const DetId & | detid () const |
EcalRecHit () | |
EcalRecHit (const DetId &id, float energy, float time, uint32_t extra=0, uint32_t flagBits=0) | |
float | energy () const |
float | energyError () const |
uint32_t | flagsBits () const |
DetId | id () const |
get the id More... | |
bool | isRecovered () const |
bool | isTimeErrorValid () const |
bool | isTimeValid () const |
float | nonCorrectedTime () const |
Flags | recoFlag () const |
DEPRECATED provided for temporary backward compatibility. More... | |
void | setChi2 (float chi2) |
void | setEnergy (float energy) |
void | setEnergyError (float energy) |
void | setFlag (int flag) |
set the flags (from Flags or ESFlags) More... | |
void | setTime (float time) |
void | setTimeError (uint8_t timeErrBits) |
float | time () const |
float | timeError () const |
void | unsetFlag (int flag) |
Static Public Member Functions | |
static uint32_t | getMasked (uint32_t value, uint32_t offset, uint32_t width) |
static int | getPower10 (float e) |
static uint32_t | setMasked (uint32_t value, uint32_t x, uint32_t offset, uint32_t width) |
Private Attributes | |
float | energy_ |
uint32_t | extra_ |
uint32_t | flagBits_ |
store rechit condition (see Flags enum) in a bit-wise way More... | |
DetId | id_ |
float | time_ |
Definition at line 16 of file EcalRecHit.h.
typedef DetId EcalRecHit::key_type |
Definition at line 18 of file EcalRecHit.h.
enum EcalRecHit::ESFlags |
Definition at line 45 of file EcalRecHit.h.
enum EcalRecHit::Flags |
Definition at line 21 of file EcalRecHit.h.
|
inline |
Definition at line 64 of file EcalRecHit.h.
|
inlineexplicit |
Definition at line 66 of file EcalRecHit.h.
|
inline |
check if the flag is true
Definition at line 188 of file EcalRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
Referenced by checkFlags(), isRecovered(), EgammaIsoDetIdCollectionProducer< T1 >::produce(), recoFlag(), EEBadScFilter::scan5x5(), EcalSeverityLevelAlgo::severityLevel(), PFRecHitQTestECAL::test(), and PFRecHitQTestES::test().
|
inline |
apply a bitmask to our flags. Experts only
Definition at line 205 of file EcalRecHit.h.
References flagBits_, and gpuClustering::pixelStatus::mask.
Referenced by EcalSeverityLevelAlgo::severityLevel().
|
inline |
check if one of the flags in a set is true
Definition at line 191 of file EcalRecHit.h.
References checkFlag().
Referenced by EgammaIsoDetIdCollectionProducer< T1 >::produce().
|
inline |
Definition at line 121 of file EcalRecHit.h.
References extra_, nano_mu_digi_cff::float, and getMasked().
Referenced by setChi2().
|
inline |
Definition at line 73 of file EcalRecHit.h.
References id_.
Referenced by FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalRecHitLegoProxyBuilder::build(), EcalClusterToolsT< noZS >::cluster2ndMoments(), muonisolation::CaloExtractorByAssociator::deposits(), EcalClusterToolsT< noZS >::getSeedPosition(), id(), EgammaIsoDetIdCollectionProducer< T1 >::produce(), CaloRecHitsBeamHaloCleaned::produce(), and EcalClusterToolsT< noZS >::roundnessSelectedBarrelRecHits().
|
inline |
Definition at line 69 of file EcalRecHit.h.
References energy_.
Referenced by AlCaElectronsTest::analyze(), EcalCosmicsHists::analyze(), EcalBoundaryInfoCalculator< EBDetId >::boundaryRecHits(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalRecHitLegoProxyBuilder::build(), ClusterShapeAlgo::Calculate_2ndEnergy(), ClusterShapeAlgo::Calculate_EnergyDepTopology(), ClusterShapeAlgo::Calculate_TopEnergy(), EcalClusterToolsT< noZS >::cluster2ndMoments(), ClusterShapeAlgo::Create_Map(), muonisolation::CaloExtractorByAssociator::deposits(), CSCHaloAlgo::ECALSegmentMatching(), EcalBoundaryInfoCalculator< EBDetId >::gapRecHits(), calib::CalibElectron::getCalibModulesWeights(), EcalClusterToolsT< noZS >::getEnergyDepTopology(), EcalHaloAlgo::GetHaloClusterCandidateEB(), EcalHaloAlgo::GetHaloClusterCandidateEE(), HcalHaloAlgo::GetHaloClusterCandidateHB(), HcalHaloAlgo::GetHaloClusterCandidateHE(), ZeeCalibration::getHottestDetId(), EcalClusterToolsT< noZS >::getSeedPosition(), IslandClusterAlgo::makeCluster(), CosmicClusterAlgo::makeCluster(), Multi5x5ClusterAlgo::makeCluster(), HybridClusterAlgo::makeDomino(), EgammaIsoDetIdCollectionProducer< T1 >::produce(), Jet.Jet::rawEnergy(), Multi5x5ClusterAlgo::ProtoBasicCluster::removeHit(), EcalClusterToolsT< noZS >::roundnessSelectedBarrelRecHits(), EEBadScFilter::scan5x5(), setEnergy(), setEnergyError(), EcalSeverityLevelAlgo::severityLevel(), PFRecHitQTestECAL::test(), and PFRecHitQTestES::test().
|
inline |
Definition at line 136 of file EcalRecHit.h.
References HLT_2023v12_cff::exponent, extra_, getMasked(), and conifer::pow().
|
inline |
Definition at line 202 of file EcalRecHit.h.
References flagBits_.
|
inlinestatic |
Definition at line 96 of file EcalRecHit.h.
References hltrates_dqm_sourceclient-live_cfg::offset, and ApeEstimator_cff::width.
Referenced by chi2(), energyError(), nonCorrectedTime(), and timeError().
|
inlinestatic |
Definition at line 107 of file EcalRecHit.h.
References b, MillePedeFileConverter_cfg::e, and f.
Referenced by setEnergyError().
|
inline |
get the id
Definition at line 78 of file EcalRecHit.h.
References detid().
Referenced by AlCaElectronsTest::analyze(), ClusterShapeAlgo::Calculate_2ndEnergy(), ClusterShapeAlgo::Calculate_TopEnergy(), EgammaHLTNxNClusterProducer::checkStatusOfEcalRecHit(), HLTEcalResonanceFilter::checkStatusOfEcalRecHit(), HLTRegionalEcalResonanceFilter::checkStatusOfEcalRecHit(), ClusterShapeAlgo::Create_Map(), CSCHaloAlgo::ECALSegmentMatching(), EcalHaloAlgo::GetHaloClusterCandidateEB(), EcalHaloAlgo::GetHaloClusterCandidateEE(), HcalHaloAlgo::GetHaloClusterCandidateHB(), HcalHaloAlgo::GetHaloClusterCandidateHE(), ZeeCalibration::getHottestDetId(), Multi5x5ClusterAlgo::mainSearch(), CosmicClusterAlgo::makeCluster(), and Multi5x5ClusterAlgo::ProtoBasicCluster::removeHit().
|
inline |
Definition at line 80 of file EcalRecHit.h.
References checkFlag(), kLeadingEdgeRecovered, kNeighboursRecovered, and kTowerRecovered.
|
inline |
|
inline |
Definition at line 84 of file EcalRecHit.h.
References timeError().
Referenced by isTimeErrorValid().
|
inline |
Definition at line 221 of file EcalRecHit.h.
References ecalcctiming::clockToNS, ecalcctiming::encodingOffest, ecalcctiming::encodingValue, extra_, getMasked(), ecalcctiming::nonCorrectedSlope, and time_.
|
inline |
DEPRECATED provided for temporary backward compatibility.
Definition at line 208 of file EcalRecHit.h.
References checkFlag(), mps_fire::i, kGood, and kUnknown.
Referenced by EgammaHLTNxNClusterProducer::checkStatusOfEcalRecHit(), HLTEcalResonanceFilter::checkStatusOfEcalRecHit(), and HLTRegionalEcalResonanceFilter::checkStatusOfEcalRecHit().
|
inline |
Definition at line 126 of file EcalRecHit.h.
References chi2(), extra_, and setMasked().
Referenced by EcalRecHitSimpleAlgo::makeRecHit().
|
inline |
|
inline |
Definition at line 145 of file EcalRecHit.h.
References energy(), HLT_2023v12_cff::exponent, extra_, f, getPower10(), and setMasked().
Referenced by ESRecHitSimAlgo::oldreconstruct(), and ESRecHitSimAlgo::reconstruct().
|
inline |
set the flags (from Flags or ESFlags)
Definition at line 184 of file EcalRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
Referenced by ESRecHitAnalyticAlgo::reconstruct(), ESRecHitFitAlgo::reconstruct(), and EcalRecHitWorkerSimple::run().
|
inlinestatic |
Definition at line 100 of file EcalRecHit.h.
References gpuClustering::pixelStatus::mask, hltrates_dqm_sourceclient-live_cfg::offset, mitigatedMETSequence_cff::U, relativeConstraints::value, ApeEstimator_cff::width, and x.
Referenced by setChi2(), setEnergyError(), and setTimeError().
|
inline |
Definition at line 72 of file EcalRecHit.h.
Referenced by EcalDetailedTimeRecHitProducer::produce().
|
inline |
Definition at line 181 of file EcalRecHit.h.
References extra_, and setMasked().
|
inline |
Definition at line 71 of file EcalRecHit.h.
References time_.
Referenced by EcalCosmicsHists::analyze(), CSCHaloAlgo::ECALSegmentMatching(), EcalHaloAlgo::GetHaloClusterCandidateEB(), EcalHaloAlgo::GetHaloClusterCandidateEE(), and setTime().
|
inline |
Definition at line 166 of file EcalRecHit.h.
References HLT_2023v12_cff::exponent, extra_, getMasked(), and conifer::pow().
Referenced by isTimeErrorValid(), and isTimeValid().
|
inline |
Definition at line 185 of file EcalRecHit.h.
References RemoveAddSevLevel::flag, and flagBits_.
|
private |
Definition at line 233 of file EcalRecHit.h.
Referenced by energy(), and setEnergy().
|
private |
Definition at line 240 of file EcalRecHit.h.
Referenced by chi2(), energyError(), nonCorrectedTime(), setChi2(), setEnergyError(), setTimeError(), and timeError().
|
private |
store rechit condition (see Flags enum) in a bit-wise way
Definition at line 237 of file EcalRecHit.h.
Referenced by checkFlag(), checkFlagMask(), flagsBits(), setFlag(), and unsetFlag().
|
private |
Definition at line 232 of file EcalRecHit.h.
Referenced by detid().
|
private |
Definition at line 234 of file EcalRecHit.h.
Referenced by nonCorrectedTime(), setTime(), and time().