gibuu is hosted by Hepforge, IPPP Durham
GiBUU

TABLE OF CONTENTS


/hist_multipleRuns_MC [ Modules ]

[ Top ] [ Modules ]

NAME

module hist_multipleRuns_MC

PURPOSE

  • Encapsulate routines and datas for 1D Histogramms, in which you want to store the results of several sequentiell runs.
  • Superior to hist_multipleRuns since it offers the possibility to have multiple columns in the histograms

Features of Histograms provided by this module:

  • store paramaters of the x-binning
  • enable multiple y-values
  • track keeping of under-/over-score the given extreme values of x.
  • provide simple-to-understand output routines (cf. WriteHist)
  • provide simple histogram arithmetic (not yet implemented)
  • many others...

Every Histogram prints his own multicolumn output. A multicolumn output of many different histograms for the same x-value is not implemented. This is done by the module "histMPf90".

INPUTS

...(This module needs no input)


hist_multipleRuns_MC/histogram_mr_mc [ Types ]

[ Top ] [ hist_multipleRuns_MC ] [ Types ]

NAME

type histogram_mr_mc

PURPOSE

Type definition to store all information for a multiple-run 1D Histogram.

SOURCE

  type histogram_mr_mc
     type(histogramMC)  :: total                          ! total result of all runs
     type(histogramMC)  :: thisRun                        ! result of the present run
     integer          :: numRuns                        ! number of runs
     real, dimension (:,:) , Allocatable :: sumOfSquares  ! Sum (Squares of the result of a single run)
  end type histogram_mr_mc

hist_multipleRuns_MC/CreateHist_mr_mc [ Subroutines ]

[ Top ] [ hist_multipleRuns_MC ] [ Subroutines ]

NAME

subroutine CreateHist_mr_mc(H, HName,x1,x2,bin,nCH)

PURPOSE

This is the Constructor of a 1D-Histogram! Allocate Memory for the entries and put additional variables to their default.

INPUTS

  • type(histogram_mr_mc) :: H -- Histogramm to be created
  • character*(*) :: HName -- Name of Histogram
  • real :: x1,x2,bin -- Minimal/maximal value for x-coordinate to be considered, bin-width
  • integer, intent(in) :: nCH -- number of channels

OUTPUT

H is changed


hist_multipleRuns_MC/RemoveHist_mr_mc [ Subroutines ]

[ Top ] [ hist_multipleRuns_MC ] [ Subroutines ]

NAME

subroutine RemoveHist_mr_mc(H)

PURPOSE

Free the allocated memory

INPUTS

OUTPUT

H is changed


hist_multipleRuns_MC/AddHist_mr_mc [ Subroutines ]

[ Top ] [ hist_multipleRuns_MC ] [ Subroutines ]

NAME

subroutine AddHist_mr_mc(H, x,nCH,y)

PURPOSE

Add to the given histogram at the given x-value the weight y (y2). If y2 is given, also the second column is filled.

INPUTS

  • type(histogram_mr_mc) :: H -- Histogramm to be used
  • real :: x -- x-value
  • real :: y -- weight to be added
  • integer, intent(in) :: nCH -- channel

OUTPUT

H is changed


hist_multipleRuns_MC/startRunHist_mr_mc [ Subroutines ]

[ Top ] [ hist_multipleRuns_MC ] [ Subroutines ]

NAME

subroutine startRunHist_mr_mc(H)

PURPOSE

Tells the histogram that all next data belong to a new run

INPUTS

OUTPUT

H is changed


hist_multipleRuns_MC/endRunHist_mr_mc [ Subroutines ]

[ Top ] [ hist_multipleRuns_MC ] [ Subroutines ]

NAME

subroutine endRunHist_mr_mc(H)

PURPOSE

Tells the histogram that the analysis of a run is finished

INPUTS

OUTPUT

H is changed


hist_multipleRuns_MC/WriteHist_mr_mc [ Subroutines ]

[ Top ] [ hist_multipleRuns_MC ] [ Subroutines ]

NAME

subroutine WriteHist_mr_mc(H,iFile,file)

PURPOSE

Write out the histogram including error analysis.

INPUTS

  • type(histogram_mr_mc),intent(in) :: H
  • integer, intent(in) :: iFile
  • character(*), intent(in),optional :: file

NOTES

The Histogram Data is not affected!!!