GeoRopChannelGroupService.h
Go to the documentation of this file.
1 // GeoRopChannelGroupService.h
2 
3 // David Adams
4 // October 2016
5 //
6 // ROP channel groups extracted from larsoft geometry.
7 
8 #ifndef GeoRopChannelGroupService_H
9 #define GeoRopChannelGroupService_H
10 
14 
16 
17 public:
18 
19  // Ctor.
21 
22  // Ctor.
24 
25  // Dtor.
26  ~GeoRopChannelGroupService() =default;
27 
28  // Return the # groups.
29  Index size() const;
30 
31  // Return a group name.
32  Name name(Index igrp) const;
33 
34  // Return a group.
35  const ChannelVector& channels(Index igrp) const;
36 
37  // Print parameters.
38  std::ostream& print(std::ostream& out =std::cout, std::string prefix ="") const;
39 
40 private:
41 
42  typedef std::vector<Name> NameVector;
43  typedef std::vector<ChannelVector> ChannelVectorVector;
44 
46 
48  NameVector m_names;
49  ChannelVectorVector m_chanvecs;
50 
51 };
52 
54 
55 #endif
art::ServiceHandle< geo::Geometry > m_pgeo
const ChannelVector & channels(Index igrp) const
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
art framework interface to geometry description
~GeoRopChannelGroupService()=default
GeoRopChannelGroupService(fhicl::ParameterSet const &pset)
std::vector< Channel > ChannelVector