CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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>&, std::vector<int16_t>&);
19  void subtract(const uint32_t&, const uint16_t &, std::vector<int16_t>&);
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_(const uint32_t&,const uint16_t&, const input_t&, std::vector<int16_t>&);
31  const int16_t& eval(const int16_t& in) { return in;}
32  const uint16_t& eval(const SiStripRawDigi& in) { return in.adc();}
33 
34 };
35 #endif
const uint16_t & adc() const
void subtract(const edm::DetSet< SiStripRawDigi > &, std::vector< int16_t > &)
edm::ESHandle< SiStripPedestals > pedestalsHandle
void init(const edm::EventSetup &)
const uint16_t & eval(const SiStripRawDigi &in)
const int16_t & eval(const int16_t &in)
void subtract_(const uint32_t &, const uint16_t &, const input_t &, std::vector< int16_t > &)
A Digi for the silicon strip detector, containing only adc information, and suitable for storing raw ...