#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 |
DetId | id () const |
get the id More... | |
bool | isRecovered () const |
bool | isTimeErrorValid () const |
bool | isTimeValid () 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 | 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 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 15 of file EcalRecHit.h.
typedef DetId EcalRecHit::key_type |
Definition at line 17 of file EcalRecHit.h.
enum EcalRecHit::ESFlags |
Definition at line 44 of file EcalRecHit.h.
enum EcalRecHit::Flags |
Definition at line 20 of file EcalRecHit.h.
|
inline |
Definition at line 63 of file EcalRecHit.h.
|
inlineexplicit |
Definition at line 65 of file EcalRecHit.h.
|
inline |
check if the flag is true
Definition at line 172 of file EcalRecHit.h.
References archive::flag, and flagBits_.
Referenced by checkFlags(), isRecovered(), EleIsoDetIdCollectionProducer::produce(), recoFlag(), EEBadScFilter::scan5x5(), EcalSeverityLevelAlgo::severityLevel(), and PFRecHitQTestECAL::test().
|
inline |
apply a bitmask to our flags. Experts only
Definition at line 186 of file EcalRecHit.h.
References flagBits_.
Referenced by EcalSeverityLevelAlgo::severityLevel().
|
inline |
check if one of the flags in a set is true
Definition at line 175 of file EcalRecHit.h.
References checkFlag().
Referenced by EleIsoDetIdCollectionProducer::produce().
|
inline |
Definition at line 113 of file EcalRecHit.h.
References extra_, and getMasked().
Referenced by BetaCalculatorECAL::addInfoToCandidate().
|
inline |
Definition at line 71 of file EcalRecHit.h.
References id_.
Referenced by CaloTowersCreationAlgo::assignHitEcal(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalRecHitLegoProxyBuilder::build(), EcalClusterToolsT< noZS >::cluster2ndMoments(), muonisolation::CaloExtractorByAssociator::deposits(), MuonCaloDistanceProducer::fillDistanceMap(), EcalClusterToolsT< noZS >::getSeedPosition(), id(), operator<(), operator<<(), EleIsoDetIdCollectionProducer::produce(), GamIsoDetIdCollectionProducer::produce(), EcalClusterToolsT< noZS >::roundnessSelectedBarrelRecHits(), and ObjectValidator::validHit().
|
inline |
Definition at line 68 of file EcalRecHit.h.
References energy_.
Referenced by BetaCalculatorECAL::addInfoToCandidate(), AlCaElectronsTest::analyze(), TestMuonCaloCleaner::analyze(), EcalCosmicsHists::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::analyzeEE(), CaloTowersCreationAlgo::assignHitEcal(), EcalBoundaryInfoCalculator< EcalDetId >::boundaryRecHits(), FWPFEcalRecHitRPProxyBuilder::build(), FWPFEcalRecHitLegoProxyBuilder::build(), HBHEHitMap::calcEcalNeighborTowers_(), HBHEHitMap::calcEcalSameTowers_(), ClusterShapeAlgo::Calculate_2ndEnergy(), ClusterShapeAlgo::Calculate_EnergyDepTopology(), ClusterShapeAlgo::Calculate_TopEnergy(), EcalClusterToolsT< noZS >::cluster2ndMoments(), ClusterShapeAlgo::Create_Map(), muonisolation::CaloExtractorByAssociator::deposits(), MuonCaloDistanceProducer::fillDistanceMap(), EcalRecHitsFilter::filter(), EcalBoundaryInfoCalculator< EcalDetId >::gapRecHits(), calib::CalibElectron::getCalibModulesWeights(), EcalClusterToolsT< noZS >::getEnergyDepTopology(), ZeeCalibration::getHottestDetId(), EcalClusterToolsT< noZS >::getSeedPosition(), IslandClusterAlgo::makeCluster(), CosmicClusterAlgo::makeCluster(), Multi5x5ClusterAlgo::makeCluster(), HybridClusterAlgo::makeDomino(), EcalDisplaysByEvent::makeHistos(), EcalRecHitLess::operator()(), less_mag::operator()(), ecalRecHitLess::operator()(), ecalRecHitSort::operator()(), eecalRecHitLess::operator()(), operator<(), operator<<(), EleIsoDetIdCollectionProducer::produce(), GamIsoDetIdCollectionProducer::produce(), InterestingDetIdFromSuperClusterProducer::produce(), InterestingDetIdCollectionProducer::produce(), reco::CentralityProducer::produce(), Multi5x5ClusterAlgo::ProtoBasicCluster::removeHit(), EcalClusterToolsT< noZS >::roundnessSelectedBarrelRecHits(), EcalRecHitWorkerRecover::run(), EEBadScFilter::scan5x5(), EcalMipGraphs::selectHits(), EcalDisplaysByEvent::selectHits(), setEnergy(), EcalSeverityLevelAlgo::severityLevel(), PFRecHitQTestECAL::test(), and ObjectValidator::validHit().
|
inline |
Definition at line 127 of file EcalRecHit.h.
References HLT_25ns14e33_v1_cff::exponent, extra_, getMasked(), and funct::pow().
|
inlinestatic |
Definition at line 96 of file EcalRecHit.h.
References create_public_lumi_plots::width.
Referenced by chi2(), energyError(), and timeError().
|
inline |
get the id
Definition at line 76 of file EcalRecHit.h.
References detid().
Referenced by AlCaElectronsTest::analyze(), TestMuonCaloCleaner::analyze(), EcalSelectiveReadoutValidation::analyzeEB(), EcalSelectiveReadoutValidation::analyzeEE(), EcalBoundaryInfoCalculator< EcalDetId >::boundaryRecHits(), ClusterShapeAlgo::Calculate_2ndEnergy(), ClusterShapeAlgo::Calculate_TopEnergy(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasDeadNeighbour(), EcalBoundaryInfoCalculator< EBDetId >::checkRecHitHasInvalidNeighbour(), EgammaHLTNxNClusterProducer::checkStatusOfEcalRecHit(), HLTRegionalEcalResonanceFilter::checkStatusOfEcalRecHit(), HLTEcalResonanceFilter::checkStatusOfEcalRecHit(), ClusterShapeAlgo::Create_Map(), EcalLaserCorrFilter::filter(), EcalRecHitsFilter::filter(), EcalBoundaryInfoCalculator< EcalDetId >::gapRecHits(), ZeeCalibration::getHottestDetId(), EcalRecHitWorkerRecover::insertRecHit(), Multi5x5ClusterAlgo::mainSearch(), CosmicClusterAlgo::makeCluster(), EcalDisplaysByEvent::makeHistos(), PhysicsTowerOrganizer::PhysicsTowerOrganizer(), HLTRechitsToDigis::produce(), reco::CentralityProducer::produce(), Multi5x5ClusterAlgo::ProtoBasicCluster::removeHit(), EcalMipGraphs::selectHits(), and EcalDisplaysByEvent::selectHits().
|
inline |
Definition at line 78 of file EcalRecHit.h.
References checkFlag(), kLeadingEdgeRecovered, kNeighboursRecovered, and kTowerRecovered.
|
inline |
Definition at line 86 of file EcalRecHit.h.
References isTimeValid(), and timeError().
Referenced by BetaCalculatorECAL::addInfoToCandidate().
|
inline |
Definition at line 84 of file EcalRecHit.h.
References timeError().
Referenced by BetaCalculatorECAL::addInfoToCandidate(), and isTimeErrorValid().
|
inline |
DEPRECATED provided for temporary backward compatibility.
Definition at line 189 of file EcalRecHit.h.
References checkFlag(), i, kGood, and kUnknown.
Referenced by BetaCalculatorECAL::addInfoToCandidate(), EgammaHLTNxNClusterProducer::checkStatusOfEcalRecHit(), HLTEcalResonanceFilter::checkStatusOfEcalRecHit(), and HLTRegionalEcalResonanceFilter::checkStatusOfEcalRecHit().
|
inline |
Definition at line 118 of file EcalRecHit.h.
References extra_, and setMasked().
Referenced by EcalRecHitSimpleAlgo::makeRecHit().
|
inline |
Definition at line 69 of file EcalRecHit.h.
References energy(), and energy_.
Referenced by CaloRecHitMixer< T >::buildRecHit().
|
inline |
Definition at line 136 of file EcalRecHit.h.
References HLT_25ns14e33_v1_cff::exponent, extra_, funct::pow(), and setMasked().
Referenced by ESRecHitSimAlgo::oldreconstruct(), and ESRecHitSimAlgo::reconstruct().
|
inline |
set the flags (from Flags or ESFlags)
Definition at line 168 of file EcalRecHit.h.
References archive::flag, and flagBits_.
Referenced by ESRecHitAnalyticAlgo::reconstruct(), ESRecHitFitAlgo::reconstruct(), EcalRecHitWorkerSimple::run(), and EcalRecHitWorkerRecover::run().
|
inlinestatic |
Definition at line 100 of file EcalRecHit.h.
References hltrates_dqm_sourceclient-live_cfg::offset, relativeConstraints::value, and create_public_lumi_plots::width.
Referenced by setChi2(), setEnergyError(), and setTimeError().
|
inline |
Definition at line 163 of file EcalRecHit.h.
References extra_, and setMasked().
|
inline |
Definition at line 70 of file EcalRecHit.h.
References time_.
Referenced by BetaCalculatorECAL::addInfoToCandidate(), EcalCosmicsHists::analyze(), CaloTowersCreationAlgo::assignHitEcal(), CompareTime(), EcalDisplaysByEvent::makeHistos(), operator<<(), and EcalMipGraphs::selectHits().
|
inline |
Definition at line 148 of file EcalRecHit.h.
References HLT_25ns14e33_v1_cff::exponent, extra_, getMasked(), and funct::pow().
Referenced by BetaCalculatorECAL::addInfoToCandidate(), isTimeErrorValid(), and isTimeValid().
|
inline |
Definition at line 169 of file EcalRecHit.h.
References archive::flag, and flagBits_.
|
private |
Definition at line 202 of file EcalRecHit.h.
Referenced by energy(), and setEnergy().
|
private |
Definition at line 209 of file EcalRecHit.h.
Referenced by chi2(), energyError(), setChi2(), setEnergyError(), setTimeError(), and timeError().
|
private |
store rechit condition (see Flags enum) in a bit-wise way
Definition at line 206 of file EcalRecHit.h.
Referenced by checkFlag(), checkFlagMask(), setFlag(), and unsetFlag().
|
private |
Definition at line 201 of file EcalRecHit.h.
Referenced by detid().
|
private |
Definition at line 203 of file EcalRecHit.h.
Referenced by time().