RecoLocalTracker
SiStripZeroSuppression
interface
TT6CMNSubtractor.h
Go to the documentation of this file.
1
#ifndef RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPTT6COMMONMODENOISESUBTRACTION_H
2
#define RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPTT6COMMONMODENOISESUBTRACTION_H
3
#include "
RecoLocalTracker/SiStripZeroSuppression/interface/SiStripCommonModeNoiseSubtractor.h
"
4
#include "
CondFormats/DataRecord/interface/SiStripNoisesRcd.h
"
5
#include "
CalibTracker/Records/interface/SiStripQualityRcd.h
"
6
7
#include "
FWCore/Framework/interface/ESWatcher.h
"
8
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
9
class
SiStripNoises
;
10
class
SiStripQuality
;
11
12
class
TT6CMNSubtractor
:
public
SiStripCommonModeNoiseSubtractor
{
13
friend
class
SiStripRawProcessingFactory
;
14
15
public
:
16
void
init
(
const
edm::EventSetup
& es)
override
;
17
void
subtract
(uint32_t detId, uint16_t firstAPV, std::vector<int16_t>& digis)
override
;
18
void
subtract
(uint32_t detId, uint16_t firstAPV, std::vector<float>& digis)
override
;
19
20
private
:
21
template
<
typename
T>
22
void
subtract_
(uint32_t detId, uint16_t firstAPV, std::vector<T>& digis);
23
24
TT6CMNSubtractor
(
double
in
,
edm::ConsumesCollector
iC)
25
:
cut_to_avoid_signal_
(
in
),
26
noiseToken_
(iC.
esConsumes
<
SiStripNoises
,
SiStripNoisesRcd
>()),
27
qualityToken_
(iC.
esConsumes
<
SiStripQuality
,
SiStripQualityRcd
>()) {}
28
double
cut_to_avoid_signal_
;
29
edm::ESGetToken<SiStripNoises, SiStripNoisesRcd>
noiseToken_
;
30
edm::ESGetToken<SiStripQuality, SiStripQualityRcd>
qualityToken_
;
31
const
SiStripNoises
*
noiseHandle
;
32
const
SiStripQuality
*
qualityHandle
;
33
edm::ESWatcher<SiStripNoisesRcd>
noiseWatcher_
;
34
edm::ESWatcher<SiStripQualityRcd>
qualityWatcher_
;
35
};
36
#endif
TT6CMNSubtractor::noiseToken_
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd > noiseToken_
Definition:
TT6CMNSubtractor.h:29
TT6CMNSubtractor::qualityHandle
const SiStripQuality * qualityHandle
Definition:
TT6CMNSubtractor.h:32
TT6CMNSubtractor::init
void init(const edm::EventSetup &es) override
Definition:
TT6CMNSubtractor.cc:7
edm::ESWatcher< SiStripNoisesRcd >
SiStripNoises
Definition:
SiStripNoises.h:25
SiStripRawProcessingFactory
Definition:
SiStripRawProcessingFactory.h:15
SiStripCommonModeNoiseSubtractor.h
TT6CMNSubtractor::qualityToken_
edm::ESGetToken< SiStripQuality, SiStripQualityRcd > qualityToken_
Definition:
TT6CMNSubtractor.h:30
TT6CMNSubtractor
Definition:
TT6CMNSubtractor.h:12
SiStripNoisesRcd
Definition:
SiStripCondDataRecords.h:40
SiStripQualityRcd
Definition:
SiStripDependentRecords.h:51
SiStripCommonModeNoiseSubtractor
Definition:
SiStripCommonModeNoiseSubtractor.h:9
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
TT6CMNSubtractor::cut_to_avoid_signal_
double cut_to_avoid_signal_
Definition:
TT6CMNSubtractor.h:28
TT6CMNSubtractor::subtract_
void subtract_(uint32_t detId, uint16_t firstAPV, std::vector< T > &digis)
Definition:
TT6CMNSubtractor.cc:24
edm::EventSetup
Definition:
EventSetup.h:58
edm::ESGetToken< SiStripNoises, SiStripNoisesRcd >
TT6CMNSubtractor::qualityWatcher_
edm::ESWatcher< SiStripQualityRcd > qualityWatcher_
Definition:
TT6CMNSubtractor.h:34
TT6CMNSubtractor::noiseWatcher_
edm::ESWatcher< SiStripNoisesRcd > noiseWatcher_
Definition:
TT6CMNSubtractor.h:33
ESWatcher.h
TT6CMNSubtractor::TT6CMNSubtractor
TT6CMNSubtractor(double in, edm::ConsumesCollector iC)
Definition:
TT6CMNSubtractor.h:24
SiStripQualityRcd.h
TT6CMNSubtractor::subtract
void subtract(uint32_t detId, uint16_t firstAPV, std::vector< int16_t > &digis) override
Definition:
TT6CMNSubtractor.cc:16
SiStripNoisesRcd.h
ConsumesCollector.h
TT6CMNSubtractor::noiseHandle
const SiStripNoises * noiseHandle
Definition:
TT6CMNSubtractor.h:31
DeDxTools::esConsumes
ESGetTokenH3DDVariant esConsumes(std::string const &Reccord, edm::ConsumesCollector &)
Definition:
DeDxTools.cc:283
edm::ConsumesCollector
Definition:
ConsumesCollector.h:45
SiStripQuality
Definition:
SiStripQuality.h:32
Generated for CMSSW Reference Manual by
1.8.16