Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larsim
larsim
LegacyLArG4
IonizationAndScintillationAction.cxx
Go to the documentation of this file.
1
////////////////////////////////////////////////////////////////////////
2
/// \file IonizationAndScintillationAction.cxx
3
/// \brief Use Geant4's user "hooks" to determine the number of ionization
4
/// electrons and scintillation photons for each step
5
///
6
/// \author brebel@fnal.gov
7
////////////////////////////////////////////////////////////////////////
8
9
#include "
larsim/LegacyLArG4/IonizationAndScintillationAction.h
"
10
#include "
larsim/LegacyLArG4/IonizationAndScintillation.h
"
11
12
namespace
larg4
{
13
14
//----------------------------------------------------------------------------
15
// Constructor.
16
IonizationAndScintillationAction::IonizationAndScintillationAction
()
17
{
18
}
19
20
//----------------------------------------------------------------------------
21
// Destructor.
22
IonizationAndScintillationAction::~IonizationAndScintillationAction
()
23
{
24
}
25
26
//----------------------------------------------------------------------------
27
// With every step, calculate the number of ionization electrons and
28
// scintillation photons using the IonizationAndScintillation singleton.
29
void
IonizationAndScintillationAction::SteppingAction
(
const
G4Step*
step
)
30
{
31
larg4::IonizationAndScintillation::Instance
()->
Reset
(step);
32
33
return
;
34
}
35
36
}
// namespace LArG4
larg4
Geant4 interface.
Definition:
CheckAuxDetHit_module.cc:25
larg4::IonizationAndScintillation::Reset
void Reset(const G4Step *step)
Definition:
IonizationAndScintillation.cxx:98
larg4::IonizationAndScintillation::Instance
static IonizationAndScintillation * Instance()
Definition:
IonizationAndScintillation.cxx:44
larg4::IonizationAndScintillationAction::SteppingAction
virtual void SteppingAction(const G4Step *)
Definition:
IonizationAndScintillationAction.cxx:29
larg4::IonizationAndScintillationAction::IonizationAndScintillationAction
IonizationAndScintillationAction()
Definition:
IonizationAndScintillationAction.cxx:16
larg4::IonizationAndScintillationAction::~IonizationAndScintillationAction
virtual ~IonizationAndScintillationAction()
Definition:
IonizationAndScintillationAction.cxx:22
MakeVectorFile.step
tuple step
Definition:
MakeVectorFile.py:61
IonizationAndScintillationAction.h
this UserAction derived class is to provide a hook during G4 stepping in which to call the code that ...
IonizationAndScintillation.h
Generated by
1.8.11