Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simc-file-input
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jlab
hallc
simulation
simc-file-input
Commits
8cd70159
Commit
8cd70159
authored
6 years ago
by
Sylvester Joosten
Browse files
Options
Downloads
Patches
Plain Diff
bugfix
parent
fbeab2a6
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
simc/get_file_event.f
+3
-5
3 additions, 5 deletions
simc/get_file_event.f
with
3 additions
and
5 deletions
simc/get_file_event.f
+
3
−
5
View file @
8cd70159
subroutine
get_file_event
(
e_arm
,
th_spec_e
,
th_spec_p
,
subroutine
get_file_event
(
e_arm
,
th_spec_e
,
th_spec_p
,
>
dxdz
,
dydz
,
e_mom
,
e_E
,
dxdzp
,
dydzp
,
p_mom
,
>
dxdz
,
dydz
,
e_mom
,
e_E
,
dxdzp
,
dydzp
,
p_mom
,
p_E
,
>
targ_z
,
targ_zoffset
,
weight
)
>
targ_z
,
targ_zoffset
,
weight
)
c
c
c
input
variables
:
c
input
variables
:
...
@@ -94,8 +94,6 @@ c --> the HMS is at negative angles, and the SHMS at positive angles
...
@@ -94,8 +94,6 @@ c --> the HMS is at negative angles, and the SHMS at positive angles
endif
endif
cc
SIMC
only
knows
of
a
single
vertex
position
,
so
even
though
we
read
cc
SIMC
only
knows
of
a
single
vertex
position
,
so
even
though
we
read
cc
two
values
,
we
only
use
a
single
one
(
they
should
match
anyway
in
cc
two
values
,
we
only
use
a
single
one
(
they
should
match
anyway
in
cc
most
cases
)
targ_z
=
HMS_vz
*
1.
if
(
e_vz
*
p_vz
.gt.
0
)
then
if
(
e_vz
*
p_vz
.gt.
0
)
then
targ_z
=
e_vz
+
targ_zoffset
targ_z
=
e_vz
+
targ_zoffset
endif
endif
...
@@ -120,10 +118,10 @@ cc Rotatation about the x-axis --> only y, and z change
...
@@ -120,10 +118,10 @@ cc Rotatation about the x-axis --> only y, and z change
write
(
*
,
*
)
' '
write
(
*
,
*
)
' '
write
(
*
,
*
)
' SPEC:'
write
(
*
,
*
)
' SPEC:'
write
(
*
,
*
)
' e: '
,
th_spec_e
/
pi
*
180
write
(
*
,
*
)
' e: '
,
th_spec_e
/
pi
*
180
write
(
*
,
*
)
' p: '
,
th_spec_p
/
pi
*
180
write
(
*
,
*
)
'
p: '
,
th_spec_p
/
pi
*
180
write
(
*
,
*
)
' ROTATED: '
write
(
*
,
*
)
' ROTATED: '
write
(
*
,
*
)
' e: '
,
e_4vr
(
1
),
e_4vr
(
2
),
e_4vr
(
3
),
e_4vr
(
4
)
write
(
*
,
*
)
' e: '
,
e_4vr
(
1
),
e_4vr
(
2
),
e_4vr
(
3
),
e_4vr
(
4
)
write
(
*
,
*
)
' p: '
,
p_4vr
(
1
),
p_4vr
(
2
),
p_4vr
(
3
),
p_4vr
(
4
)
write
(
*
,
*
)
'
p: '
,
p_4vr
(
1
),
p_4vr
(
2
),
p_4vr
(
3
),
p_4vr
(
4
)
endif
!debug
endif
!debug
c
Calculate
dxdz
and
dydz
c
Calculate
dxdz
and
dydz
e_mom
=
sqrt
(
e_4vr
(
1
)
**
2
+
e_4vr
(
2
)
**
2
+
e_4vr
(
3
)
**
2
)
e_mom
=
sqrt
(
e_4vr
(
1
)
**
2
+
e_4vr
(
2
)
**
2
+
e_4vr
(
3
)
**
2
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment