Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
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
10
#include "
art/Framework/Core/EDAnalyzer.h
"
11
#include "
art/Framework/Core/ModuleMacros.h
"
12
#include "
art/Framework/Principal/Event.h
"
13
#include "
art/Framework/Principal/Handle.h
"
14
#include "
art/Framework/Principal/Run.h
"
15
#include "
art/Framework/Principal/SubRun.h
"
16
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
17
#include "
art/Framework/Services/System/FileCatalogMetadata.h
"
18
#include "
fhiclcpp/ParameterSet.h
"
19
20
#include <memory>
21
22
namespace
arttest
{
23
class
SAMMetadataTest;
24
}
25
26
class
arttest::SAMMetadataTest
:
public
art::EDAnalyzer
{
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
37
arttest::SAMMetadataTest::SAMMetadataTest
(
fhicl::ParameterSet
const
&
p
)
38
:
art
::
EDAnalyzer
(p)
39
{}
40
41
void
42
arttest::SAMMetadataTest::analyze
(
art::Event
const
&)
43
{}
44
45
void
46
arttest::SAMMetadataTest::beginJob
()
47
{
48
art::ServiceHandle<art::FileCatalogMetadata>
metadata;
49
metadata->
addMetadataString
(
"testMetadata"
,
"success!"
);
50
}
51
52
DEFINE_ART_MODULE
(
arttest::SAMMetadataTest
)
art::ServiceHandle
Definition:
ServiceHandle.h:37
Handle.h
arttest::SAMMetadataTest::SAMMetadataTest
SAMMetadataTest(fhicl::ParameterSet const &p)
Definition:
SAMMetadataTest_module.cc:37
arttest::SAMMetadataTest::beginJob
void beginJob() override
Definition:
SAMMetadataTest_module.cc:46
art::EDAnalyzer::EDAnalyzer
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition:
EDAnalyzer.h:27
arttest::SAMMetadataTest
Definition:
SAMMetadataTest_module.cc:26
art::FileCatalogMetadata::addMetadataString
void addMetadataString(std::string const &key, std::string const &value)
Definition:
FileCatalogMetadata_service.cc:88
ParameterSet.h
ServiceHandle.h
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
arttest::SAMMetadataTest::analyze
void analyze(art::Event const &e) override
Definition:
SAMMetadataTest_module.cc:42
arttest
Definition:
GroupSelector_t.h:4
SubRun.h
EDAnalyzer.h
ModuleMacros.h
test.p
p
Definition:
test.py:228
art::Event
Definition:
Event.h:40
FileCatalogMetadata.h
art::EDAnalyzer
Definition:
EDAnalyzer.h:22
art
Definition:
BasicOptionsHandler.h:11
Event.h
Run.h
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11