CMS 3D CMS Logo

IteratedMedianCMNSubtractor.h
Go to the documentation of this file.
1 
2 #ifndef RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPITERATEDMEDIANCOMMONMODENOISESUBTRACTION_H
3 #define RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPITERATEDMEDIANCOMMONMODENOISESUBTRACTION_H
5 
7 
8 class SiStripNoises;
9 class SiStripQuality;
10 
13 
14 public:
15  void init(const edm::EventSetup& es) override;
16  void subtract(uint32_t detId, uint16_t firstAPV, std::vector<int16_t>& digis) override;
17  void subtract(uint32_t detId, uint16_t firstAPV, std::vector<float>& digis) override;
18 
19 private:
20  template <typename T>
21  void subtract_(uint32_t detId, uint16_t firstAPV, std::vector<T>& digis);
22  inline float pairMedian(std::vector<std::pair<float, float> >& sample);
23 
24  IteratedMedianCMNSubtractor(double sigma, int iterations)
26  double cut_to_avoid_signal_;
31 };
32 #endif
IteratedMedianCMNSubtractor::pairMedian
float pairMedian(std::vector< std::pair< float, float > > &sample)
Definition: IteratedMedianCMNSubtractor.cc:85
ESHandle.h
simplePhotonAnalyzer_cfi.sample
sample
Definition: simplePhotonAnalyzer_cfi.py:12
SiStripNoises
Definition: SiStripNoises.h:25
SiStripRawProcessingFactory
Definition: SiStripRawProcessingFactory.h:14
SiStripCommonModeNoiseSubtractor.h
IteratedMedianCMNSubtractor::init
void init(const edm::EventSetup &es) override
Definition: IteratedMedianCMNSubtractor.cc:9
IteratedMedianCMNSubtractor::qualityHandle
edm::ESHandle< SiStripQuality > qualityHandle
Definition: IteratedMedianCMNSubtractor.h:29
IteratedMedianCMNSubtractor
Definition: IteratedMedianCMNSubtractor.h:11
edm::ESHandle< SiStripNoises >
SiStripCommonModeNoiseSubtractor
Definition: SiStripCommonModeNoiseSubtractor.h:9
IteratedMedianCMNSubtractor::subtract_
void subtract_(uint32_t detId, uint16_t firstAPV, std::vector< T > &digis)
Definition: IteratedMedianCMNSubtractor.cc:31
IteratedMedianCMNSubtractor::iterations_
int iterations_
Definition: IteratedMedianCMNSubtractor.h:27
IteratedMedianCMNSubtractor::cut_to_avoid_signal_
double cut_to_avoid_signal_
Definition: IteratedMedianCMNSubtractor.h:25
edm::EventSetup
Definition: EventSetup.h:57
IteratedMedianCMNSubtractor::quality_cache_id
uint32_t quality_cache_id
Definition: IteratedMedianCMNSubtractor.h:30
IteratedMedianCMNSubtractor::subtract
void subtract(uint32_t detId, uint16_t firstAPV, std::vector< int16_t > &digis) override
Definition: IteratedMedianCMNSubtractor.cc:23
IteratedMedianCMNSubtractor::noise_cache_id
uint32_t noise_cache_id
Definition: IteratedMedianCMNSubtractor.h:30
IteratedMedianCMNSubtractor::noiseHandle
edm::ESHandle< SiStripNoises > noiseHandle
Definition: IteratedMedianCMNSubtractor.h:28
IteratedMedianCMNSubtractor::IteratedMedianCMNSubtractor
IteratedMedianCMNSubtractor(double sigma, int iterations)
Definition: IteratedMedianCMNSubtractor.h:24
SiStripQuality
Definition: SiStripQuality.h:32