Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
art
art
test
Integration
TestTimeTrackerAnalyzer_module.cc
Go to the documentation of this file.
1
//--------------------------------------------------------------------
2
//
3
// Empty module just to test timeTracker stuff
4
//
5
//--------------------------------------------------------------------
6
7
#include "
art/Framework/Core/EDAnalyzer.h
"
8
#include "
art/Framework/Core/ModuleMacros.h
"
9
#include "
art/Framework/Principal/Event.h
"
10
#include "
fhiclcpp/ParameterSet.h
"
11
12
#include <thread>
13
14
namespace
arttest
{
15
16
class
TestTimeTrackerAnalyzer
:
public
art::EDAnalyzer
{
17
public
:
18
explicit
TestTimeTrackerAnalyzer
(
fhicl::ParameterSet
const
& pset)
19
:
art
::
EDAnalyzer
(pset)
20
{}
21
22
void
23
analyze
(
art::Event
const
&)
override
24
{
25
using namespace
std::literals;
26
std::this_thread::sleep_for(10
ms
*
scheduleID
().
id
());
27
}
28
};
// TestTimeTrackerAnalyzer
29
30
}
// namespace arttest
31
32
DEFINE_ART_MODULE
(
arttest::TestTimeTrackerAnalyzer
)
arttest::TestTimeTrackerAnalyzer::analyze
void analyze(art::Event const &) override
Definition:
TestTimeTrackerAnalyzer_module.cc:23
art::EDAnalyzer::EDAnalyzer
EDAnalyzer(fhicl::ParameterSet const &pset)
Definition:
EDAnalyzer.h:27
arttest::TestTimeTrackerAnalyzer
Definition:
TestTimeTrackerAnalyzer_module.cc:16
ParameterSet.h
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:68
art::detail::LegacyModule::scheduleID
ScheduleID scheduleID() const noexcept
Definition:
LegacyModule.cc:12
arttest
Definition:
GroupSelector_t.h:4
EDAnalyzer.h
ModuleMacros.h
art::Event
Definition:
Event.h:40
genie::units::ms
static const double ms
Definition:
Units.h:100
art::EDAnalyzer
Definition:
EDAnalyzer.h:22
art
Definition:
BasicOptionsHandler.h:11
Event.h
arttest::TestTimeTrackerAnalyzer::TestTimeTrackerAnalyzer
TestTimeTrackerAnalyzer(fhicl::ParameterSet const &pset)
Definition:
TestTimeTrackerAnalyzer_module.cc:18
fhicl::ParameterSet
Definition:
ParameterSet.h:34
Generated by
1.8.11