Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
pyfact.f
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file pyfact.f
1
2
C*********************************************************************
3
4
C...PYFACT
5
C...Multiplies histogram contents by factor.
6
7
SUBROUTINE
pyfact
(ID,F)
8
9
C...Double precision declaration.
10
IMPLICIT
DOUBLE PRECISION
(a-
h
, o-
z
)
11
IMPLICIT
INTEGER
(
i
-
n
)
12
C...Commonblock.
13
common/
pybins
/ihist(4),indx(1000),
bin
(20000)
14
SAVE
/
pybins
/
15
16
C...Find initial address in memory. Multiply all contents bins.
17
IF
(
id
.LE.0.OR.
id
.GT.ihist(1)) CALL
pyerrm
(28,
18
&
'(PYFACT:) not allowed histogram number'
)
19
is=indx(
id
)
20
IF
(is.EQ.0) CALL
pyerrm
(28,
21
&
'(PYFACT:) scaling unbooked histogram'
)
22
DO
100 ix=is+6,is+8+nint(
bin
(is+1))
23
bin
(ix)=
f
*
bin
(ix)
24
100
CONTINUE
25
26
RETURN
27
END
pythia6
blob
master
pythiaeRHIC
pythia
pyfact.f
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:41
using
1.8.2 with
sPHENIX GitHub integration