#include <SiStripAPVRestorer.h>
Public Types | |
using | baselinemap_t = std::map< uint16_t, digivector_t > |
using | digi_t = int16_t |
using | digimap_t = std::map< uint16_t, digi_t > |
using | digivector_t = std::vector< digi_t > |
using | medians_t = std::vector< std::pair< short, float >> |
Public Member Functions | |
const std::vector< bool > & | getAPVFlags () const |
const baselinemap_t & | getBaselineMap () const |
const std::map< uint16_t, digimap_t > & | getSmoothedPoints () const |
void | init (const edm::EventSetup &es) |
uint16_t | inspect (uint32_t detId, uint16_t firstAPV, const digivector_t &digis, const medians_t &vmedians) |
uint16_t | inspectAndRestore (uint32_t detId, uint16_t firstAPV, const digivector_t &rawDigisPedSubtracted, digivector_t &processedRawDigi, const medians_t &vmedians) |
void | loadMeanCMMap (const edm::Event &) |
void | restore (uint16_t firstAPV, digivector_t &digis) |
virtual | ~SiStripAPVRestorer () |
Protected Member Functions | |
SiStripAPVRestorer (const edm::ParameterSet &conf) | |
Private Types | |
using | CMMap = std::map< uint32_t, std::vector< float >> |
Private Member Functions | |
uint16_t | abnormalBaselineInspect (uint16_t firstAPV, const digivector_t &digis) |
uint16_t | baselineAndSaturationInspect (uint16_t firstAPV, const digivector_t &digis) |
void | baselineCleaner (const digivector_t &adcs, digimap_t &smoothedpoints, uint16_t apvN) |
void | baselineFollower (const digimap_t &, digivector_t &baseline, float median) |
uint16_t | baselineFollowerInspect (uint16_t firstAPV, const digivector_t &digis) |
void | baselineFollowerRestore (uint16_t apvN, uint16_t firstAPV, float median, digivector_t &digis) |
bool | checkBaseline (const std::vector< int16_t > &baseline) const |
void | cleaner_HighSlopeChecker (digimap_t &smoothedpoints) |
void | cleaner_LocalMinimumAdder (const digivector_t &adcs, digimap_t &smoothedpoints, uint16_t apvN) |
void | cleaner_MonotonyChecker (digimap_t &smoothedpoints) |
void | createCMMapCMstored (const edm::DetSetVector< SiStripProcessedRawDigi > &input) |
void | createCMMapRealPed (const edm::DetSetVector< SiStripRawDigi > &input) |
void | derivativeFollowerRestore (uint16_t apvN, uint16_t firstAPV, digivector_t &digis) |
bool | flatRegionsFinder (const digivector_t &adcs, digimap_t &smoothedpoints, uint16_t apvN) |
void | flatRestore (uint16_t apvN, uint16_t firstAPV, digivector_t &digis) |
uint16_t | forceRestoreInspect (uint16_t firstAPV, const digivector_t &digis) |
uint16_t | hybridEmulationInspect (uint16_t firstAPV, const digivector_t &digis) |
uint16_t | hybridFormatInspect (uint16_t firstAPV, const digivector_t &digis) |
uint16_t | nullInspect (uint16_t firstAPV, const digivector_t &digis) |
Static Private Attributes | |
static uint16_t | nTotStripsPerAPV = 128 |
Friends | |
class | SiStripRawProcessingFactory |
Definition at line 25 of file SiStripAPVRestorer.h.
using SiStripAPVRestorer::baselinemap_t = std::map<uint16_t, digivector_t> |
Definition at line 36 of file SiStripAPVRestorer.h.
|
private |
Definition at line 52 of file SiStripAPVRestorer.h.
using SiStripAPVRestorer::digi_t = int16_t |
Definition at line 32 of file SiStripAPVRestorer.h.
using SiStripAPVRestorer::digimap_t = std::map<uint16_t, digi_t> |
Definition at line 34 of file SiStripAPVRestorer.h.
using SiStripAPVRestorer::digivector_t = std::vector<digi_t> |
Definition at line 33 of file SiStripAPVRestorer.h.
using SiStripAPVRestorer::medians_t = std::vector<std::pair<short,float>> |
Definition at line 35 of file SiStripAPVRestorer.h.
|
protected |
Definition at line 10 of file SiStripAPVRestorer.cc.
References Exception, inspectAlgo_, and restoreAlgo_.
|
inlinevirtual |
Definition at line 30 of file SiStripAPVRestorer.h.
|
inlineprivate |
Definition at line 254 of file SiStripAPVRestorer.cc.
References funct::abs(), apvFlags_, badAPVs_, detId_, deviation_, end, fraction_, SiStripBadStrip::getRange(), SiStripQuality::IsStripBad(), meanCM_, meanCMmap_, min(), nTotStripsPerAPV, qualityHandle, restoreAlgo_, and useRealMeanCM_.
Referenced by inspect().
|
inlineprivate |
Definition at line 222 of file SiStripAPVRestorer.cc.
References funct::abs(), apvFlags_, badAPVs_, deltaCMThreshold_, detId_, end, meanCM_, meanCMmap_, median_, nSaturatedStrip_, nTotStripsPerAPV, restoreAlgo_, digitizers_cfi::strip, and useRealMeanCM_.
Referenced by inspect().
|
inlineprivate |
Definition at line 467 of file SiStripAPVRestorer.cc.
References cleaner_HighSlopeChecker(), cleaner_LocalMinimumAdder(), cleaner_MonotonyChecker(), and cleaningSequence_.
Referenced by flatRegionsFinder().
|
inlineprivate |
Definition at line 604 of file SiStripAPVRestorer.cc.
References funct::m, pfDeepBoostedJetPreprocessParams_cfi::median, minStripsToFit_, and nTotStripsPerAPV.
Referenced by baselineFollowerRestore().
|
inlineprivate |
Definition at line 179 of file SiStripAPVRestorer.cc.
References funct::abs(), apvFlags_, badAPVs_, begin, deltaCMThreshold_, detId_, end, flatRegionsFinder(), meanCM_, meanCMmap_, median_, eostools::move(), nTotStripsPerAPV, restoreAlgo_, smoothedMaps_, and useRealMeanCM_.
Referenced by inspect().
|
inlineprivate |
Definition at line 338 of file SiStripAPVRestorer.cc.
References applyBaselineRejection_, apvFlagsBoolOverride_, baselineFollower(), baselineMap_, begin, checkBaseline(), flatRegionsFinder(), eostools::move(), nTotStripsPerAPV, and smoothedMaps_.
Referenced by restore().
|
private |
Definition at line 649 of file SiStripAPVRestorer.cc.
References MessageLogger_cfi::cerr, edmIntegrityCheck::d, filteredBaselineDerivativeSumSquare_, filteredBaselineMax_, mps_fire::i, SiStripPI::max, and nTotStripsPerAPV.
Referenced by baselineFollowerRestore().
|
inlineprivate |
Definition at line 573 of file SiStripAPVRestorer.cc.
References funct::m.
Referenced by baselineCleaner().
|
inlineprivate |
Definition at line 509 of file SiStripAPVRestorer.cc.
References funct::abs(), ecalMGPA::adc(), detId_, plotBeamSpotDB::first, SiStripNoises::getNoiseFast(), SiStripNoises::getRange(), funct::m, noiseHandle, nTotStripsPerAPV, edm::second(), slopeX_, slopeY_, and digitizers_cfi::strip.
Referenced by baselineCleaner().
|
inlineprivate |
Definition at line 487 of file SiStripAPVRestorer.cc.
References hitStripThreshold_, and edm::second().
Referenced by baselineCleaner().
|
private |
Definition at line 973 of file SiStripAPVRestorer.cc.
References SiStripProcessedRawDigi::adc(), begin, end, meanCMmap_, eostools::move(), and create_public_lumi_plots::transform.
Referenced by loadMeanCMMap().
|
private |
Definition at line 955 of file SiStripAPVRestorer.cc.
References SiStripPedestals::getPed(), SiStripPedestals::getRange(), meanCMmap_, eostools::move(), nTotStripsPerAPV, pedestalHandle, and digitizers_cfi::strip.
Referenced by loadMeanCMMap().
|
private |
Definition at line 987 of file SiStripAPVRestorer.cc.
References funct::abs(), gradient_threshold_, last_gradient_, nTotStripsPerAPV, size_window_, and digitizers_cfi::strip.
Referenced by restore().
|
inlineprivate |
Definition at line 380 of file SiStripAPVRestorer.cc.
References ecalMGPA::adc(), applyBaselineCleaner_, baselineCleaner(), consecThreshold_, detId_, distortionThreshold_, objects.autophobj::float, SiStripNoises::getNoiseFast(), SiStripNoises::getRange(), SiStripPI::max, gen::n, noiseHandle, nSigmaNoiseDerTh_, nSmooth_, and nTotStripsPerAPV.
Referenced by baselineFollowerInspect(), baselineFollowerRestore(), and hybridFormatInspect().
|
inlineprivate |
Definition at line 368 of file SiStripAPVRestorer.cc.
References baselineMap_, eostools::move(), and nTotStripsPerAPV.
Referenced by restore().
|
inlineprivate |
Definition at line 210 of file SiStripAPVRestorer.cc.
References apvFlags_, badAPVs_, nTotStripsPerAPV, and restoreAlgo_.
Referenced by inspect().
|
inline |
Definition at line 49 of file SiStripAPVRestorer.h.
References apvFlagsBool_.
|
inline |
|
inline |
Definition at line 48 of file SiStripAPVRestorer.h.
References smoothedMaps_.
|
inlineprivate |
Definition at line 313 of file SiStripAPVRestorer.cc.
References funct::abs(), apvFlags_, badAPVs_, deltaCMThreshold_, detId_, end, meanCM_, meanCMmap_, median_, nTotStripsPerAPV, and useRealMeanCM_.
Referenced by inspect().
|
inlineprivate |
Definition at line 153 of file SiStripAPVRestorer.cc.
References ecalMGPA::adc(), apvFlags_, badAPVs_, flatRegionsFinder(), eostools::move(), nTotStripsPerAPV, restoreAlgo_, smoothedMaps_, and digitizers_cfi::strip.
Referenced by inspect().
void SiStripAPVRestorer::init | ( | const edm::EventSetup & | es | ) |
Definition at line 54 of file SiStripAPVRestorer.cc.
References edm::EventSetup::get(), noise_cache_id, noiseHandle, pedestal_cache_id, pedestalHandle, quality_cache_id, and qualityHandle.
uint16_t SiStripAPVRestorer::inspect | ( | uint32_t | detId, |
uint16_t | firstAPV, | ||
const digivector_t & | digis, | ||
const medians_t & | vmedians | ||
) |
Definition at line 88 of file SiStripAPVRestorer.cc.
References abnormalBaselineInspect(), apvFlags_, apvFlagsBool_, apvFlagsBoolOverride_, badAPVs_, baselineAndSaturationInspect(), baselineFollowerInspect(), baselineMap_, detId_, relativeConstraints::empty, Exception, forceRestoreInspect(), hybridEmulationInspect(), hybridFormatInspect(), mps_fire::i, inspectAlgo_, SiStripQuality::IsApvBad(), median_, nullInspect(), qualityHandle, and smoothedMaps_.
Referenced by inspectAndRestore().
uint16_t SiStripAPVRestorer::inspectAndRestore | ( | uint32_t | detId, |
uint16_t | firstAPV, | ||
const digivector_t & | rawDigisPedSubtracted, | ||
digivector_t & | processedRawDigi, | ||
const medians_t & | vmedians | ||
) |
Definition at line 81 of file SiStripAPVRestorer.cc.
References inspect(), and restore().
void SiStripAPVRestorer::loadMeanCMMap | ( | const edm::Event & | iEvent | ) |
Definition at line 943 of file SiStripAPVRestorer.cc.
References createCMMapCMstored(), createCMMapRealPed(), edm::Event::getByLabel(), input, and useRealMeanCM_.
|
inlineprivate |
Definition at line 289 of file SiStripAPVRestorer.cc.
References apvFlags_, badAPVs_, detId_, SiStripBadStrip::getRange(), SiStripQuality::IsStripBad(), nTotStripsPerAPV, qualityHandle, restoreAlgo_, and restoreThreshold_.
Referenced by inspect().
void SiStripAPVRestorer::restore | ( | uint16_t | firstAPV, |
digivector_t & | digis | ||
) |
Definition at line 131 of file SiStripAPVRestorer.cc.
References apvFlags_, baselineFollowerRestore(), derivativeFollowerRestore(), Exception, flatRestore(), forceNoRestore_, median_, and nTotStripsPerAPV.
Referenced by inspectAndRestore().
|
friend |
Definition at line 26 of file SiStripAPVRestorer.h.
|
private |
Definition at line 114 of file SiStripAPVRestorer.h.
Referenced by flatRegionsFinder().
|
private |
Definition at line 120 of file SiStripAPVRestorer.h.
Referenced by baselineFollowerRestore().
|
private |
Definition at line 89 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect(), baselineAndSaturationInspect(), baselineFollowerInspect(), forceRestoreInspect(), hybridEmulationInspect(), hybridFormatInspect(), inspect(), nullInspect(), and restore().
|
private |
Definition at line 90 of file SiStripAPVRestorer.h.
Referenced by getAPVFlags(), and inspect().
|
private |
Definition at line 91 of file SiStripAPVRestorer.h.
Referenced by baselineFollowerRestore(), and inspect().
|
private |
Definition at line 93 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect(), baselineAndSaturationInspect(), baselineFollowerInspect(), forceRestoreInspect(), hybridEmulationInspect(), hybridFormatInspect(), inspect(), and nullInspect().
|
private |
Definition at line 95 of file SiStripAPVRestorer.h.
Referenced by baselineFollowerRestore(), flatRestore(), getBaselineMap(), and inspect().
|
private |
Definition at line 115 of file SiStripAPVRestorer.h.
Referenced by baselineCleaner().
|
private |
Definition at line 111 of file SiStripAPVRestorer.h.
Referenced by flatRegionsFinder().
|
private |
Definition at line 105 of file SiStripAPVRestorer.h.
Referenced by baselineAndSaturationInspect(), baselineFollowerInspect(), and hybridEmulationInspect().
|
private |
Definition at line 88 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect(), baselineAndSaturationInspect(), baselineFollowerInspect(), cleaner_LocalMinimumAdder(), flatRegionsFinder(), hybridEmulationInspect(), inspect(), and nullInspect().
|
private |
Definition at line 107 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect().
|
private |
Definition at line 113 of file SiStripAPVRestorer.h.
Referenced by flatRegionsFinder().
|
private |
Definition at line 122 of file SiStripAPVRestorer.h.
Referenced by checkBaseline().
|
private |
Definition at line 121 of file SiStripAPVRestorer.h.
Referenced by checkBaseline().
|
private |
Definition at line 100 of file SiStripAPVRestorer.h.
Referenced by restore().
|
private |
Definition at line 106 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect().
|
private |
Definition at line 123 of file SiStripAPVRestorer.h.
Referenced by derivativeFollowerRestore().
|
private |
Definition at line 118 of file SiStripAPVRestorer.h.
Referenced by cleaner_MonotonyChecker().
|
private |
Definition at line 101 of file SiStripAPVRestorer.h.
Referenced by inspect(), and SiStripAPVRestorer().
|
private |
Definition at line 124 of file SiStripAPVRestorer.h.
Referenced by derivativeFollowerRestore().
|
private |
Definition at line 104 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect(), baselineAndSaturationInspect(), baselineFollowerInspect(), and hybridEmulationInspect().
|
private |
Definition at line 86 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect(), baselineAndSaturationInspect(), baselineFollowerInspect(), createCMMapCMstored(), createCMMapRealPed(), and hybridEmulationInspect().
|
private |
Definition at line 92 of file SiStripAPVRestorer.h.
Referenced by baselineAndSaturationInspect(), baselineFollowerInspect(), hybridEmulationInspect(), inspect(), and restore().
|
private |
Definition at line 119 of file SiStripAPVRestorer.h.
Referenced by baselineFollower().
|
private |
Definition at line 83 of file SiStripAPVRestorer.h.
Referenced by init().
|
private |
Definition at line 81 of file SiStripAPVRestorer.h.
Referenced by cleaner_LocalMinimumAdder(), flatRegionsFinder(), and init().
|
private |
Definition at line 109 of file SiStripAPVRestorer.h.
Referenced by baselineAndSaturationInspect().
|
private |
Definition at line 110 of file SiStripAPVRestorer.h.
Referenced by flatRegionsFinder().
|
private |
Definition at line 112 of file SiStripAPVRestorer.h.
Referenced by flatRegionsFinder().
|
staticprivate |
Definition at line 53 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect(), baselineAndSaturationInspect(), baselineFollower(), baselineFollowerInspect(), baselineFollowerRestore(), checkBaseline(), cleaner_LocalMinimumAdder(), createCMMapRealPed(), derivativeFollowerRestore(), flatRegionsFinder(), flatRestore(), forceRestoreInspect(), hybridEmulationInspect(), hybridFormatInspect(), nullInspect(), and restore().
|
private |
Definition at line 83 of file SiStripAPVRestorer.h.
Referenced by init().
|
private |
Definition at line 82 of file SiStripAPVRestorer.h.
Referenced by createCMMapRealPed(), and init().
|
private |
Definition at line 83 of file SiStripAPVRestorer.h.
Referenced by init().
|
private |
Definition at line 80 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect(), init(), inspect(), and nullInspect().
|
private |
Definition at line 102 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect(), baselineAndSaturationInspect(), baselineFollowerInspect(), forceRestoreInspect(), hybridFormatInspect(), nullInspect(), and SiStripAPVRestorer().
|
private |
Definition at line 108 of file SiStripAPVRestorer.h.
Referenced by nullInspect().
|
private |
Definition at line 125 of file SiStripAPVRestorer.h.
Referenced by derivativeFollowerRestore().
|
private |
Definition at line 116 of file SiStripAPVRestorer.h.
Referenced by cleaner_LocalMinimumAdder().
|
private |
Definition at line 117 of file SiStripAPVRestorer.h.
Referenced by cleaner_LocalMinimumAdder().
|
private |
Definition at line 94 of file SiStripAPVRestorer.h.
Referenced by baselineFollowerInspect(), baselineFollowerRestore(), getSmoothedPoints(), hybridFormatInspect(), and inspect().
|
private |
Definition at line 103 of file SiStripAPVRestorer.h.
Referenced by abnormalBaselineInspect(), baselineAndSaturationInspect(), baselineFollowerInspect(), hybridEmulationInspect(), and loadMeanCMMap().
|
private |
Definition at line 126 of file SiStripAPVRestorer.h.