PedestalAdditionService.h
Go to the documentation of this file.
1 // PedestalAdditionService.h
2 
3 // David Adams
4 // December 2015
5 //
6 // Interface for a service that add pedestals to an array
7 // ADC signals.
8 
9 #ifndef PedestalAdditionService_H
10 #define PedestalAdditionService_H
11 
12 #include <string>
13 #include <iostream>
14 #include <vector>
16 
17 namespace sim {
18 class SimChannel;
19 }
20 
22 
23 public:
24 
25  typedef unsigned int Channel;
26 
27  // Dtor.
28  virtual ~PedestalAdditionService() =default;
29 
30  // Add pedestal to each tick in sigs.
31  // The pedestal and its RMS are returned in ped and pedrms.
32  virtual int addPedestal(Channel chan, AdcSignalVector& sigs, float& ped, float& pedrms) const =0;
33 
34  // Print parameters.
35  virtual std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const =0;
36 
37 };
38 
39 #ifndef __CLING__
42 #endif
43 
44 #endif
45 
Energy deposited on a readout channel by simulated tracks.
Definition: SimChannel.h:140
std::string string
Definition: nybbler.cc:12
Code to link reconstructed objects back to the MC truth information.
std::vector< AdcSignal > AdcSignalVector
Definition: AdcTypes.h:22
#define DECLARE_ART_SERVICE_INTERFACE(svc, scope)