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 
13 
15 
16  public:
17 
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:
23 
26  std::vector<int> pedestals;
27  uint32_t peds_cache_id;
28  bool fedmode_;
29 
30  template <class input_t> void subtract_(uint32_t detId, uint16_t firstAPV, const input_t& input, std::vector<int16_t>& output);
31  int16_t eval(int16_t in) { return in; }
32  uint16_t eval(SiStripRawDigi in) { return in.adc(); }
33 
34 };
35 #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:45
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 ...