LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
BackTrackerLoader_module.cc
Go to the documentation of this file.
1
#ifndef BackTrackerLoader_h
2
#define BackTrackerLoader_h
3
// Class: BackTrackerLoader
5
// Module Type: producer
6
// File: BackTrackerLoader.h
7
//
8
// Generated at Thu Jun 14 06:49:31 2012 by Brian Rebel using artmod
9
// from art v1_00_11.
11
12
#include "
art/Framework/Core/EDProducer.h
"
13
#include "
art/Framework/Core/ModuleMacros.h
"
14
15
#include "
larsim/MCCheater/BackTrackerService.h
"
16
#include "
larsim/MCCheater/ParticleInventoryService.h
"
17
18
namespace
cheat
{
19
class
BackTrackerLoader;
20
}
21
22
class
cheat::BackTrackerLoader
:
public
art::EDProducer
{
23
public
:
24
explicit
BackTrackerLoader
(
fhicl::ParameterSet
const
& p);
25
virtual
~BackTrackerLoader
();
26
27
virtual
void
produce
(
art::Event
&
e
);
28
29
30
private
:
31
32
// Declare member data here.
33
34
};
35
36
//------------------------------------------------------------------------------
37
cheat::BackTrackerLoader::BackTrackerLoader
(
fhicl::ParameterSet
const
&
/*p*/
)
38
{
39
// Call appropriate Produces<>() functions here.
40
}
41
42
//------------------------------------------------------------------------------
43
cheat::BackTrackerLoader::~BackTrackerLoader
()
44
{
45
// Clean up dynamic memory and other resources here.
46
}
47
48
//------------------------------------------------------------------------------
49
// the sole purpose of this module is to issue the Rebuild command to the
50
// BackTracker service. It should be put after all simulation data producing
51
// modules have run in the job, and only in jobs that create the simulation and
52
// then make use of the BackTracker in either cheating reconstruction modules
53
// or analyzers
54
void
cheat::BackTrackerLoader::produce
(
art::Event
&
e
)
55
{
56
art::ServiceHandle<cheat::ParticleInventoryService>
pi_serv;
57
art::ServiceHandle<cheat::BackTrackerService>
bt_serv;
58
pi_serv->
Rebuild
(e);
59
bt_serv->
Rebuild
(e);
60
61
return
;
62
}
63
64
65
DEFINE_ART_MODULE
(
cheat::BackTrackerLoader
)
66
67
#endif
/* BackTrackerLoader_h */
art::ServiceHandle< cheat::ParticleInventoryService >
cheat::BackTrackerLoader::~BackTrackerLoader
virtual ~BackTrackerLoader()
Definition:
BackTrackerLoader_module.cc:43
cheat::BackTrackerLoader
Definition:
BackTrackerLoader_module.cc:22
BackTrackerService.h
cheat::BackTrackerLoader::produce
virtual void produce(art::Event &e)
Definition:
BackTrackerLoader_module.cc:54
ParticleInventoryService.h
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:42
cheat::BackTrackerService::Rebuild
void Rebuild(const art::Event &evt)
Definition:
BackTrackerService_service.cc:58
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:28
EDProducer.h
art::Event
Definition:
Event.h:42
cheat
code to link reconstructed objects back to the MC truth information
Definition:
BackTracker.cc:26
cheat::ParticleInventoryService::Rebuild
void Rebuild(const art::Event &evt)
Definition:
ParticleInventoryService_service.cc:64
cheat::BackTrackerLoader::BackTrackerLoader
BackTrackerLoader(fhicl::ParameterSet const &p)
Definition:
BackTrackerLoader_module.cc:37
e
Float_t e
Definition:
plot.C:34
fhicl::ParameterSet
Definition:
ParameterSet.h:34
larsim
v07_09_00
source
larsim
MCCheater
BackTrackerLoader_module.cc
Generated on Wed Dec 12 2018 14:43:04 for LArSoft by
1.8.11