RecoLocalTracker
SiStripZeroSuppression
interface
SiStripPedestalsSubtractor.h
Go to the documentation of this file.
1
#ifndef RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPPEDESTALSSUBTRACTOR_H
2
#define RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPPEDESTALSSUBTRACTOR_H
3
4
#include "
FWCore/Framework/interface/ESHandle.h
"
5
#include "
FWCore/Framework/interface/EventSetup.h
"
6
7
#include "
DataFormats/Common/interface/DetSetVector.h
"
8
#include "
DataFormats/SiStripDigi/interface/SiStripRawDigi.h
"
9
#include "
CondFormats/SiStripObjects/interface/SiStripPedestals.h
"
10
#include <vector>
11
12
class
SiStripPedestalsSubtractor
{
13
friend
class
SiStripRawProcessingFactory
;
14
15
public
:
16
void
subtract
(
const
edm::DetSet<SiStripRawDigi>
&
input
, std::vector<int16_t>&
output
);
17
void
subtract
(uint32_t detId, uint16_t firstAPV, std::vector<int16_t>& adcs);
18
void
init
(
const
edm::EventSetup
&);
19
20
private
:
21
SiStripPedestalsSubtractor
(
bool
mode
) :
peds_cache_id
(0),
fedmode_
(
mode
){};
22
edm::ESHandle<SiStripPedestals>
pedestalsHandle
;
23
std::vector<int>
pedestals
;
24
uint32_t
peds_cache_id
;
25
bool
fedmode_
;
26
27
template
<
class
input_t>
28
void
subtract_
(uint32_t detId, uint16_t firstAPV,
const
input_t&
input
, std::vector<int16_t>&
output
);
29
int16_t
eval
(int16_t
in
) {
return
in
; }
30
uint16_t
eval
(
SiStripRawDigi
in
) {
return
in
.adc(); }
31
};
32
#endif
SiStripPedestalsSubtractor::SiStripPedestalsSubtractor
SiStripPedestalsSubtractor(bool mode)
Definition:
SiStripPedestalsSubtractor.h:21
SiStripPedestalsSubtractor::peds_cache_id
uint32_t peds_cache_id
Definition:
SiStripPedestalsSubtractor.h:24
input
static const std::string input
Definition:
EdmProvDump.cc:48
ESHandle.h
edm::DetSet
Definition:
DetSet.h:23
convertSQLitetoXML_cfg.output
output
Definition:
convertSQLitetoXML_cfg.py:32
SiStripRawProcessingFactory
Definition:
SiStripRawProcessingFactory.h:14
SiStripPedestalsSubtractor::pedestals
std::vector< int > pedestals
Definition:
SiStripPedestalsSubtractor.h:23
SiStripRawDigi.h
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition:
ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
SiStripPedestalsSubtractor::fedmode_
bool fedmode_
Definition:
SiStripPedestalsSubtractor.h:25
SiStripPedestalsSubtractor
Definition:
SiStripPedestalsSubtractor.h:12
SiStripPedestalsSubtractor::pedestalsHandle
edm::ESHandle< SiStripPedestals > pedestalsHandle
Definition:
SiStripPedestalsSubtractor.h:21
SiStripRawDigi
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...
Definition:
SiStripRawDigi.h:15
edm::ESHandle< SiStripPedestals >
SiStripPedestalsSubtractor::subtract_
void subtract_(uint32_t detId, uint16_t firstAPV, const input_t &input, std::vector< int16_t > &output)
Definition:
SiStripPedestalsSubtractor.cc:22
recoMuon::in
Definition:
RecoMuonEnumerators.h:6
edm::EventSetup
Definition:
EventSetup.h:57
DetSetVector.h
SiStripPedestalsSubtractor::subtract
void subtract(const edm::DetSet< SiStripRawDigi > &input, std::vector< int16_t > &output)
Definition:
SiStripPedestalsSubtractor.cc:17
SiStripPedestalsSubtractor::eval
int16_t eval(int16_t in)
Definition:
SiStripPedestalsSubtractor.h:29
SiStripPedestals.h
EventSetup.h
SiStripPedestalsSubtractor::eval
uint16_t eval(SiStripRawDigi in)
Definition:
SiStripPedestalsSubtractor.h:30
SiStripPedestalsSubtractor::init
void init(const edm::EventSetup &)
Definition:
SiStripPedestalsSubtractor.cc:6
Generated for CMSSW Reference Manual by
1.8.16