Analysis Software
Documentation for sPHENIX simulation software
 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