Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frank Gaede
SimpleCalo
Commits
86f0c55d
Commit
86f0c55d
authored
Oct 20, 2021
by
Frank Gaede
Browse files
fix end of event printout
parent
922c715f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SimpleCaloEventAction.cc
View file @
86f0c55d
//
//
/
// ********************************************************************
// * License and Disclaimer *
// * *
...
...
@@ -144,13 +144,13 @@ void SimpleCaloEventAction::EndOfEventAction(const G4Event *evt)
G4ThreeVector
radial
=
vtx
.
cross
(
l
);
}
}
G4cout
<<
" energy deposited
by
la
t
er: "
<<
G4endl
;
G4cout
<<
" energy deposited
per
la
y
er
[GeV]
: "
<<
G4endl
;
G4double
max
=
0
;
G4int
index
=
0
;
//Find layer with maximum energy
for
(
int
i
=
0
;
i
<
100
;
i
++
)
{
G4cout
<<
" "
<<
i
<<
" "
<<
energyinlayer
[
i
]
<<
G4endl
;
G4cout
<<
" "
<<
i
<<
" "
<<
energyinlayer
[
i
]
/
GeV
<<
G4endl
;
if
(
max
<
energyinlayer
[
i
])
{
...
...
@@ -158,7 +158,7 @@ void SimpleCaloEventAction::EndOfEventAction(const G4Event *evt)
index
=
i
;
}
}
G4cout
<<
" max energy in layer "
<<
index
<<
" : "
<<
max
<<
G4endl
;
G4cout
<<
" max energy in layer
[GeV]
"
<<
index
<<
" : "
<<
max
/
GeV
<<
G4endl
;
}
...
...
Write
Preview
Supports
Markdown
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