CMS 3D CMS Logo

SiStripPedestalsSubtractor.h
Go to the documentation of this file.
1 #ifndef RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPPEDESTALSSUBTRACTOR_H
2 #define RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPPEDESTALSSUBTRACTOR_H
3 
7 
12 #include <vector>
13 
16 
17 public:
18  void subtract(const edm::DetSet<SiStripRawDigi>& input, std::vector<int16_t>& output);
19  void subtract(uint32_t detId, uint16_t firstAPV, std::vector<int16_t>& adcs);
20  void init(const edm::EventSetup&);
21 
22 private:
28  std::vector<int> pedestals;
29  bool fedmode_;
30 
31  template <class input_t>
32  void subtract_(uint32_t detId, uint16_t firstAPV, const input_t& input, std::vector<int16_t>& output);
33  int16_t eval(int16_t in) { return in; }
34  uint16_t eval(SiStripRawDigi in) { return in.adc(); }
35 };
36 #endif
ESGetTokenH3DDVariant esConsumes(std::string const &Record, edm::ConsumesCollector &)
Definition: DeDxTools.cc:283
void subtract(const edm::DetSet< SiStripRawDigi > &input, std::vector< int16_t > &output)
const SiStripPedestals * pedestalsHandle
static std::string const input
Definition: EdmProvDump.cc:50
ap_fixed< 16, 8 > input_t
edm::ESGetToken< SiStripPedestals, SiStripPedestalsRcd > pedestalsToken_
void init(const edm::EventSetup &)
edm::ESWatcher< SiStripPedestalsRcd > pedestalsWatcher_
void subtract_(uint32_t detId, uint16_t firstAPV, const input_t &input, std::vector< int16_t > &output)
SiStripPedestalsSubtractor(bool mode, edm::ConsumesCollector iC)
uint16_t eval(SiStripRawDigi in)
Definition: output.py:1
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...