CMS 3D CMS Logo

PercentileCMNSubtractor.h
Go to the documentation of this file.
1 #ifndef RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPPERCENTILECOMMONMODENOISESUBTRACTION_H
2 #define RECOLOCALTRACKER_SISTRIPZEROSUPPRESSION_SISTRIPPERCENTILECOMMONMODENOISESUBTRACTION_H
4 
6 
8 
9  public:
10 
11  void subtract(uint32_t detId, uint16_t firstAPV, std::vector<int16_t>& digis) override;
12  void subtract(uint32_t detId, uint16_t firstAPV, std::vector<float>& digis) override;
13 
14  private:
15 
16  template<typename T> float percentile(std::vector<T>&, double);
17  template<typename T> void subtract_(uint32_t detId, uint16_t firstAPV, std::vector<T>& digis);
19  percentile_(in) {};
20  double percentile_;
21 
22 };
23 #endif
float percentile(std::vector< T > &, double)
void subtract(uint32_t detId, uint16_t firstAPV, std::vector< int16_t > &digis) override
void subtract_(uint32_t detId, uint16_t firstAPV, std::vector< T > &digis)