LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
SimpleChannelStatusService.h
Go to the documentation of this file.
1 
11 #ifndef SIMPLECHANNELFILTERSERVICE_H
12 #define SIMPLECHANNELFILTERSERVICE_H
13 
14 // LArSoft libraries
16 #include "larevt/CalibrationDBI/Interface/ChannelStatusService.h"
18 
19 // C/C++ standard libraries
20 #include <memory> //std::unique_ptr<>
21 
22 namespace art {
23  class Run;
24 } // namespace art
25 
26 namespace lariov {
27 
47  class SimpleChannelStatusService : public ChannelStatusService {
48  public:
51 
52  private:
53  ChannelStatusProvider const& DoGetProvider() const override { return *DoGetProviderPtr(); }
54  ChannelStatusProvider const* DoGetProviderPtr() const override { return fProvider.get(); }
55 
56  std::unique_ptr<SimpleChannelStatus> fProvider;
57 
58  }; // class SimpleChannelStatusService
59 
60 } // namespace lariov
61 
63  lariov::ChannelStatusService,
64  LEGACY)
65 
66 #endif // SIMPLECHANNELFILTERSERVICE_H
Service providing information about the quality of channels.
Channel quality provider with information from configuration file.
Filters for channels, events, etc.
ChannelStatusProvider const & DoGetProvider() const override
ChannelStatusProvider const * DoGetProviderPtr() const override
Definition: MVAAlg.h:12
std::unique_ptr< SimpleChannelStatus > fProvider
#define DECLARE_ART_SERVICE_INTERFACE_IMPL(svc, iface, scope)