All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ChannelFilter.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // ChannelFilter class:
4 //
5 // This class has been obsoleted and is now a deprecated interface for
6 // ChannelStatusService.
7 //
8 // Please update your code to use the service directly.
9 //
10 //
11 // Original class: pagebri3@msu.edu
12 //
13 ////////////////////////////////////////////////////////////////////////
14 #ifndef CHANNELFILTER_H
15 #define CHANNELFILTER_H
16 
17 // LArSoft libraries
18 namespace lariov { class ChannelStatusProvider; }
19 
20 // C/C++ standard libraries
21 #include <set>
22 #include <stdint.h>
23 
24 namespace filter {
25 
26  class /* [[deprecated]] */ ChannelFilter {
27 
28  public:
29 
30  enum ChannelStatus { GOOD = 0,
31  NOISY = 1,
32  DEAD = 2,
34  };
35 
36  ChannelFilter();
37 
38  bool BadChannel(uint32_t channel) const;
39  bool NoisyChannel(uint32_t channel) const;
40  std::set<uint32_t> SetOfBadChannels() const;
41  std::set<uint32_t> SetOfNoisyChannels() const;
42  ChannelStatus GetChannelStatus(uint32_t channel) const;
43 
44  private:
45  lariov::ChannelStatusProvider const& provider; ///< object doing the job
46 
47  }; //class ChannelFilter
48 }
49 #endif // CHANNELFILTER_H
bool NoisyChannel(uint32_t channel) const
ChannelStatus GetChannelStatus(uint32_t channel) const
bool BadChannel(uint32_t channel) const
std::set< uint32_t > SetOfNoisyChannels() const
Class providing information about the quality of channels.
physics filters filter
lariov::ChannelStatusProvider const & provider
object doing the job
Definition: ChannelFilter.h:45
std::set< uint32_t > SetOfBadChannels() const