#include <SiStripAPVRestorer.h>
Public Member Functions | |
void | fixAPVsCM (edm::DetSet< SiStripProcessedRawDigi > &) |
RawDigiMap & | GetBaselineMap () |
std::vector< DigiMap > & | GetSmoothedPoints () |
void | init (const edm::EventSetup &es) |
int16_t | inspect (const uint32_t &, std::vector< int16_t > &, const std::vector< std::pair< short, float > > &) |
void | LoadMeanCMMap (edm::Event &) |
void | restore (std::vector< int16_t > &) |
virtual | ~SiStripAPVRestorer () |
Protected Member Functions | |
SiStripAPVRestorer (const edm::ParameterSet &conf) | |
Private Member Functions | |
template<typename T > | |
int16_t | AbnormalBaselineInspect (std::vector< T > &) |
template<typename T > | |
int16_t | BaselineAndSaturationInspect (std::vector< T > &) |
void | BaselineFollower (DigiMap &, std::vector< int16_t > &, float) |
template<typename T > | |
int16_t | BaselineFollowerInspect (std::vector< T > &) |
template<typename T > | |
void | BaselineFollowerRestore (std::vector< T > &, uint16_t, float) |
void | CreateCMMap (const edm::DetSetVector< SiStripProcessedRawDigi > &) |
bool | FlatRegionsFinder (std::vector< int16_t > &, DigiMap &, float, uint16_t) |
template<typename T > | |
void | FlatRestore (std::vector< T > &, uint16_t) |
template<typename T > | |
int16_t | NullInspect (std::vector< T > &) |
float | pairMedian (std::vector< std::pair< float, float > > &) |
Private Attributes | |
std::vector< std::string > | apvFlags_ |
RawDigiMap | BaselineMap_ |
uint32_t | consecThreshold_ |
double | CutToAvoidSignal_ |
uint32_t | DeltaCMThreshold_ |
uint32_t | detId_ |
uint32_t | deviation_ |
uint32_t | distortionThreshold_ |
bool | ForceNoRestore_ |
double | fraction_ |
uint32_t | hitStripThreshold_ |
edm::InputTag | inputTag_ |
std::string | InspectAlgo_ |
CMMap | MeanCMmap_ |
std::vector< float > | median_ |
uint32_t | minStripsToFit_ |
uint32_t | noise_cache_id |
edm::ESHandle< SiStripNoises > | noiseHandle |
uint32_t | nSaturatedStrip_ |
uint32_t | nSigmaNoiseDerTh_ |
uint32_t | nSmooth_ |
uint32_t | quality_cache_id |
edm::ESHandle< SiStripQuality > | qualityHandle |
std::string | RestoreAlgo_ |
double | restoreThreshold_ |
bool | SelfSelectRestoreAlgo_ |
std::vector< DigiMap > | SmoothedMaps_ |
bool | useRealMeanCM_ |
Friends | |
class | SiStripRawProcessingFactory |
Definition at line 27 of file SiStripAPVRestorer.h.
|
inlinevirtual |
Definition at line 33 of file SiStripAPVRestorer.h.
|
protected |
Definition at line 10 of file SiStripAPVRestorer.cc.
References apvFlags_, BaselineMap_, median_, and SmoothedMaps_.
|
inlineprivate |
Definition at line 208 of file SiStripAPVRestorer.cc.
References abs, sistrip::APV, apvFlags_, detId_, deviation_, fraction_, MeanCMmap_, min, qualityHandle, RestoreAlgo_, and useRealMeanCM_.
Referenced by inspect().
|
inlineprivate |
Definition at line 163 of file SiStripAPVRestorer.cc.
References abs, sistrip::APV, apvFlags_, DeltaCMThreshold_, detId_, MeanCMmap_, median_, nSaturatedStrip_, qualityHandle, strip(), and useRealMeanCM_.
Referenced by inspect().
|
inlineprivate |
Definition at line 467 of file SiStripAPVRestorer.cc.
References m, and minStripsToFit_.
Referenced by BaselineFollowerRestore().
|
inlineprivate |
Definition at line 110 of file SiStripAPVRestorer.cc.
References abs, sistrip::APV, apvFlags_, DeltaCMThreshold_, detId_, FlatRegionsFinder(), MeanCMmap_, median_, qualityHandle, SmoothedMaps_, strip(), and useRealMeanCM_.
Referenced by inspect().
|
inlineprivate |
Definition at line 289 of file SiStripAPVRestorer.cc.
References BaselineFollower(), BaselineMap_, FlatRegionsFinder(), and SmoothedMaps_.
Referenced by restore().
|
private |
Definition at line 586 of file SiStripAPVRestorer.cc.
References edm::DetSetVector< T >::begin(), detId_, edm::DetSetVector< T >::end(), and MeanCMmap_.
Referenced by LoadMeanCMMap().
void SiStripAPVRestorer::fixAPVsCM | ( | edm::DetSet< SiStripProcessedRawDigi > & | cmdigis | ) |
Definition at line 547 of file SiStripAPVRestorer.cc.
References apvFlags_, edm::DetSet< T >::begin(), edm::DetSet< T >::clear(), edm::DetSet< T >::end(), edm::DetSet< T >::push_back(), and edm::DetSet< T >::size().
|
inlineprivate |
Definition at line 365 of file SiStripAPVRestorer.cc.
References ecalMGPA::adc(), consecThreshold_, detId_, distortionThreshold_, hitStripThreshold_, max(), min, n, noiseHandle, nSigmaNoiseDerTh_, and nSmooth_.
Referenced by BaselineFollowerInspect(), and BaselineFollowerRestore().
|
inlineprivate |
Definition at line 341 of file SiStripAPVRestorer.cc.
References BaselineMap_, cmsDriverOptions::counter, and strip().
Referenced by restore().
|
inline |
|
inline |
Definition at line 41 of file SiStripAPVRestorer.h.
References SmoothedMaps_.
void SiStripAPVRestorer::init | ( | const edm::EventSetup & | es | ) |
Definition at line 39 of file SiStripAPVRestorer.cc.
References edm::EventSetup::get(), noise_cache_id, noiseHandle, quality_cache_id, and qualityHandle.
int16_t SiStripAPVRestorer::inspect | ( | const uint32_t & | detId, |
std::vector< int16_t > & | digis, | ||
const std::vector< std::pair< short, float > > & | vmedians | ||
) |
Definition at line 60 of file SiStripAPVRestorer.cc.
References AbnormalBaselineInspect(), apvFlags_, BaselineAndSaturationInspect(), BaselineFollowerInspect(), BaselineMap_, detId_, edm::hlt::Exception, i, InspectAlgo_, median_, NullInspect(), and SmoothedMaps_.
void SiStripAPVRestorer::LoadMeanCMMap | ( | edm::Event & | iEvent | ) |
Definition at line 578 of file SiStripAPVRestorer.cc.
References CreateCMMap(), edm::Event::getByLabel(), inputTag_, and useRealMeanCM_.
|
inlineprivate |
Definition at line 250 of file SiStripAPVRestorer.cc.
References sistrip::APV, apvFlags_, detId_, qualityHandle, RestoreAlgo_, and restoreThreshold_.
Referenced by inspect().
|
private |
void SiStripAPVRestorer::restore | ( | std::vector< int16_t > & | digis | ) |
Definition at line 80 of file SiStripAPVRestorer.cc.
References sistrip::APV, apvFlags_, BaselineFollowerRestore(), edm::hlt::Exception, FlatRestore(), ForceNoRestore_, median_, RestoreAlgo_, and SelfSelectRestoreAlgo_.
|
friend |
Definition at line 29 of file SiStripAPVRestorer.h.
|
private |
Definition at line 72 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineFollowerInspect(), fixAPVsCM(), inspect(), NullInspect(), restore(), and SiStripAPVRestorer().
|
private |
Definition at line 75 of file SiStripAPVRestorer.h.
Referenced by BaselineFollowerRestore(), FlatRestore(), GetBaselineMap(), inspect(), and SiStripAPVRestorer().
|
private |
Definition at line 100 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder().
|
private |
Definition at line 105 of file SiStripAPVRestorer.h.
|
private |
Definition at line 97 of file SiStripAPVRestorer.h.
Referenced by BaselineAndSaturationInspect(), and BaselineFollowerInspect().
|
private |
Definition at line 78 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineFollowerInspect(), CreateCMMap(), FlatRegionsFinder(), inspect(), and NullInspect().
|
private |
Definition at line 95 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect().
|
private |
Definition at line 104 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder().
|
private |
Definition at line 84 of file SiStripAPVRestorer.h.
Referenced by restore().
|
private |
Definition at line 94 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect().
|
private |
Definition at line 101 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder().
|
private |
Definition at line 81 of file SiStripAPVRestorer.h.
Referenced by LoadMeanCMMap().
|
private |
Definition at line 86 of file SiStripAPVRestorer.h.
Referenced by inspect().
|
private |
Definition at line 80 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineFollowerInspect(), and CreateCMMap().
|
private |
Definition at line 73 of file SiStripAPVRestorer.h.
Referenced by BaselineAndSaturationInspect(), BaselineFollowerInspect(), inspect(), restore(), and SiStripAPVRestorer().
|
private |
Definition at line 103 of file SiStripAPVRestorer.h.
Referenced by BaselineFollower().
|
private |
Definition at line 70 of file SiStripAPVRestorer.h.
Referenced by init().
|
private |
Definition at line 69 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder(), and init().
|
private |
Definition at line 106 of file SiStripAPVRestorer.h.
Referenced by BaselineAndSaturationInspect().
|
private |
Definition at line 99 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder().
|
private |
Definition at line 102 of file SiStripAPVRestorer.h.
Referenced by FlatRegionsFinder().
|
private |
Definition at line 67 of file SiStripAPVRestorer.h.
Referenced by init().
|
private |
Definition at line 66 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineFollowerInspect(), init(), and NullInspect().
|
private |
Definition at line 87 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), NullInspect(), and restore().
|
private |
Definition at line 96 of file SiStripAPVRestorer.h.
Referenced by NullInspect().
|
private |
Definition at line 85 of file SiStripAPVRestorer.h.
Referenced by restore().
|
private |
Definition at line 74 of file SiStripAPVRestorer.h.
Referenced by BaselineFollowerInspect(), BaselineFollowerRestore(), GetSmoothedPoints(), inspect(), and SiStripAPVRestorer().
|
private |
Definition at line 88 of file SiStripAPVRestorer.h.
Referenced by AbnormalBaselineInspect(), BaselineAndSaturationInspect(), BaselineFollowerInspect(), and LoadMeanCMMap().