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 "
CondFormats/DataRecord/interface/SiStripNoisesRcd.h
"
7
#include "
CalibTracker/Records/interface/SiStripQualityRcd.h
"
8
#include "
FWCore/Framework/interface/ESWatcher.h
"
9
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
10
11
class
SiStripNoises
;
12
class
SiStripQuality
;
13
14
class
IteratedMedianCMNSubtractor
:
public
SiStripCommonModeNoiseSubtractor
{
15
friend
class
SiStripRawProcessingFactory
;
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
>()),
31
qualityToken_
(iC.esConsumes<
SiStripQuality
,
SiStripQualityRcd
>()){};
32
double
cut_to_avoid_signal_
;
33
int
iterations_
;
34
edm::ESGetToken<SiStripNoises, SiStripNoisesRcd>
noiseToken_
;
35
edm::ESGetToken<SiStripQuality, SiStripQualityRcd>
qualityToken_
;
36
const
SiStripNoises
*
noiseHandle
;
37
const
SiStripQuality
*
qualityHandle
;
38
edm::ESWatcher<SiStripNoisesRcd>
noiseWatcher_
;
39
edm::ESWatcher<SiStripQualityRcd>
qualityWatcher_
;
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
Generated for CMSSW Reference Manual by
1.8.16