34 #include "SteppingAction.hh"
36 #include "HistoManager.hh"
92 if (target) targetName = target->
GetName();
93 nuclearChannel +=
" + " + targetName +
" --> ";
102 analysis->FillH1(ih,energy);
106 Pbalance += momentum;
108 nuclearChannel += partName +
" + ";
113 const std::vector<const G4Track*>* secondary
115 for (
size_t lp=0; lp<(*secondary).size(); lp++) {
116 particle = (*secondary)[lp]->GetDefinition();
119 G4double energy = (*secondary)[lp]->GetKineticEnergy();
128 else if (type ==
"nucleus") ih = 7;
129 else if (type ==
"meson") ih = 8;
130 else if (type ==
"baryon") ih = 9;
131 if (ih > 0) analysis->FillH1(ih,energy);
133 if (type ==
"nucleus") {
135 analysis->FillH1(12, A);
140 Pbalance += momentum;
151 analysis->FillH1(ih,Q);
153 analysis->FillH1(ih,Pbal);
157 const G4String conver[] = {
"0",
"",
"2 ",
"3 ",
"4 ",
"5 ",
"6 ",
"7 ",
"8 ",
"9 ",
158 "10 ",
"11 ",
"12 ",
"13 ",
"14 ",
"15 ",
"16 "};
159 std::map<G4ParticleDefinition*,G4int>::iterator ip;
161 particle = ip->first;
163 G4int nb = ip->second;
164 if (nb > kMax) nb =
kMax;
169 name =
"gamma or e-";
172 nuclearChannel += Nb +
name;
static G4RunManager * GetRunManager()
const G4String & GetName() const
G4StepPoint * GetPreStepPoint() const
AnalysisManager * analysis
const std::vector< const G4Track * > * GetSecondaryInCurrentStep() const
const G4String & GetParticleName() const
const G4String & GetParticleType() const
void SetTargetXXX(G4bool)
static G4Proton * Proton()
G4ParticleDefinition * GetDefinition() const
void ParticleCount(G4String, G4double)
static G4Deuteron * Deuteron()
G4StepStatus GetStepStatus() const
G4double GetStepLength() const
double A(double temperature)
G4Track * GetTrack() const
G4CsvAnalysisManager G4AnalysisManager
G4StepPoint * GetPostStepPoint() const
void UserSteppingAction(const G4Step *)
G4double GetKineticEnergy() const
static G4Electron * Electron()
G4Run * GetNonConstCurrentRun() const
void CountProcesses(G4String procName)
static G4Neutron * Neutron()
G4int GetAtomicMass() const
const G4Isotope * GetTargetIsotope()
std::map< G4ParticleDefinition *, G4int > fParticleFlag
virtual void AbortEvent()
G4ThreeVector GetMomentum() const
const G4VProcess * GetProcessDefinedStep() const
void CountNuclearChannel(G4String, G4double)
G4TrackStatus GetTrackStatus() const
void SumTrack(G4double track)