#include <SiStripAPVRestorer.h>
Public Member Functions | |
std::vector< bool > & | GetAPVFlags () |
RawDigiMap & | GetBaselineMap () |
std::map< uint16_t, DigiMap > & | GetSmoothedPoints () |
void | init (const edm::EventSetup &es) |
int16_t | inspect (const uint32_t &, const uint16_t &, std::vector< int16_t > &, const std::vector< std::pair< short, float > > &) |
int16_t | InspectAndRestore (const uint32_t &, const uint16_t &, std::vector< int16_t > &, std::vector< int16_t > &, const std::vector< std::pair< short, float > > &) |
void | LoadMeanCMMap (const edm::Event &) |
void | restore (const uint16_t &, std::vector< int16_t > &) |
virtual | ~SiStripAPVRestorer () |
Protected Member Functions | |
SiStripAPVRestorer (const edm::ParameterSet &conf) | |
Private Member Functions | |
template<typename T > | |
int16_t | AbnormalBaselineInspect (const uint16_t &, std::vector< T > &) |
template<typename T > | |
int16_t | BaselineAndSaturationInspect (const uint16_t &, std::vector< T > &) |
void | BaselineCleaner (const std::vector< int16_t > &, DigiMap &, const uint16_t &) |
void | BaselineFollower (DigiMap &, std::vector< int16_t > &, const float &) |
template<typename T > | |
int16_t | BaselineFollowerInspect (const uint16_t &, std::vector< T > &) |
void | BaselineFollowerRestore (const uint16_t &, const uint16_t &, const float &, std::vector< int16_t > &) |
bool | CheckBaseline (const std::vector< int16_t > &) const |
void | Cleaner_HighSlopeChecker (DigiMap &) |
void | Cleaner_LocalMinimumAdder (const std::vector< int16_t > &, DigiMap &, const uint16_t &) |
void | Cleaner_MonotonyChecker (DigiMap &) |
void | CreateCMMapCMstored (const edm::DetSetVector< SiStripProcessedRawDigi > &) |
void | CreateCMMapRealPed (const edm::DetSetVector< SiStripRawDigi > &) |
bool | FlatRegionsFinder (const std::vector< int16_t > &, DigiMap &, const uint16_t &) |
void | FlatRestore (const uint16_t &, const uint16_t &, std::vector< int16_t > &) |
template<typename T > | |
int16_t | NullInspect (const uint16_t &, std::vector< T > &) |
float | pairMedian (std::vector< std::pair< float, float > > &) |
Friends | |
class | SiStripRawProcessingFactory |
Definition at line 31 of file SiStripAPVRestorer.h.
|
inlinevirtual |
Definition at line 37 of file SiStripAPVRestorer.h.
References init(), inspect(), InspectAndRestore(), LoadMeanCMMap(), and restore().
|
protected |
Definition at line 9 of file SiStripAPVRestorer.cc.
References apvFlags_, BaselineMap_, median_, and SmoothedMaps_.
Referenced by GetSmoothedPoints().
|
inlineprivate |
Definition at line 226 of file SiStripAPVRestorer.cc.
References funct::abs(), sistrip::APV, apvFlags_, badAPVs_, detId_, deviation_, fraction_, SiStripBadStrip::getRange(), createfilelist::int, SiStripQuality::IsStripBad(), MeanCM_, MeanCMmap_, min(), qualityHandle, RestoreAlgo_, and useRealMeanCM_.
Referenced by GetSmoothedPoints(), and inspect().
|
inlineprivate |
Definition at line 186 of file SiStripAPVRestorer.cc.
References funct::abs(), sistrip::APV, apvFlags_, badAPVs_, DeltaCMThreshold_, detId_, MeanCM_, MeanCMmap_, median_, nSaturatedStrip_, RestoreAlgo_, digi_MixPreMix_cfi::strip, and useRealMeanCM_.
Referenced by GetSmoothedPoints(), and inspect().
|
inlineprivate |
Definition at line 474 of file SiStripAPVRestorer.cc.
References Cleaner_HighSlopeChecker(), Cleaner_LocalMinimumAdder(), Cleaner_MonotonyChecker(), and CleaningSequence_.
Referenced by FlatRegionsFinder(), and GetSmoothedPoints().
|
inlineprivate |
Definition at line 632 of file SiStripAPVRestorer.cc.
References funct::m, pfDeepBoostedJetPreprocessParams_cfi::median, and minStripsToFit_.
Referenced by BaselineFollowerRestore(), and GetSmoothedPoints().
|
inlineprivate |
Definition at line 142 of file SiStripAPVRestorer.cc.
References funct::abs(), sistrip::APV, apvFlags_, badAPVs_, DeltaCMThreshold_, detId_, FlatRegionsFinder(), MeanCM_, MeanCMmap_, median_, SmoothedMaps_, digi_MixPreMix_cfi::strip, and useRealMeanCM_.
Referenced by GetSmoothedPoints(), and inspect().
|
inlineprivate |
Definition at line 308 of file SiStripAPVRestorer.cc.
References ApplyBaselineRejection_, apvFlagsBoolOverride_, BaselineFollower(), BaselineMap_, CheckBaseline(), FlatRegionsFinder(), SmoothedMaps_, and digi_MixPreMix_cfi::strip.
Referenced by GetSmoothedPoints(), and restore().
|
private |
Definition at line 688 of file SiStripAPVRestorer.cc.
References MessageLogger_cfi::cerr, edmIntegrityCheck::d, filteredBaselineDerivativeSumSquare_, filteredBaselineMax_, mps_fire::i, and SiStripPI::max.
Referenced by BaselineFollowerRestore(), and GetSmoothedPoints().
|
inlineprivate |
Definition at line 600 of file SiStripAPVRestorer.cc.
References funct::m.
Referenced by BaselineCleaner(), and GetSmoothedPoints().
|
inlineprivate |
Definition at line 522 of file SiStripAPVRestorer.cc.
References funct::abs(), ecalMGPA::adc(), detId_, SiStripNoises::getNoiseFast(), SiStripNoises::getRange(), funct::m, noiseHandle, slopeX_, slopeY_, and digi_MixPreMix_cfi::strip.
Referenced by BaselineCleaner(), and GetSmoothedPoints().
|
inlineprivate |
Definition at line 496 of file SiStripAPVRestorer.cc.
References hitStripThreshold_.
Referenced by BaselineCleaner(), and GetSmoothedPoints().
|
private |
Definition at line 1027 of file SiStripAPVRestorer.cc.
References edm::DetSetVector< T >::begin(), edm::DetSetVector< T >::end(), and MeanCMmap_.
Referenced by GetSmoothedPoints(), and LoadMeanCMMap().
|
private |
Definition at line 999 of file SiStripAPVRestorer.cc.
References sistrip::APV, edm::DetSetVector< T >::begin(), edm::DetSetVector< T >::end(), SiStripPedestals::getPed(), SiStripPedestals::getRange(), MeanCMmap_, pedestalHandle, and digi_MixPreMix_cfi::strip.
Referenced by GetSmoothedPoints(), and LoadMeanCMMap().
|
inlineprivate |
Definition at line 375 of file SiStripAPVRestorer.cc.
References ecalMGPA::adc(), ApplyBaselineCleaner_, BaselineCleaner(), consecThreshold_, detId_, distortionThreshold_, objects.autophobj::float, SiStripNoises::getNoiseFast(), SiStripNoises::getRange(), SiStripPI::max, min(), gen::n, noiseHandle, nSigmaNoiseDerTh_, and nSmooth_.
Referenced by BaselineFollowerInspect(), BaselineFollowerRestore(), and GetSmoothedPoints().
|
inlineprivate |
Definition at line 354 of file SiStripAPVRestorer.cc.
References BaselineMap_.
Referenced by GetSmoothedPoints(), and restore().
std::vector< bool > & SiStripAPVRestorer::GetAPVFlags | ( | ) |
Definition at line 1043 of file SiStripAPVRestorer.cc.
References apvFlags_, apvFlagsBool_, apvFlagsBoolOverride_, and mps_fire::i.
Referenced by GetSmoothedPoints().
|
inline |
|
inline |
Definition at line 48 of file SiStripAPVRestorer.h.
References AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineCleaner(), BaselineFollower(), BaselineFollowerInspect(), BaselineFollowerRestore(), CheckBaseline(), Cleaner_HighSlopeChecker(), Cleaner_LocalMinimumAdder(), Cleaner_MonotonyChecker(), CreateCMMapCMstored(), CreateCMMapRealPed(), FlatRegionsFinder(), FlatRestore(), GetAPVFlags(), NullInspect(), pairMedian(), SiStripAPVRestorer(), and SmoothedMaps_.
void SiStripAPVRestorer::init | ( | const edm::EventSetup & | es | ) |
Definition at line 45 of file SiStripAPVRestorer.cc.
References edm::EventSetup::get(), noise_cache_id, noiseHandle, pedestal_cache_id, pedestalHandle, quality_cache_id, and qualityHandle.
Referenced by ~SiStripAPVRestorer().
int16_t SiStripAPVRestorer::inspect | ( | const uint32_t & | detId, |
const uint16_t & | firstAPV, | ||
std::vector< int16_t > & | digis, | ||
const std::vector< std::pair< short, float > > & | vmedians | ||
) |
Definition at line 80 of file SiStripAPVRestorer.cc.
References AbnormalBaselineInspect(), sistrip::APV, apvFlags_, apvFlagsBool_, apvFlagsBoolOverride_, badAPVs_, BaselineAndSaturationInspect(), BaselineFollowerInspect(), BaselineMap_, detId_, Exception, mps_fire::i, InspectAlgo_, SiStripQuality::IsApvBad(), median_, NullInspect(), qualityHandle, and SmoothedMaps_.
Referenced by InspectAndRestore(), and ~SiStripAPVRestorer().
int16_t SiStripAPVRestorer::InspectAndRestore | ( | const uint32_t & | detId, |
const uint16_t & | firstAPV, | ||
std::vector< int16_t > & | rawDigisPedSubtracted, | ||
std::vector< int16_t > & | processedRawDigi, | ||
const std::vector< std::pair< short, float > > & | vmedians | ||
) |
Definition at line 73 of file SiStripAPVRestorer.cc.
References inspect(), and restore().
Referenced by ~SiStripAPVRestorer().
void SiStripAPVRestorer::LoadMeanCMMap | ( | const edm::Event & | iEvent | ) |
Definition at line 986 of file SiStripAPVRestorer.cc.
References CreateCMMapCMstored(), CreateCMMapRealPed(), edm::Event::getByLabel(), input, and useRealMeanCM_.
Referenced by ~SiStripAPVRestorer().
|
inlineprivate |
Definition at line 270 of file SiStripAPVRestorer.cc.
References sistrip::APV, apvFlags_, badAPVs_, detId_, SiStripBadStrip::getRange(), SiStripQuality::IsStripBad(), qualityHandle, RestoreAlgo_, and restoreThreshold_.
Referenced by GetSmoothedPoints(), and inspect().
|
private |
Referenced by GetSmoothedPoints().
void SiStripAPVRestorer::restore | ( | const uint16_t & | firstAPV, |
std::vector< int16_t > & | digis | ||
) |
Definition at line 111 of file SiStripAPVRestorer.cc.
References sistrip::APV, apvFlags_, BaselineFollowerRestore(), Exception, FlatRestore(), ForceNoRestore_, median_, RestoreAlgo_, SelfSelectRestoreAlgo_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by InspectAndRestore(), and ~SiStripAPVRestorer().
|
friend |
Definition at line 33 of file SiStripAPVRestorer.h.
|
private |
Definition at line 131 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder().
|
private |
Definition at line 135 of file SiStripAPVRestorer.h.
Referenced by BaselineFollowerRestore().
|
private |
Definition at line 93 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineFollowerInspect(), GetAPVFlags(), inspect(), NullInspect(), restore(), and SiStripAPVRestorer().
|
private |
Definition at line 94 of file SiStripAPVRestorer.h.
Referenced by GetAPVFlags(), and inspect().
|
private |
Definition at line 95 of file SiStripAPVRestorer.h.
Referenced by BaselineFollowerRestore(), GetAPVFlags(), and inspect().
|
private |
Definition at line 97 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineFollowerInspect(), inspect(), and NullInspect().
|
private |
Definition at line 99 of file SiStripAPVRestorer.h.
Referenced by BaselineFollowerRestore(), FlatRestore(), GetBaselineMap(), inspect(), and SiStripAPVRestorer().
|
private |
Definition at line 134 of file SiStripAPVRestorer.h.
Referenced by BaselineCleaner().
|
private |
Definition at line 124 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder().
|
private |
Definition at line 129 of file SiStripAPVRestorer.h.
|
private |
Definition at line 121 of file SiStripAPVRestorer.h.
Referenced by BaselineAndSaturationInspect(), and BaselineFollowerInspect().
|
private |
Definition at line 102 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineFollowerInspect(), Cleaner_LocalMinimumAdder(), FlatRegionsFinder(), inspect(), and NullInspect().
|
private |
Definition at line 119 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect().
|
private |
Definition at line 128 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder().
|
private |
Definition at line 138 of file SiStripAPVRestorer.h.
Referenced by CheckBaseline().
|
private |
Definition at line 137 of file SiStripAPVRestorer.h.
Referenced by CheckBaseline().
|
private |
Definition at line 108 of file SiStripAPVRestorer.h.
Referenced by restore().
|
private |
Definition at line 118 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect().
|
private |
Definition at line 125 of file SiStripAPVRestorer.h.
Referenced by Cleaner_MonotonyChecker().
|
private |
Definition at line 105 of file SiStripAPVRestorer.h.
|
private |
Definition at line 110 of file SiStripAPVRestorer.h.
Referenced by inspect().
|
private |
Definition at line 136 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), and BaselineFollowerInspect().
|
private |
Definition at line 104 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineFollowerInspect(), CreateCMMapCMstored(), and CreateCMMapRealPed().
|
private |
Definition at line 96 of file SiStripAPVRestorer.h.
Referenced by BaselineAndSaturationInspect(), BaselineFollowerInspect(), inspect(), restore(), and SiStripAPVRestorer().
|
private |
Definition at line 127 of file SiStripAPVRestorer.h.
Referenced by BaselineFollower().
|
private |
Definition at line 88 of file SiStripAPVRestorer.h.
Referenced by init().
|
private |
Definition at line 87 of file SiStripAPVRestorer.h.
Referenced by Cleaner_LocalMinimumAdder(), FlatRegionsFinder(), and init().
|
private |
Definition at line 130 of file SiStripAPVRestorer.h.
Referenced by BaselineAndSaturationInspect().
|
private |
Definition at line 123 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder().
|
private |
Definition at line 126 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder().
|
private |
Definition at line 91 of file SiStripAPVRestorer.h.
Referenced by init().
|
private |
Definition at line 90 of file SiStripAPVRestorer.h.
Referenced by CreateCMMapRealPed(), and init().
|
private |
Definition at line 85 of file SiStripAPVRestorer.h.
Referenced by init().
|
private |
Definition at line 84 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), init(), inspect(), and NullInspect().
|
private |
Definition at line 111 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), NullInspect(), and restore().
|
private |
Definition at line 120 of file SiStripAPVRestorer.h.
Referenced by NullInspect().
|
private |
Definition at line 109 of file SiStripAPVRestorer.h.
Referenced by restore().
|
private |
Definition at line 132 of file SiStripAPVRestorer.h.
Referenced by Cleaner_LocalMinimumAdder().
|
private |
Definition at line 133 of file SiStripAPVRestorer.h.
Referenced by Cleaner_LocalMinimumAdder().
|
private |
Definition at line 98 of file SiStripAPVRestorer.h.
Referenced by BaselineFollowerInspect(), BaselineFollowerRestore(), GetSmoothedPoints(), inspect(), and SiStripAPVRestorer().
|
private |
Definition at line 112 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineFollowerInspect(), and LoadMeanCMMap().