ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
advanced
basic
extended
analysis
biasing
common
electromagnetic
TestEm0
TestEm1
TestEm10
TestEm11
TestEm12
TestEm13
TestEm14
TestEm15
TestEm16
TestEm17
TestEm18
TestEm2
TestEm3
geant3
g4mat
include
src
ffuser.F
grun.F
gukine.F
guout.F
gustep.F
gutrak.F
gutrev.F
main.F
ugeom.F
uginit.F
uglast.F
uhinit.F
include
src
plotHisto.C
TestEm3.cc
TestEm4
TestEm5
TestEm6
TestEm7
TestEm8
TestEm9
errorpropagation
eventgenerator
exoticphysics
field
g3tog4
geometry
hadronic
medical
optical
parallel
parameterisations
persistency
physicslists
polarisation
radioactivedecay
runAndEvent
visualization
source
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
guout.F
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file guout.F
1
2
SUBROUTINE
guout
3
*
4
* User routine called at the end of each event
5
*
6
#include "geant321/gcflag.inc"
7
#include "calor.inc"
8
#include "celoss.inc"
9
#include "histo.inc"
10
*
11
CHARACTER*4
unit
12
13
*
14
* histo: energy deposit per tracking medium
15
do
k
=1,nbabsor
16
if
(histo(
k
)) call hfill(
k
,edepabs(
k
)/histunit(
k
),0.,1.)
17
enddo
18
*
19
* cumul energy deposited, charged track length and energy leakage
20
do
k
=1,nbabsor
21
sumedep(
k
) = sumedep(
k
) + edepabs(
k
)
22
sumtrck(
k
) = sumtrck(
k
) + trckabs(
k
)
23
*
24
su2edep(
k
) = su2edep(
k
) + edepabs(
k
)**2
25
su2trck(
k
) = su2trck(
k
) + trckabs(
k
)**2
26
enddo
27
*
28
* *** print
29
IF
(iswit(1).NE.0)
THEN
30
do
k
=1,nbabsor
31
CALL gevkev(edepabs(
k
),eunit,
unit
)
32
print
751,
k
,eunit,
unit
,trckabs(
k
)
33
enddo
34
print
749
35
ENDIF
36
*
37
#ifndef batch
38
*
39
* *** drawing
40
*
41
IF
(iswit(1).NE.0)
THEN
42
CALL gdhead(110110,
'TestEm3'
,0.)
43
CALL gdshow(3)
44
CALL gdxyz(0)
45
END IF
46
#endif
47
749
FORMAT
(/)
48
751
FORMAT
(1
x
,
'Absorber'
,i2,
' : Energy deposit: '
,f8.3,a4,
49
&
' Track length: '
,f8.3,
' cm'
)
50
*
51
END
geant4
tree
geant4-10.6-release
examples
extended
electromagnetic
TestEm3
geant3
src
guout.F
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:03
using
1.8.2 with
ECCE GitHub integration