Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
srcs
larsim
larsim
MCCheater
PhotonBackTrackerLoader_module.cc
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
// 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.
8
////////////////////////////////////////////////////////////////////////
9
10
#include "art/Framework/Core/EDProducer.h"
11
#include "art/Framework/Core/ModuleMacros.h"
12
13
#include "
larsim/MCCheater/PhotonBackTrackerService.h
"
14
#include "
larsim/MCCheater/ParticleInventoryService.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
27
private
:
28
29
// Declare member data here.
30
31
};
32
33
//------------------------------------------------------------------------------
34
cheat::PhotonBackTrackerLoader::PhotonBackTrackerLoader
(fhicl::ParameterSet
const
&
p
)
35
: EDProducer{p}
36
{
37
// Call appropriate Produces<>() functions here.
38
}
39
40
//------------------------------------------------------------------------------
41
// the sole purpose of this module is to issue the Rebuild command to the
42
// PhotonBackTracker service. It should be put after all simulation data producing
43
// modules have run in the job, and only in jobs that create the simulation and
44
// then make use of the PhotonBackTracker in either cheating reconstruction modules
45
// or analyzers
46
void
cheat::PhotonBackTrackerLoader::produce
(art::Event &
e
)
47
{
48
art::ServiceHandle<cheat::ParticleInventoryService> pi_serv;
49
art::ServiceHandle<cheat::PhotonBackTrackerService> pbt_serv;
50
pi_serv->Rebuild(e);
51
pbt_serv->Rebuild(e);
52
}
53
54
55
DEFINE_ART_MODULE(
cheat::PhotonBackTrackerLoader
)
cheat::PhotonBackTrackerLoader::produce
virtual void produce(art::Event &e)
Definition:
PhotonBackTrackerLoader_module.cc:46
p
pdgs p
Definition:
selectors.fcl:22
cheat::PhotonBackTrackerLoader
Definition:
PhotonBackTrackerLoader_module.cc:20
cheat::PhotonBackTrackerLoader::PhotonBackTrackerLoader
PhotonBackTrackerLoader(fhicl::ParameterSet const &p)
Definition:
PhotonBackTrackerLoader_module.cc:34
ParticleInventoryService.h
PhotonBackTrackerService.h
e
do i e
Definition:
updateVersionList.sh:68
Generated by
1.8.5