FixedZeroSuppressService.h
Go to the documentation of this file.
1 // FixedZeroSuppressService.h
2 //
3 // David Adams
4 // November 2015
5 //
6 // Service wrapper for fixed zero suppression.
7 // For now all bins are accepted.
8 // Later we may add an array for each channel.
9 // No parameters (yet).
10 
11 #ifndef FixedZeroSuppressService_H
12 #define FixedZeroSuppressService_H
13 
15 
16 #include <memory>
17 #include <string>
18 #include <iostream>
19 
20 namespace fhicl {
21 class ParameterSet;
22 }
23 namespace art {
24 class ActivityRegistry;
25 }
26 
28 
29 public:
30 
31  // Ctor from fcl.
33 
34  // Ctor from direct params.
36 
37  // Filter an array of signals. Result is written to keep.
38  int filter(const AdcCountVector& sigs, Channel chan, AdcPedestal ped, AdcFilterVector& keep) const;
39 
40  // Print the configuration.
41  std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const;
42 
43 private:
44 
45  // Parameters.
46 
47 };
48 
50 
51 #endif
std::vector< AdcCount > AdcCountVector
Definition: AdcTypes.h:19
std::string string
Definition: nybbler.cc:12
DECLARE_ART_SERVICE_INTERFACE_IMPL(MySharedService, art::test::MyServiceInterface, SHARED) DEFINE_ART_SERVICE_INTERFACE_IMPL(MySharedService
std::vector< bool > AdcFilterVector
Definition: AdcTypes.h:27
float AdcPedestal
Definition: AdcTypes.h:25