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 
10 
11 class SiStripNoises;
12 class SiStripQuality;
13 
16 
17 public:
18  void init(const edm::EventSetup& es) override;
19  void subtract(uint32_t detId, uint16_t firstAPV, std::vector<int16_t>& digis) override;
20  void subtract(uint32_t detId, uint16_t firstAPV, std::vector<float>& digis) override;
21 
22 private:
23  template <typename T>
24  void subtract_(uint32_t detId, uint16_t firstAPV, std::vector<T>& digis);
25  inline float pairMedian(std::vector<std::pair<float, float> >& sample);
26 
27  IteratedMedianCMNSubtractor(double sigma, int iterations, edm::ConsumesCollector iC)
28  : cut_to_avoid_signal_(sigma),
29  iterations_(iterations),
30  noiseToken_(iC.esConsumes<SiStripNoises, SiStripNoisesRcd>()),
32  double cut_to_avoid_signal_;
40 };
41 #endif
IteratedMedianCMNSubtractor::pairMedian
float pairMedian(std::vector< std::pair< float, float > > &sample)
Definition: IteratedMedianCMNSubtractor.cc:78
edm::ESWatcher< SiStripNoisesRcd >
IteratedMedianCMNSubtractor::noiseToken_
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noiseToken_
Definition: IteratedMedianCMNSubtractor.h:34
simplePhotonAnalyzer_cfi.sample
sample
Definition: simplePhotonAnalyzer_cfi.py:12
SiStripNoises
Definition: SiStripNoises.h:25
SiStripRawProcessingFactory
Definition: SiStripRawProcessingFactory.h:15
IteratedMedianCMNSubtractor::qualityToken_
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > qualityToken_
Definition: IteratedMedianCMNSubtractor.h:35
IteratedMedianCMNSubtractor::IteratedMedianCMNSubtractor
IteratedMedianCMNSubtractor(double sigma, int iterations, edm::ConsumesCollector iC)
Definition: IteratedMedianCMNSubtractor.h:27
SiStripCommonModeNoiseSubtractor.h
IteratedMedianCMNSubtractor::qualityWatcher_
edm::ESWatcher< SiStripQualityRcd > qualityWatcher_
Definition: IteratedMedianCMNSubtractor.h:39
SiStripNoisesRcd
Definition: SiStripCondDataRecords.h:40
IteratedMedianCMNSubtractor::noiseWatcher_
edm::ESWatcher< SiStripNoisesRcd > noiseWatcher_
Definition: IteratedMedianCMNSubtractor.h:38
IteratedMedianCMNSubtractor::init
void init(const edm::EventSetup &es) override
Definition: IteratedMedianCMNSubtractor.cc:7
IteratedMedianCMNSubtractor
Definition: IteratedMedianCMNSubtractor.h:14
SiStripQualityRcd
Definition: SiStripDependentRecords.h:55
SiStripCommonModeNoiseSubtractor
Definition: SiStripCommonModeNoiseSubtractor.h:9
IteratedMedianCMNSubtractor::subtract_
void subtract_(uint32_t detId, uint16_t firstAPV, std::vector< T > &digis)
Definition: IteratedMedianCMNSubtractor.cc:24
IteratedMedianCMNSubtractor::noiseHandle
const SiStripNoises * noiseHandle
Definition: IteratedMedianCMNSubtractor.h:36
IteratedMedianCMNSubtractor::iterations_
int iterations_
Definition: IteratedMedianCMNSubtractor.h:33
IteratedMedianCMNSubtractor::cut_to_avoid_signal_
double cut_to_avoid_signal_
Definition: IteratedMedianCMNSubtractor.h:31
trackerHitRTTI::vector
Definition: trackerHitRTTI.h:21
edm::EventSetup
Definition: EventSetup.h:57
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd >
ESWatcher.h
SiStripQualityRcd.h
IteratedMedianCMNSubtractor::qualityHandle
const SiStripQuality * qualityHandle
Definition: IteratedMedianCMNSubtractor.h:37
SiStripNoisesRcd.h
ConsumesCollector.h
IteratedMedianCMNSubtractor::subtract
void subtract(uint32_t detId, uint16_t firstAPV, std::vector< int16_t > &digis) override
Definition: IteratedMedianCMNSubtractor.cc:16
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
SiStripQuality
Definition: SiStripQuality.h:32