FixedChannelGroupService.h
Go to the documentation of this file.
1 // FixedChannelGroupService.h
2 
3 // David Adams
4 // November 2016
5 //
6 // APA channel groups with fixed mapping defined in FCL.
7 
8 #ifndef FixedChannelGroupService_H
9 #define FixedChannelGroupService_H
10 
13 
15 
16 public:
17 
18  // Ctor.
20 
21  // Ctor.
23 
24  // Dtor.
25  ~FixedChannelGroupService() =default;
26 
27  // Return the # groups.
28  Index size() const;
29 
30  // Return a group name.
31  Name name(Index igrp) const;
32 
33  // Return a group.
34  const ChannelVector& channels(Index igrp) const;
35 
36  // Print parameters.
37  std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const;
38 
39 private:
40 
41  typedef std::vector<Name> NameVector;
42  typedef std::vector<ChannelVector> ChannelVectorVector;
43 
44  //Index m_size; // unused
45  NameVector m_names;
46  ChannelVectorVector m_chanvecs;
47 
48 };
49 
51 
52 #endif
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< ChannelVector > ChannelVectorVector
std::ostream & print(std::ostream &out=std::cout, std::string prefix="") const
~FixedChannelGroupService()=default
const ChannelVector & channels(Index igrp) const
FixedChannelGroupService(fhicl::ParameterSet const &pset)
std::vector< Channel > ChannelVector