#include <ScoringPlane.h>
- Todo:
- TODO NEEDS DOCUMENTATION
Definition at line 23 of file ScoringPlane.h.
◆ ScoringPlane()
G4UA::ScoringPlane::ScoringPlane |
( |
const Config & |
config | ) |
|
◆ ~ScoringPlane()
G4UA::ScoringPlane::~ScoringPlane |
( |
| ) |
|
◆ BeginOfEventAction()
void G4UA::ScoringPlane::BeginOfEventAction |
( |
const G4Event * |
| ) |
|
|
overridevirtual |
◆ BeginOfRunAction()
void G4UA::ScoringPlane::BeginOfRunAction |
( |
const G4Run * |
| ) |
|
|
overridevirtual |
Definition at line 34 of file ScoringPlane.cxx.
37 m_tree0 = std::make_unique<TTree>(
"t0",
"ATHENA event tree");
42 m_tree1 = std::make_unique<TTree>(
"t1",
"ATHENA particle tree");
72 G4cout<<
"ScoringPlane: placing scoring plane at [mm]: " <<
m_config.
plane << G4endl;
73 G4cout<<
"ScoringPlane: stop and kill particles: " <<
m_config.
pkill << G4endl;
74 G4cout<<
"ScoringPlane: output root filename: " <<
m_config.
fname << G4endl;
◆ EndOfEventAction()
void G4UA::ScoringPlane::EndOfEventAction |
( |
const G4Event * |
| ) |
|
|
overridevirtual |
◆ EndOfRunAction()
void G4UA::ScoringPlane::EndOfRunAction |
( |
const G4Run * |
| ) |
|
|
overridevirtual |
◆ UserSteppingAction()
void G4UA::ScoringPlane::UserSteppingAction |
( |
const G4Step * |
aStep | ) |
|
|
overridevirtual |
Definition at line 86 of file ScoringPlane.cxx.
88 m_z0 = aStep->GetPreStepPoint()->GetPosition().z();
89 m_z1 = aStep->GetPostStepPoint()->GetPosition().z();
98 m_pdg = aStep->GetTrack()->GetDefinition()->GetPDGEncoding();
99 m_cha = aStep->GetTrack()->GetDefinition()->GetPDGCharge();
100 m_ene = aStep->GetTrack()->GetTotalEnergy();
101 m_vx = aStep->GetTrack()->GetVertexPosition().x();
102 m_vy = aStep->GetTrack()->GetVertexPosition().y();
103 m_vz = aStep->GetTrack()->GetVertexPosition().z();
105 m_x0 = aStep->GetPreStepPoint()->GetPosition().x();
106 m_y0 = aStep->GetPreStepPoint()->GetPosition().y();
108 m_px0 = aStep->GetPreStepPoint()->GetMomentum().x();
109 m_py0 = aStep->GetPreStepPoint()->GetMomentum().y();
110 m_pz0 = aStep->GetPreStepPoint()->GetMomentum().z();
112 m_x1 = aStep->GetPostStepPoint()->GetPosition().x();
113 m_y1 = aStep->GetPostStepPoint()->GetPosition().y();
115 m_px1 = aStep->GetPostStepPoint()->GetMomentum().x();
116 m_py1 = aStep->GetPostStepPoint()->GetMomentum().y();
117 m_pz1 = aStep->GetPostStepPoint()->GetMomentum().z();
125 if (
m_config.
pkill == 1) aStep->GetTrack()->SetTrackStatus(fStopAndKill);
126 else if (
m_config.
pkill == 2) aStep->GetTrack()->SetTrackStatus(fKillTrackAndSecondaries);
◆ m_cha
double G4UA::ScoringPlane::m_cha |
|
private |
◆ m_config
Config G4UA::ScoringPlane::m_config |
|
private |
◆ m_ene
double G4UA::ScoringPlane::m_ene |
|
private |
◆ m_evt
int G4UA::ScoringPlane::m_evt |
|
private |
◆ m_ntr
int G4UA::ScoringPlane::m_ntr |
|
private |
◆ m_pdg
int G4UA::ScoringPlane::m_pdg |
|
private |
◆ m_px0
double G4UA::ScoringPlane::m_px0 |
|
private |
◆ m_px1
double G4UA::ScoringPlane::m_px1 |
|
private |
◆ m_py0
double G4UA::ScoringPlane::m_py0 |
|
private |
◆ m_py1
double G4UA::ScoringPlane::m_py1 |
|
private |
◆ m_pz0
double G4UA::ScoringPlane::m_pz0 |
|
private |
◆ m_pz1
double G4UA::ScoringPlane::m_pz1 |
|
private |
◆ m_t0
double G4UA::ScoringPlane::m_t0 |
|
private |
◆ m_t1
double G4UA::ScoringPlane::m_t1 |
|
private |
◆ m_tree0
std::unique_ptr<TTree> G4UA::ScoringPlane::m_tree0 |
|
private |
◆ m_tree1
std::unique_ptr<TTree> G4UA::ScoringPlane::m_tree1 |
|
private |
◆ m_vx
double G4UA::ScoringPlane::m_vx |
|
private |
◆ m_vy
double G4UA::ScoringPlane::m_vy |
|
private |
◆ m_vz
double G4UA::ScoringPlane::m_vz |
|
private |
◆ m_x
double G4UA::ScoringPlane::m_x |
|
private |
◆ m_x0
double G4UA::ScoringPlane::m_x0 |
|
private |
◆ m_x1
double G4UA::ScoringPlane::m_x1 |
|
private |
◆ m_y
double G4UA::ScoringPlane::m_y |
|
private |
◆ m_y0
double G4UA::ScoringPlane::m_y0 |
|
private |
◆ m_y1
double G4UA::ScoringPlane::m_y1 |
|
private |
◆ m_z
double G4UA::ScoringPlane::m_z |
|
private |
◆ m_z0
double G4UA::ScoringPlane::m_z0 |
|
private |
◆ m_z1
double G4UA::ScoringPlane::m_z1 |
|
private |
The documentation for this class was generated from the following files: