issue19191_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: issue19191
3 // Plugin Type: analyzer (art v2_11_03)
4 // File: issue19191_module.cc
5 //
6 // Generated at Thu Dec 6 12:02:48 2018 by Saba Sehrish using cetskelgen
7 // from cetlib version v3_03_01.
8 ////////////////////////////////////////////////////////////////////////
9 
17 #include "fhiclcpp/ParameterSet.h"
19 
21 
22 
24 
25 #include <cassert>
26 #include <iostream>
27 
28 class issue19191;
29 
30 
31 class issue19191 : public art::EDAnalyzer {
32 public:
33  explicit issue19191(fhicl::ParameterSet const & p);
34  // The compiler-generated destructor is fine for non-base
35  // classes without bare pointers or other resource use.
36 
37  // Plugins should not be copied or assigned.
38  issue19191(issue19191 const &) = delete;
39  issue19191(issue19191 &&) = delete;
40  issue19191 & operator = (issue19191 const &) = delete;
41  issue19191 & operator = (issue19191 &&) = delete;
42 
43  // Required functions.
44  void analyze(art::Event const & e) override;
45 
46 private:
47 
48  // Declare member data here.
49 
50 };
51 
52 
54  :
55  EDAnalyzer(p) // ,
56  // More initializers here.
57 {}
58 
60 {
62  auto const *gcore = geom.get();
63  std::vector<raw::ChannelID_t> channels;
64  channels.reserve(gcore->Nchannels());
65  channels = gcore->ChannelsInTPCs();
66  assert(std::is_sorted(channels.begin(), channels.end()));
67  assert(std::unique(channels.begin(), channels.end())==channels.end());
68  assert(std::adjacent_find(channels.begin(), channels.end())==channels.end());
69  assert(channels.size() == gcore->Nchannels());
70 }
71 
T * get() const
Definition: ServiceHandle.h:63
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:25
art framework interface to geometry description
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:67
p
Definition: test.py:223
issue19191 & operator=(issue19191 const &)=delete
void analyze(art::Event const &e) override
issue19191(fhicl::ParameterSet const &p)