LArSoft
v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
PhotonBackTrackerLoader_module.cc
Go to the documentation of this file.
1
#ifndef PhotonBackTrackerLoader_h
2
#define PhotonBackTrackerLoader_h
3
// Class: PhotonBackTrackerLoader
5
// Module Type: producer
6
// File: PhotonBackTrackerLoader.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/PhotonBackTrackerService.h
"
16
#include "
larsim/MCCheater/ParticleInventoryService.h
"
17
18
namespace
cheat
{
19
class
PhotonBackTrackerLoader;
20
}
21
22
class
cheat::PhotonBackTrackerLoader
:
public
art::EDProducer
{
23
public
:
24
explicit
PhotonBackTrackerLoader
(
fhicl::ParameterSet
const
& p);
25
virtual
~PhotonBackTrackerLoader
();
26
27
virtual
void
produce
(
art::Event
&
e
);
28
29
30
private
:
31
32
// Declare member data here.
33
34
};
35
36
//------------------------------------------------------------------------------
37
cheat::PhotonBackTrackerLoader::PhotonBackTrackerLoader
(
fhicl::ParameterSet
const
&
/*p*/
)
38
{
39
// Call appropriate Produces<>() functions here.
40
}
41
42
//------------------------------------------------------------------------------
43
cheat::PhotonBackTrackerLoader::~PhotonBackTrackerLoader
()
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
// PhotonBackTracker 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 PhotonBackTracker in either cheating reconstruction modules
53
// or analyzers
54
void
cheat::PhotonBackTrackerLoader::produce
(
art::Event
&
e
)
55
{
56
art::ServiceHandle<cheat::ParticleInventoryService>
pi_serv;
57
art::ServiceHandle<cheat::PhotonBackTrackerService>
pbt_serv;
58
pi_serv->
Rebuild
(e);
59
pbt_serv->
Rebuild
(e);
60
61
return
;
62
}
63
64
65
DEFINE_ART_MODULE
(
cheat::PhotonBackTrackerLoader
)
66
67
#endif
/* PhotonBackTrackerLoader_h */
art::ServiceHandle< cheat::ParticleInventoryService >
cheat::PhotonBackTrackerLoader::produce
virtual void produce(art::Event &e)
Definition:
PhotonBackTrackerLoader_module.cc:54
cheat::PhotonBackTrackerLoader::~PhotonBackTrackerLoader
virtual ~PhotonBackTrackerLoader()
Definition:
PhotonBackTrackerLoader_module.cc:43
cheat::PhotonBackTrackerLoader
Definition:
PhotonBackTrackerLoader_module.cc:22
cheat::PhotonBackTrackerLoader::PhotonBackTrackerLoader
PhotonBackTrackerLoader(fhicl::ParameterSet const &p)
Definition:
PhotonBackTrackerLoader_module.cc:37
ParticleInventoryService.h
PhotonBackTrackerService.h
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:42
cheat::PhotonBackTrackerService::Rebuild
void Rebuild(art::Event const &evt)
Definition:
PhotonBackTrackerService_service.cc:60
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
e
Float_t e
Definition:
plot.C:34
fhicl::ParameterSet
Definition:
ParameterSet.h:34
larsim
v06_53_00
source
larsim
MCCheater
PhotonBackTrackerLoader_module.cc
Generated on Thu Jul 26 2018 13:10:20 for LArSoft by
1.8.11