#include <EcalUncalibratedRecHit.h>
Public Types | |
enum | Flags { kGood = -1, kPoorReco, kSaturated, kOutOfTime, kLeadingEdgeRecovered, kHasSwitchToGain6, kHasSwitchToGain1 } |
typedef DetId | key_type |
Public Member Functions | |
float | amplitude () const |
float | amplitudeError () const |
bool | checkFlag (Flags flag) const |
float | chi2 () const |
EcalUncalibratedRecHit () | |
EcalUncalibratedRecHit (const DetId &id, float ampl, float ped, float jit, float chi2, uint32_t flags=0, uint32_t aux=0) | |
uint32_t | flags () const |
DetId | id () const |
bool | isJitterErrorValid () const |
bool | isJitterValid () const |
bool | isSaturated () const |
float | jitter () const |
float | jitterError () const |
uint8_t | jitterErrorBits () const |
float | nonCorrectedTime () const |
float | outOfTimeAmplitude (int bx) const |
float | pedestal () const |
void | setAmplitude (float amplitude) |
void | setAmplitudeError (float amplitudeerror) |
void | setAux (uint32_t aux) |
void | setChi2 (float chi2) |
void | setFlagBit (Flags flag) |
void | setFlags (uint32_t flags) |
void | setId (DetId id) |
void | setJitter (float jitter) |
void | setJitterError (float jitterErr) |
void | setNonCorrectedTime (const float correctedJittter, const float nonCorrectedJitter) |
void | setOutOfTimeAmplitude (int bx, float amplitude) |
void | setPedestal (float pedestal) |
Private Attributes | |
float | amplitude_ |
float | amplitudeError_ |
uint32_t | aux_ |
float | chi2_ |
uint32_t | flags_ |
DetId | id_ |
float | jitter_ |
float | OOTamplitudes_ [EcalDataFrame::MAXSAMPLES] |
float | OOTchi2_ |
float | pedestal_ |
Definition at line 8 of file EcalUncalibratedRecHit.h.
Definition at line 10 of file EcalUncalibratedRecHit.h.
Enumerator | |
---|---|
kGood | |
kPoorReco | |
kSaturated | |
kOutOfTime | |
kLeadingEdgeRecovered | |
kHasSwitchToGain6 | |
kHasSwitchToGain1 |
Definition at line 12 of file EcalUncalibratedRecHit.h.
EcalUncalibratedRecHit::EcalUncalibratedRecHit | ( | ) |
Definition at line 5 of file EcalUncalibratedRecHit.cc.
References EcalDataFrame::MAXSAMPLES, and OOTamplitudes_.
EcalUncalibratedRecHit::EcalUncalibratedRecHit | ( | const DetId & | id, |
float | ampl, | ||
float | ped, | ||
float | jit, | ||
float | chi2, | ||
uint32_t | flags = 0 , |
||
uint32_t | aux = 0 |
||
) |
Definition at line 12 of file EcalUncalibratedRecHit.cc.
References EcalDataFrame::MAXSAMPLES, and OOTamplitudes_.
|
inline |
Definition at line 28 of file EcalUncalibratedRecHit.h.
References amplitude_.
Referenced by CosmicClusterAlgo::makeCluster(), CosmicClusterAlgo::makeClusters(), EcalRecHitSimpleAlgo::makeRecHit(), EcalTBWeightUncalibRecHitProducer::produce(), EcalUncalibRecHitWorkerAnalFit::run(), EcalUncalibRecHitWorkerGlobal::run(), setAmplitude(), and setOutOfTimeAmplitude().
|
inline |
Definition at line 29 of file EcalUncalibratedRecHit.h.
References amplitudeError_.
Referenced by EcalRecHitSimpleAlgo::makeRecHit().
bool EcalUncalibratedRecHit::checkFlag | ( | EcalUncalibratedRecHit::Flags | flag | ) | const |
Definition at line 109 of file EcalUncalibratedRecHit.cc.
References RemoveAddSevLevel::flag, flags_, and kGood.
Referenced by isSaturated(), and EcalRecHitSimpleAlgo::makeRecHit().
|
inline |
Definition at line 32 of file EcalUncalibratedRecHit.h.
References chi2_.
Referenced by EcalRecHitSimpleAlgo::makeRecHit(), and setChi2().
|
inline |
Definition at line 35 of file EcalUncalibratedRecHit.h.
References flags_.
Referenced by EcalRecHitWorkerRecover::run(), and setFlags().
|
inline |
Definition at line 38 of file EcalUncalibratedRecHit.h.
References id_.
Referenced by CosmicClusterAlgo::makeCluster(), EcalRecHitSimpleAlgo::makeRecHit(), EcalRecHitWorkerSimple::run(), EcalRecHitWorkerRecover::run(), and setId().
bool EcalUncalibratedRecHit::isJitterErrorValid | ( | ) | const |
Definition at line 85 of file EcalUncalibratedRecHit.cc.
References isJitterValid(), and jitterError().
bool EcalUncalibratedRecHit::isJitterValid | ( | ) | const |
Definition at line 78 of file EcalUncalibratedRecHit.cc.
References jitterError().
Referenced by isJitterErrorValid().
bool EcalUncalibratedRecHit::isSaturated | ( | ) | const |
Definition at line 27 of file EcalUncalibratedRecHit.cc.
References checkFlag(), and kSaturated.
Referenced by EcalRecHitSimpleAlgo::makeRecHit().
|
inline |
Definition at line 31 of file EcalUncalibratedRecHit.h.
References jitter_.
Referenced by EcalRecHitSimpleAlgo::makeRecHit(), EcalUncalibRecHitWorkerGlobal::run(), and setJitter().
float EcalUncalibratedRecHit::jitterError | ( | ) | const |
Definition at line 29 of file EcalUncalibratedRecHit.cc.
References aux_, HLT_2023v12_cff::exponent, jitterErrorBits(), and conifer::pow().
Referenced by isJitterErrorValid(), and isJitterValid().
uint8_t EcalUncalibratedRecHit::jitterErrorBits | ( | ) | const |
Definition at line 94 of file EcalUncalibratedRecHit.cc.
References aux_.
Referenced by jitterError(), EcalRecHitSimpleAlgo::makeRecHit(), nonCorrectedTime(), and setJitterError().
float EcalUncalibratedRecHit::nonCorrectedTime | ( | ) | const |
Definition at line 120 of file EcalUncalibratedRecHit.cc.
References ecalcctiming::clockToNS, ecalcctiming::encodingOffest, ecalcctiming::encodingValue, jitter_, jitterErrorBits(), and ecalcctiming::nonCorrectedSlope.
|
inline |
Definition at line 33 of file EcalUncalibratedRecHit.h.
References nano_mu_digi_cff::bx, and OOTamplitudes_.
|
inline |
Definition at line 30 of file EcalUncalibratedRecHit.h.
References pedestal_.
Referenced by setPedestal().
|
inline |
Definition at line 40 of file EcalUncalibratedRecHit.h.
References amplitude(), and amplitude_.
Referenced by EcalUncalibRecHitWorkerRatio::run().
|
inline |
Definition at line 41 of file EcalUncalibratedRecHit.h.
References amplitudeError_.
Referenced by EcalUncalibRecHitMultiFitAlgo::makeRecHit(), and EcalUncalibRecHitPhase2WeightsProducer::produce().
|
inline |
Definition at line 50 of file EcalUncalibratedRecHit.h.
References printConversionInfo::aux, and aux_.
|
inline |
Definition at line 44 of file EcalUncalibratedRecHit.h.
Referenced by EcalUncalibRecHitWorkerGlobal::run().
void EcalUncalibratedRecHit::setFlagBit | ( | EcalUncalibratedRecHit::Flags | flag | ) |
Definition at line 99 of file EcalUncalibratedRecHit.cc.
References RemoveAddSevLevel::flag, flags_, and kGood.
Referenced by EcalUncalibRecHitPhase2WeightsProducer::produce(), EcalUncalibRecHitWorkerWeights::run(), and EcalUncalibRecHitWorkerGlobal::run().
|
inline |
|
inline |
Definition at line 49 of file EcalUncalibratedRecHit.h.
|
inline |
Definition at line 43 of file EcalUncalibratedRecHit.h.
References jitter(), and jitter_.
Referenced by EcalUncalibRecHitWorkerRatio::run(), and EcalUncalibRecHitWorkerGlobal::run().
void EcalUncalibratedRecHit::setJitterError | ( | float | jitterErr | ) |
Definition at line 45 of file EcalUncalibratedRecHit.cc.
References aux_, HLT_2023v12_cff::exponent, createfilelist::int, jitterErrorBits(), and conifer::pow().
Referenced by EcalUncalibRecHitPhase2WeightsProducer::produce(), EcalUncalibRecHitWorkerRatio::run(), and EcalUncalibRecHitWorkerGlobal::run().
void EcalUncalibratedRecHit::setNonCorrectedTime | ( | const float | correctedJittter, |
const float | nonCorrectedJitter | ||
) |
Definition at line 128 of file EcalUncalibratedRecHit.cc.
References aux_, gpuClustering::pixelStatus::bits, ecalcctiming::encodingOffest, ecalcctiming::encodingValue, and ecalcctiming::nonCorrectedSlope.
|
inline |
Definition at line 45 of file EcalUncalibratedRecHit.h.
References amplitude(), nano_mu_digi_cff::bx, and OOTamplitudes_.
|
inline |
|
private |
Definition at line 63 of file EcalUncalibratedRecHit.h.
Referenced by amplitude(), and setAmplitude().
|
private |
Definition at line 64 of file EcalUncalibratedRecHit.h.
Referenced by amplitudeError(), and setAmplitudeError().
|
private |
Definition at line 72 of file EcalUncalibratedRecHit.h.
Referenced by jitterError(), jitterErrorBits(), setAux(), setJitterError(), and setNonCorrectedTime().
|
private |
Definition at line 67 of file EcalUncalibratedRecHit.h.
|
private |
Definition at line 71 of file EcalUncalibratedRecHit.h.
Referenced by checkFlag(), flags(), setFlagBit(), and setFlags().
|
private |
Definition at line 73 of file EcalUncalibratedRecHit.h.
|
private |
Definition at line 66 of file EcalUncalibratedRecHit.h.
Referenced by jitter(), nonCorrectedTime(), and setJitter().
|
private |
Definition at line 69 of file EcalUncalibratedRecHit.h.
Referenced by EcalUncalibratedRecHit(), outOfTimeAmplitude(), and setOutOfTimeAmplitude().
|
private |
Definition at line 70 of file EcalUncalibratedRecHit.h.
|
private |
Definition at line 65 of file EcalUncalibratedRecHit.h.
Referenced by pedestal(), and setPedestal().