#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.
|
protected |
Definition at line 9 of file SiStripAPVRestorer.cc.
References apvFlags_, BaselineMap_, median_, and SmoothedMaps_.
|
inlineprivate |
Definition at line 226 of file SiStripAPVRestorer.cc.
References funct::abs(), sistrip::APV, apvFlags_, badAPVs_, detId_, deviation_, fraction_, MeanCM_, MeanCMmap_, min(), qualityHandle, RestoreAlgo_, and useRealMeanCM_.
Referenced by inspect().
|
inlineprivate |
Definition at line 186 of file SiStripAPVRestorer.cc.
References funct::abs(), sistrip::APV, apvFlags_, badAPVs_, DeltaCMThreshold_, detId_, MeanCM_, MeanCMmap_, median_, nSaturatedStrip_, RestoreAlgo_, and useRealMeanCM_.
Referenced by inspect().
|
inlineprivate |
Definition at line 474 of file SiStripAPVRestorer.cc.
References Cleaner_HighSlopeChecker(), Cleaner_LocalMinimumAdder(), Cleaner_MonotonyChecker(), and CleaningSequence_.
Referenced by FlatRegionsFinder().
|
inlineprivate |
Definition at line 632 of file SiStripAPVRestorer.cc.
References visualization-live-secondInstance_cfg::m, and minStripsToFit_.
Referenced by BaselineFollowerRestore().
|
inlineprivate |
Definition at line 142 of file SiStripAPVRestorer.cc.
References funct::abs(), sistrip::APV, apvFlags_, badAPVs_, DeltaCMThreshold_, detId_, FlatRegionsFinder(), MeanCM_, MeanCMmap_, median_, SmoothedMaps_, and useRealMeanCM_.
Referenced by inspect().
|
inlineprivate |
Definition at line 308 of file SiStripAPVRestorer.cc.
References ApplyBaselineRejection_, apvFlagsBoolOverride_, BaselineFollower(), BaselineMap_, CheckBaseline(), FlatRegionsFinder(), and SmoothedMaps_.
Referenced by restore().
|
private |
Definition at line 688 of file SiStripAPVRestorer.cc.
References ecal_dqm_sourceclient-live_cfg::cerr, ztail::d, filteredBaselineDerivativeSumSquare_, filteredBaselineMax_, i, j, bookConverter::max, and run_regression::test.
Referenced by BaselineFollowerRestore().
|
inlineprivate |
Definition at line 600 of file SiStripAPVRestorer.cc.
References visualization-live-secondInstance_cfg::m.
Referenced by BaselineCleaner().
|
inlineprivate |
Definition at line 522 of file SiStripAPVRestorer.cc.
References funct::abs(), ecalMGPA::adc(), detId_, visualization-live-secondInstance_cfg::m, noiseHandle, slopeX_, and slopeY_.
Referenced by BaselineCleaner().
|
inlineprivate |
Definition at line 496 of file SiStripAPVRestorer.cc.
References hitStripThreshold_.
Referenced by BaselineCleaner().
|
private |
Definition at line 1027 of file SiStripAPVRestorer.cc.
References edm::DetSetVector< T >::begin(), edm::DetSetVector< T >::end(), and MeanCMmap_.
Referenced by LoadMeanCMMap().
|
private |
Definition at line 999 of file SiStripAPVRestorer.cc.
References sistrip::APV, edm::DetSetVector< T >::begin(), edm::DetSetVector< T >::end(), MeanCMmap_, and pedestalHandle.
Referenced by LoadMeanCMMap().
|
inlineprivate |
Definition at line 375 of file SiStripAPVRestorer.cc.
References ecalMGPA::adc(), ApplyBaselineCleaner_, BaselineCleaner(), consecThreshold_, detId_, distortionThreshold_, bookConverter::max, min(), gen::n, noiseHandle, nSigmaNoiseDerTh_, and nSmooth_.
Referenced by BaselineFollowerInspect(), and BaselineFollowerRestore().
|
inlineprivate |
Definition at line 354 of file SiStripAPVRestorer.cc.
References BaselineMap_.
Referenced by restore().
std::vector< bool > & SiStripAPVRestorer::GetAPVFlags | ( | ) |
Definition at line 1043 of file SiStripAPVRestorer.cc.
References apvFlags_, apvFlagsBool_, apvFlagsBoolOverride_, and i.
|
inline |
|
inline |
Definition at line 48 of file SiStripAPVRestorer.h.
References 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.
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_, edm::hlt::Exception, i, InspectAlgo_, median_, NullInspect(), qualityHandle, and SmoothedMaps_.
Referenced by InspectAndRestore().
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().
void SiStripAPVRestorer::LoadMeanCMMap | ( | const edm::Event & | iEvent | ) |
Definition at line 986 of file SiStripAPVRestorer.cc.
References CreateCMMapCMstored(), CreateCMMapRealPed(), edm::Event::getByLabel(), input, and useRealMeanCM_.
|
inlineprivate |
Definition at line 270 of file SiStripAPVRestorer.cc.
References sistrip::APV, apvFlags_, badAPVs_, detId_, qualityHandle, RestoreAlgo_, and restoreThreshold_.
Referenced by inspect().
|
private |
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(), edm::hlt::Exception, FlatRestore(), ForceNoRestore_, median_, RestoreAlgo_, SelfSelectRestoreAlgo_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by InspectAndRestore().
|
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().