Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
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
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 "
canvas/Utilities/InputTag.h
"
17
#include "
cetlib/quiet_unit_test.hpp
"
18
#include "
fhiclcpp/ParameterSet.h
"
19
#include "
fhiclcpp/ParameterSetRegistry.h
"
20
#include "
messagefacility/MessageLogger/MessageLogger.h
"
21
22
namespace
arttest
{
23
class
EmptyPSetRegistryChecker;
24
}
25
26
class
arttest::EmptyPSetRegistryChecker
:
public
art::EDAnalyzer
{
27
public
:
28
explicit
EmptyPSetRegistryChecker
(
fhicl::ParameterSet
const
&
p
);
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.
33
EmptyPSetRegistryChecker
(
EmptyPSetRegistryChecker
const
&) =
delete
;
34
EmptyPSetRegistryChecker
(
EmptyPSetRegistryChecker
&&) =
delete
;
35
EmptyPSetRegistryChecker
&
operator=
(
EmptyPSetRegistryChecker
const
&) =
delete
;
36
EmptyPSetRegistryChecker
&
operator=
(
EmptyPSetRegistryChecker
&&) =
delete
;
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
49
arttest::EmptyPSetRegistryChecker::EmptyPSetRegistryChecker
(
50
fhicl::ParameterSet
const
&
p
)
51
:
EDAnalyzer
(p),
registrySize_
(0ull)
52
{}
53
54
void
55
arttest::EmptyPSetRegistryChecker::analyze
(
art::Event
const
&)
56
{}
57
58
void
59
arttest::EmptyPSetRegistryChecker::beginJob
()
60
{
61
registrySize_
=
fhicl::ParameterSetRegistry::size
();
62
}
63
64
void
65
arttest::EmptyPSetRegistryChecker::respondToOpenInputFile
(
art::FileBlock
const
&)
66
{
67
fhicl::ParameterSetRegistry::stageIn
();
// Load everything in from DB.
68
BOOST_REQUIRE_EQUAL(
fhicl::ParameterSetRegistry::size
(),
registrySize_
);
69
}
70
71
DEFINE_ART_MODULE
(
arttest::EmptyPSetRegistryChecker
)
fhicl::ParameterSetRegistry::size
static size_type size()
Definition:
ParameterSetRegistry.h:108
ParameterSetRegistry.h
Handle.h
arttest::EmptyPSetRegistryChecker::respondToOpenInputFile
void respondToOpenInputFile(art::FileBlock const &fb) override
Definition:
EmptyPSetRegistryChecker_module.cc:65
art::EDAnalyzer::EDAnalyzer
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition:
EDAnalyzer.h:27
MessageLogger.h
ParameterSet.h
arttest::EmptyPSetRegistryChecker::analyze
void analyze(art::Event const &e) override
Definition:
EmptyPSetRegistryChecker_module.cc:55
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
arttest::EmptyPSetRegistryChecker
Definition:
EmptyPSetRegistryChecker_module.cc:26
arttest
Definition:
GroupSelector_t.h:4
quiet_unit_test.hpp
fhicl::ParameterSetRegistry::stageIn
static void stageIn()
Definition:
ParameterSetRegistry.cc:182
SubRun.h
EDAnalyzer.h
arttest::EmptyPSetRegistryChecker::registrySize_
std::size_t registrySize_
Definition:
EmptyPSetRegistryChecker_module.cc:46
ModuleMacros.h
arttest::EmptyPSetRegistryChecker::EmptyPSetRegistryChecker
EmptyPSetRegistryChecker(fhicl::ParameterSet const &p)
Definition:
EmptyPSetRegistryChecker_module.cc:49
test.p
p
Definition:
test.py:228
art::Event
Definition:
Event.h:40
art::EDAnalyzer
Definition:
EDAnalyzer.h:22
arttest::EmptyPSetRegistryChecker::operator=
EmptyPSetRegistryChecker & operator=(EmptyPSetRegistryChecker const &)=delete
InputTag.h
art::FileBlock
Definition:
FileBlock.h:18
arttest::EmptyPSetRegistryChecker::beginJob
void beginJob() override
Definition:
EmptyPSetRegistryChecker_module.cc:59
Event.h
Run.h
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11