Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
event-processor
DoNothingInput_source.cc
Go to the documentation of this file.
1
// ------------------------------------------------------------
2
//
3
// The purpose of 'DoNothingInput' is to verify that when the
4
// destructor is called, the art::ServiceHandle can be constructed
5
// successfully and not throw. This tests the expected behavior of
6
// the art::EventProcessor constructor.
7
//
8
// ------------------------------------------------------------
9
10
#include "
art/Framework/Core/InputSourceMacros.h
"
11
#include "
art/Framework/IO/Sources/Source.h
"
12
#include "
art/Framework/Services/Registry/ServiceHandle.h
"
13
14
#include "
art/test/Integration/Wanted.h
"
15
16
#include <memory>
17
18
namespace
art
{
19
class
FileBlock;
20
class
ProductRegistryHelper;
21
class
SourceHelper;
22
}
// namespace art
23
24
namespace
fhicl
{
25
class
ParameterSet;
26
}
27
28
namespace
art
{
29
namespace
test
{
30
31
class
DoNothingInput
{
32
public
:
33
DoNothingInput
(
fhicl::ParameterSet
const
&,
34
ProductRegistryHelper
&,
35
SourceHelper
const
&)
36
{}
37
38
~DoNothingInput
() {
ServiceHandle<Wanted>
shouldNotThrow[[gnu::unused]]; }
39
40
void
41
readFile
(
std::string
const
&,
art::FileBlock
*&)
42
{}
43
44
void
45
closeCurrentFile
()
46
{}
47
48
bool
49
readNext
(
RunPrincipal
const
*
const
,
50
SubRunPrincipal
const
*
const
,
51
RunPrincipal
*&,
52
SubRunPrincipal
*&,
53
EventPrincipal
*&)
54
{
55
return
false
;
56
}
57
};
58
59
}
// namespace test
60
}
// namespace art
61
62
DEFINE_ART_INPUT_SOURCE
(
art::Source<art::test::DoNothingInput>
)
art::ServiceHandle
Definition:
ServiceHandle.h:37
art::RunPrincipal
Definition:
RunPrincipal.h:17
InputSourceMacros.h
string
std::string string
Definition:
nybbler.cc:12
art::test::DoNothingInput::DoNothingInput
DoNothingInput(fhicl::ParameterSet const &, ProductRegistryHelper &, SourceHelper const &)
Definition:
DoNothingInput_source.cc:33
test
Definition:
test.py:1
art::ProductRegistryHelper
Definition:
ProductRegistryHelper.h:79
art::test::DoNothingInput::closeCurrentFile
void closeCurrentFile()
Definition:
DoNothingInput_source.cc:45
art::test::DoNothingInput::readNext
bool readNext(RunPrincipal const *const, SubRunPrincipal const *const, RunPrincipal *&, SubRunPrincipal *&, EventPrincipal *&)
Definition:
DoNothingInput_source.cc:49
ServiceHandle.h
art::test::DoNothingInput
Definition:
DoNothingInput_source.cc:31
Source.h
Wanted.h
art::test::DoNothingInput::readFile
void readFile(std::string const &, art::FileBlock *&)
Definition:
DoNothingInput_source.cc:41
fhicl
parameter set interface
Definition:
prune_configuration.h:9
art::Source
Definition:
Source.h:113
art::SubRunPrincipal
Definition:
SubRunPrincipal.h:17
art::test::DoNothingInput::~DoNothingInput
~DoNothingInput()
Definition:
DoNothingInput_source.cc:38
art::EventPrincipal
Definition:
EventPrincipal.h:18
art
Definition:
BasicOptionsHandler.h:11
art::FileBlock
Definition:
FileBlock.h:18
art::SourceHelper
Definition:
SourceHelper.h:38
DEFINE_ART_INPUT_SOURCE
#define DEFINE_ART_INPUT_SOURCE(klass)
Definition:
InputSourceMacros.h:9
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11