LArSoft
v09_90_00
Liquid Argon Software toolkit - https://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
// Class: PhotonBackTrackerLoader
3
// Module Type: producer
4
// File: PhotonBackTrackerLoader.h
5
//
6
// Generated at Thu Jun 14 06:49:31 2012 by Brian Rebel using artmod
7
// from art v1_00_11.
9
10
#include "
art/Framework/Core/EDProducer.h
"
11
#include "
art/Framework/Core/ModuleMacros.h
"
12
13
#include "
larsim/MCCheater/ParticleInventoryService.h
"
14
#include "
larsim/MCCheater/PhotonBackTrackerService.h
"
15
16
namespace
cheat
{
17
class
PhotonBackTrackerLoader;
18
}
19
20
class
cheat::PhotonBackTrackerLoader
:
public
art::EDProducer
{
21
public
:
22
explicit
PhotonBackTrackerLoader
(
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::PhotonBackTrackerLoader::PhotonBackTrackerLoader
(
fhicl::ParameterSet
const
& p)
32
:
EDProducer
{p}
33
{
34
// Call appropriate Produces<>() functions here.
35
}
36
37
//------------------------------------------------------------------------------
38
// the sole purpose of this module is to issue the Rebuild command to the
39
// PhotonBackTracker service. It should be put after all simulation data producing
40
// modules have run in the job, and only in jobs that create the simulation and
41
// then make use of the PhotonBackTracker in either cheating reconstruction modules
42
// or analyzers
43
void
cheat::PhotonBackTrackerLoader::produce
(
art::Event
&
e
)
44
{
45
art::ServiceHandle<cheat::ParticleInventoryService>
pi_serv;
46
art::ServiceHandle<cheat::PhotonBackTrackerService>
pbt_serv;
47
pi_serv->
Rebuild
(e);
48
pbt_serv->
Rebuild
(e);
49
}
50
51
DEFINE_ART_MODULE
(
cheat::PhotonBackTrackerLoader
)
art::ServiceHandle< cheat::ParticleInventoryService >
cheat::PhotonBackTrackerLoader::produce
virtual void produce(art::Event &e)
Definition:
PhotonBackTrackerLoader_module.cc:43
art::EDProducer::EDProducer
EDProducer(fhicl::ParameterSet const &pset)
Definition:
EDProducer.cc:6
cheat::PhotonBackTrackerLoader
Definition:
PhotonBackTrackerLoader_module.cc:20
cheat::PhotonBackTrackerLoader::PhotonBackTrackerLoader
PhotonBackTrackerLoader(fhicl::ParameterSet const &p)
Definition:
PhotonBackTrackerLoader_module.cc:31
ParticleInventoryService.h
PhotonBackTrackerService.h
DEFINE_ART_MODULE
#define DEFINE_ART_MODULE(klass)
Definition:
ModuleMacros.h:65
cheat::PhotonBackTrackerService::Rebuild
void Rebuild(art::Event const &evt)
Definition:
PhotonBackTrackerService.cc:57
ModuleMacros.h
art::EDProducer
Definition:
EDProducer.h:15
EDProducer.h
art::Event
Definition:
Event.h:26
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.cc:58
e
Float_t e
Definition:
plot.C:35
fhicl::ParameterSet
Definition:
ParameterSet.h:36
larsim
v09_43_00
source
larsim
MCCheater
PhotonBackTrackerLoader_module.cc
Generated on Thu May 2 2024 20:59:51 for LArSoft by
1.8.11