Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyhist.f
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file pyhist.f
1 
2 C*********************************************************************
3 
4 C...PYHIST
5 C...Prints and resets all histograms.
6 
7  SUBROUTINE pyhist
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...Loop over histograms, print and reset used ones.
17  DO 100 id=1,ihist(1)
18  is=indx(id)
19  IF(is.NE.0.AND.nint(bin(is+5)).GT.0) THEN
20  CALL pyplot(id)
21  CALL pynull(id)
22  ENDIF
23  100 CONTINUE
24 
25  RETURN
26  END