Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
geant4-projects
cosmic-rays
Commits
8a25087f
Commit
8a25087f
authored
Jul 17, 2019
by
MARCOS ANTONIO DE OLIVEIRA DEROS
Browse files
root graphs being developed
parent
340c629a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/B1SteppingAction.cc
View file @
8a25087f
...
...
@@ -79,7 +79,7 @@ void B1SteppingAction::UserSteppingAction(const G4Step* step)
//ATENÇÃO - Comments dentro dos else-if -> para histograma de particlas x z (BUG no Z=0 e resultado duvidoso -- MELHORAR)
G4AnalysisManager
*
analysisManager
=
G4AnalysisManager
::
Instance
();
G4AnalysisManager
*
analysisManager
=
G4AnalysisManager
::
Instance
();
//collect particle for each step
G4String
particle
=
step
->
GetTrack
()
->
GetDynamicParticle
()
->
GetDefinition
()
->
GetParticleName
();
G4double
z
=
step
->
GetPreStepPoint
()
->
GetPosition
().
z
()
/
meter
;
...
...
@@ -112,7 +112,6 @@ G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
}
//Retire esse comment para histograma que leva em conta o numero de vezes que a particula foi identificado no evento. -> Por enquanto o mais confiável.
/*
G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
analysisManager->FillNtupleDColumn(0, p);
analysisManager->FillNtupleDColumn(1, e_p);
analysisManager->FillNtupleDColumn(2, e_minus);
...
...
@@ -124,7 +123,7 @@ G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
analysisManager->FillNtupleDColumn(8, z);
/**/
analysisManager
->
AddNtupleRow
();
analysisManager
->
AddNtupleRow
();
// collect energy deposited in this step
G4double
edepStep
=
step
->
GetTotalEnergyDeposit
();
fEventAction
->
AddEdep
(
edepStep
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment