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 
6 
10 #include <vector>
11 
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:
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
const uint16_t & adc() const
edm::ESHandle< SiStripPedestals > pedestalsHandle
void subtract(const edm::DetSet< SiStripRawDigi > &input, std::vector< int16_t > &output)
static std::string const input
Definition: EdmProvDump.cc:48
void init(const edm::EventSetup &)
void subtract_(uint32_t detId, uint16_t firstAPV, const input_t &input, std::vector< int16_t > &output)
uint16_t eval(SiStripRawDigi in)
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...