AdcDistortionService.h
Go to the documentation of this file.
1 // AdcDistortionService.h
2 
3 // David Adams
4 // December 2015
5 //
6 // Interface for a service that distorts the counts in an ADC vector.
7 
8 #ifndef AdcDistortionService_H
9 #define AdcDistortionService_H
10 
11 #include <vector>
12 #include <iostream>
14 
16 
17 public:
18 
19  typedef unsigned int Channel;
20 
21  virtual ~AdcDistortionService() =default;
22 
23  // Modify an input ADC vector.
24  virtual int modify(Channel chan, AdcCountVector& adcvec) const =0;
25 
26  // Print parameters.
27  virtual std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const =0;
28 
29 };
30 
31 #ifndef __CLING__
34 #endif
35 
36 #endif
37 
std::vector< AdcCount > AdcCountVector
Definition: AdcTypes.h:19
virtual int modify(Channel chan, AdcCountVector &adcvec) const =0
std::string string
Definition: nybbler.cc:12
virtual std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const =0
virtual ~AdcDistortionService()=default
#define DECLARE_ART_SERVICE_INTERFACE(svc, scope)