SAMMetadataTest_module.cc
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 // Class: SAMMetadataTest
3 // Module Type: analyzer
4 // File: SAMMetadataTest_module.cc
5 //
6 // Generated at Mon Feb 25 09:04:27 2013 by Christopher Green using artmod
7 // from art v1_03_05.
8 ////////////////////////////////////////////////////////////////////////
9 
18 #include "fhiclcpp/ParameterSet.h"
19 
20 #include <memory>
21 
22 namespace arttest {
23  class SAMMetadataTest;
24 }
25 
27 public:
28  explicit SAMMetadataTest(fhicl::ParameterSet const& p);
29 
30  void analyze(art::Event const& e) override;
31 
32  void beginJob() override;
33 
34 private:
35 };
36 
38  : art::EDAnalyzer(p)
39 {}
40 
41 void
43 {}
44 
45 void
47 {
49  metadata->addMetadataString("testMetadata", "success!");
50 }
51 
SAMMetadataTest(fhicl::ParameterSet const &p)
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition: EDAnalyzer.h:27
void addMetadataString(std::string const &key, std::string const &value)
const double e
#define DEFINE_ART_MODULE(klass)
Definition: ModuleMacros.h:68
void analyze(art::Event const &e) override
p
Definition: test.py:228