AdcNoiseRemovalService.h
Go to the documentation of this file.
1 // AdcNoiseRemovalService.h
2 
3 #ifndef AdcNoiseRemovalService_H
4 #define AdcNoiseRemovalService_H
5 
6 // David Adams
7 // May 2016
8 //
9 // Interface for a service that removes noise from a collection of ADC
10 // channel samples. A map of samples are passed so that coherent noise
11 // may be evaluated and removed.
12 
13 #include <iostream>
15 
17 
18 public:
19 
20  virtual ~AdcNoiseRemovalService() = default;
21 
22  // Remove the noise for selected channels from datamap[chan].samples and store results
23  // in that same vector.
24  // Return 0 for success.
25  virtual int update(AdcChannelDataMap& datamap) const =0;
26 
27  // Print parameters.
28  virtual std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const =0;
29 
30 };
31 
32 #ifndef __CLING__
35 #endif
36 
37 #endif
std::string string
Definition: nybbler.cc:12
virtual ~AdcNoiseRemovalService()=default
virtual int update(AdcChannelDataMap &datamap) const =0
virtual std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const =0
std::map< AdcChannel, AdcChannelData > AdcChannelDataMap
#define DECLARE_ART_SERVICE_INTERFACE(svc, scope)