RecoLocalTracker
SiStripZeroSuppression
interface
IteratedMedianCMNSubtractor.h
Go to the documentation of this file.
1
2
#ifndef RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPITERATEDMEDIANCOMMONMODENOISESUBTRACTION_H
3
#define RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPITERATEDMEDIANCOMMONMODENOISESUBTRACTION_H
4
#include "
RecoLocalTracker/SiStripZeroSuppression/interface/SiStripCommonModeNoiseSubtractor.h
"
5
6
#include "
FWCore/Framework/interface/ESHandle.h
"
7
8
class
SiStripNoises
;
9
class
SiStripQuality
;
10
11
class
IteratedMedianCMNSubtractor
:
public
SiStripCommonModeNoiseSubtractor
{
12
friend
class
SiStripRawProcessingFactory
;
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)
25
:
cut_to_avoid_signal_
(sigma),
iterations_
(iterations),
noise_cache_id
(0),
quality_cache_id
(0){};
26
double
cut_to_avoid_signal_
;
27
int
iterations_
;
28
edm::ESHandle<SiStripNoises>
noiseHandle
;
29
edm::ESHandle<SiStripQuality>
qualityHandle
;
30
uint32_t
noise_cache_id
,
quality_cache_id
;
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
Generated for CMSSW Reference Manual by
1.8.16