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
340c629a
Commit
340c629a
authored
Jul 17, 2019
by
MARCOS ANTONIO DE OLIVEIRA DEROS
Browse files
set initial energy to 1 TeV
parent
452c787e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/B1PrimaryGeneratorAction.cc
View file @
340c629a
...
...
@@ -56,7 +56,7 @@ B1PrimaryGeneratorAction::B1PrimaryGeneratorAction()
=
particleTable
->
FindParticle
(
particleName
=
"proton"
);
fParticleGun
->
SetParticleDefinition
(
particle
);
fParticleGun
->
SetParticleMomentumDirection
(
G4ThreeVector
(
0.
,
0.
,
1.
));
fParticleGun
->
SetParticleEnergy
(
6
.
*
M
eV
);
fParticleGun
->
SetParticleEnergy
(
1
.
*
T
eV
);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
...
...
@@ -79,7 +79,7 @@ void B1PrimaryGeneratorAction::GeneratePrimaries(G4Event* anEvent)
fParticleGun
->
SetParticlePosition
(
G4ThreeVector
(
0
,
0
,
-
9
1.
*
m
));
fParticleGun
->
SetParticlePosition
(
G4ThreeVector
(
0
,
0
,
-
10
1.
*
m
));
fParticleGun
->
GeneratePrimaryVertex
(
anEvent
);
}
...
...
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