list of energy deposits from Geant4
More...
#include <EnergyDepositAction.h>
list of energy deposits from Geant4
Definition at line 35 of file EnergyDepositAction.h.
gar::garg4::EnergyDepositAction::EnergyDepositAction |
( |
CLHEP::HepRandomEngine * |
engine, |
|
|
fhicl::ParameterSet const & |
pset |
|
) |
| |
gar::garg4::EnergyDepositAction::~EnergyDepositAction |
( |
| ) |
|
|
virtual |
void gar::garg4::EnergyDepositAction::AddEnergyDeposition |
( |
const G4Step * |
step | ) |
|
|
private |
Definition at line 147 of file EnergyDepositAction.cxx.
167 auto midPoint = 0.5 * (
step->GetPreStepPoint()->GetPosition() +
168 step->GetPostStepPoint()->GetPosition() );
169 float time =
step->GetPreStepPoint()->GetGlobalTime();
static constexpr double cm
static constexpr double MeV
static constexpr double GeV
std::vector< gar::sdp::EnergyDeposit > fDeposits
energy fDeposits
static int GetCurrentTrackID()
void gar::garg4::EnergyDepositAction::BeginOfEventAction |
( |
const G4Event * |
| ) |
|
void gar::garg4::EnergyDepositAction::EndOfEventAction |
( |
const G4Event * |
| ) |
|
Definition at line 57 of file EnergyDepositAction.h.
std::vector< gar::sdp::EnergyDeposit > fDeposits
energy fDeposits
std::string gar::garg4::EnergyDepositAction::GetVolumeName |
( |
const G4Track * |
track | ) |
|
void gar::garg4::EnergyDepositAction::PostTrackingAction |
( |
const G4Track * |
| ) |
|
void gar::garg4::EnergyDepositAction::PreTrackingAction |
( |
const G4Track * |
| ) |
|
Definition at line 53 of file EnergyDepositAction.cxx.
56 fVolumeName = pset.get< std::vector<std::string> >(
"GArVolumeName");
double fEnergyCut
be included in the list.
std::string fMaterialMatchString
Energy deposition will be recorded for materials that match this.
std::vector< std::string > fVolumeName
volume we will record energy depositions in
void gar::garg4::EnergyDepositAction::SteppingAction |
( |
const G4Step * |
step | ) |
|
Definition at line 85 of file EnergyDepositAction.cxx.
88 <<
"EnergyDepositAction::SteppingAction";
91 TGeoManager *geomanager = geo->ROOTGeoManager();
94 G4Track *track =
step->GetTrack();
96 const CLHEP::Hep3Vector &start =
step->GetPreStepPoint()->GetPosition();
97 const CLHEP::Hep3Vector &stop = track->GetPosition();
100 if(start == stop)
return;
101 if(
step->GetTotalEnergyDeposit() == 0)
return;
110 auto pos = 0.5 * (start + stop);
115 <<
"Node not found in " 122 std::string volmaterial = node->GetMedium()->GetMaterial()->GetName();
133 <<
" cm and deposited " 134 <<
step->GetTotalEnergyDeposit()
135 <<
" MeV of energy with a minimum of " static constexpr double cm
std::string GetVolumeName(const G4Track *track)
static constexpr double MeV
double fEnergyCut
be included in the list.
static constexpr double GeV
std::string fMaterialMatchString
Energy deposition will be recorded for materials that match this.
std::vector< std::string > fVolumeName
volume we will record energy depositions in
LArSoft geometry interface.
void AddEnergyDeposition(const G4Step *step)
double gar::garg4::EnergyDepositAction::fEnergyCut |
|
private |
be included in the list.
The minimum energy in GeV for a deposit to
Definition at line 63 of file EnergyDepositAction.h.
std::string gar::garg4::EnergyDepositAction::fMaterialMatchString |
|
private |
Energy deposition will be recorded for materials that match this.
Definition at line 66 of file EnergyDepositAction.h.
The documentation for this class was generated from the following files: