EmptyPSetRegistryChecker_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: EmptyPSetRegistryChecker
3 // Plugin Type: analyzer (art v1_16_02)
4 // File: EmptyPSetRegistryChecker_module.cc
5 //
6 // Generated at Tue Oct 13 14:57:00 2015 by Christopher Green using cetskelgen
7 // from cetlib version v1_15_01.
8 ////////////////////////////////////////////////////////////////////////
9 
18 #include "fhiclcpp/ParameterSet.h"
21 
22 namespace arttest {
23  class EmptyPSetRegistryChecker;
24 }
25 
27 public:
29  // The compiler-generated destructor is fine for non-base
30  // classes without bare pointers or other resource use.
31 
32  // Plugins should not be copied or assigned.
37 
38  // Required functions.
39  void analyze(art::Event const& e) override;
40 
41  // Selected optional functions.
42  void beginJob() override;
43  void respondToOpenInputFile(art::FileBlock const& fb) override;
44 
45 private:
46  std::size_t registrySize_;
47 };
48 
50  fhicl::ParameterSet const& p)
51  : EDAnalyzer(p), registrySize_(0ull)
52 {}
53 
54 void
56 {}
57 
58 void
60 {
62 }
63 
64 void
66 {
67  fhicl::ParameterSetRegistry::stageIn(); // Load everything in from DB.
68  BOOST_REQUIRE_EQUAL(fhicl::ParameterSetRegistry::size(), registrySize_);
69 }
70 
void respondToOpenInputFile(art::FileBlock const &fb) override
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:27
void analyze(art::Event const &e) override
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
EmptyPSetRegistryChecker(fhicl::ParameterSet const &p)
p
Definition: test.py:228
EmptyPSetRegistryChecker & operator=(EmptyPSetRegistryChecker const &)=delete