Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
Absorber
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
geant4-projects
Absorber
Commits
10950a5b
Commit
10950a5b
authored
May 04, 2020
by
MARCOS ANTONIO DE OLIVEIRA DEROS
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dat file
parent
bbf97a77
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
B1EventAction.cc
src/B1EventAction.cc
+2
-2
B1RunAction.cc
src/B1RunAction.cc
+2
-2
No files found.
src/B1EventAction.cc
View file @
10950a5b
...
...
@@ -109,9 +109,9 @@ if (CHCID < 0) {
G4double
particleEnergy
=
particleGun
->
GetParticleEnergy
();
std
::
ofstream
mu_p_pos
(
"position_mu_p.
csv
"
,
std
::
ios_base
::
app
);
std
::
ofstream
mu_p_pos
(
"position_mu_p.
dat
"
,
std
::
ios_base
::
app
);
std
::
ofstream
mu_m_pos
(
"position_mu_m.
csv
"
,
std
::
ios_base
::
app
);
std
::
ofstream
mu_m_pos
(
"position_mu_m.
dat
"
,
std
::
ios_base
::
app
);
for
(
int
i1
=
0
;
i1
<
n_hit
;
i1
++
)
{
B1Hits
*
hit
=
(
*
HitsCol
)[
i1
];
...
...
src/B1RunAction.cc
View file @
10950a5b
...
...
@@ -141,9 +141,9 @@ void B1RunAction::EndOfRunAction(const G4Run* run)
#define PI 3.14159265
G4double
angle
=
atan
(
y
/
z
)
*
180
/
PI
;
std
::
ofstream
mu_p_energy
(
"energy_mu_p"
+
std
::
to_string
(
particleEnergy
/
GeV
)
+
".
csv
"
,
std
::
ios_base
::
app
);
std
::
ofstream
mu_p_energy
(
"energy_mu_p"
+
std
::
to_string
(
particleEnergy
/
GeV
)
+
".
dat
"
,
std
::
ios_base
::
app
);
std
::
ofstream
mu_m_energy
(
"energy_mu_m"
+
std
::
to_string
(
particleEnergy
/
GeV
)
+
".
csv
"
,
std
::
ios_base
::
app
);
std
::
ofstream
mu_m_energy
(
"energy_mu_m"
+
std
::
to_string
(
particleEnergy
/
GeV
)
+
".
dat
"
,
std
::
ios_base
::
app
);
mu_p_energy
<<
mu_p_en
/
GeV
<<
" "
<<
angle
<<
"
\n
"
;
mu_m_energy
<<
mu_m_en
/
GeV
<<
" "
<<
angle
<<
"
\n
"
;
...
...
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