Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larsim
larsim
MCCheater
BackTrackerLoader_module.cc
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// Class: BackTrackerLoader
3
// Module Type: producer
4
// File: BackTrackerLoader.h
5
//
6
// Generated at Thu Jun 14 06:49:31 2012 by Brian Rebel using artmod
7
// from art v1_00_11.
8
////////////////////////////////////////////////////////////////////////
9
10
#include "
art/Framework/Core/EDProducer.h
"
11
#include "
art/Framework/Core/ModuleMacros.h
"
12
13
#include "
larsim/MCCheater/BackTrackerService.h
"
14
#include "
larsim/MCCheater/ParticleInventoryService.h
"
15
16
namespace
cheat
{
17
class
BackTrackerLoader;
18
}
19
20
class
cheat::BackTrackerLoader
:
public
art::EDProducer
{
21
public
:
22
explicit
BackTrackerLoader
(
fhicl::ParameterSet
const
&
p
);
23
24
virtual
void
produce
(
art::Event
&
e
);
25
26
private
:
27
// Declare member data here.
28
};
29
30
//------------------------------------------------------------------------------
31
cheat::BackTrackerLoader::BackTrackerLoader
(
fhicl::ParameterSet
const
&
p
) :
EDProducer
{p}
32
{
33
// Call appropriate Produces<>() functions here.
34
}
35
36
//------------------------------------------------------------------------------
37
// the sole purpose of this module is to issue the Rebuild command to the
38
// BackTracker service. It should be put after all simulation data producing
39
// modules have run in the job, and only in jobs that create the simulation and
40
// then make use of the BackTracker in either cheating reconstruction modules
41
// or analyzers
42
void
43
cheat::BackTrackerLoader::produce
(
art::Event
&
e
)
44
{
45
art::ServiceHandle<cheat::ParticleInventoryService>
pi_serv;
46
art::ServiceHandle<cheat::BackTrackerService>
bt_serv;
47
pi_serv->
Rebuild
(e);
48
bt_serv->
Rebuild
(e);
49
}
50
51
DEFINE_ART_MODULE
(
cheat::BackTrackerLoader
)
art::ServiceHandle< cheat::ParticleInventoryService >
art::EDProducer::EDProducer
EDProducer(fhicl::ParameterSet const &pset)
Definition:
EDProducer.h:20
cheat::BackTrackerLoader
Definition:
BackTrackerLoader_module.cc:20
BackTrackerService.h
cheat::BackTrackerLoader::produce
virtual void produce(art::Event &e)
Definition:
BackTrackerLoader_module.cc:43
ParticleInventoryService.h
e
const double e
Definition:
gUpMuFluxGen.cxx:165
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:67
cheat::BackTrackerService::Rebuild
void Rebuild(const art::Event &evt)
Definition:
BackTrackerService_service.cc:56
test.p
p
Definition:
test.py:223
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
art::Event
Definition:
Event.h:22
cheat
code to link reconstructed objects back to the MC truth information
Definition:
BackTracker.cc:22
cheat::ParticleInventoryService::Rebuild
void Rebuild(const art::Event &evt)
Definition:
ParticleInventoryService_service.cc:58
cheat::BackTrackerLoader::BackTrackerLoader
BackTrackerLoader(fhicl::ParameterSet const &p)
Definition:
BackTrackerLoader_module.cc:31
fhicl::ParameterSet
Definition:
ParameterSet.h:36
Generated by
1.8.11