CHICOM: A code of tests for comparing unweighted and weighted histograms and two weighted histograms

Abstract A Fortran-77 program for calculating test statistics to compare weighted histogram with an unweighted histogram and two histograms with weighted entries is presented. The code calculates test statistics for cases of histograms with normalized weights of events and unnormalized weights of events. Program summary Program title: CHICOM Catalogue identifier: AEKE_v1_0 Program summary URL: http://cpc.cs.qub.ac.uk/summaries/AEKE_v1_0.html Program obtainable from: CPC Program Library, Queenʼs University, Belfast, N. Ireland Licensing provisions: Standard CPC license, http://cpc.cs.qub.ac.uk/licence/licence.html No. of lines in distributed program, including test data, etc.: 758 No. of bytes in distributed program, including test data, etc.: 4496 Distribution format: tar.gz Programming language: Fortran-77 Computer: Any Unix/Linux workstation or PC with a Fortran-77 compiler Operating system: Unix/Linux Classification: 4.13, 11.9, 16.4, 19.4 External routines: FPLSOR (M103) [1] and BRENT [2] (FPLSOR is included in the distribution file, BRENT must be obtained by the user) Nature of problem: The program calculates test statistics for comparing two weighted histograms and an unweighted histogram with a weighted one Solution method: Calculation of test statistics is done according to formulas presented in Ref. [3]. Running time: 0.001 s for 5 bins histogram References: [1] CERN Program Library, http://cernlib.web.cern.ch/cernlib/ . [2] W.H. Press, S.A. Teukolsky, W.T. Vetterling, B.P. Flannery, Numerical Recipes in Fortran 77 the Art of Scientific Computing, second edition, Cambridge University Press, 1997. [3] N.D. Gagunashvili, Nucl. Instr. Meth. A 614 (2010) 287–296.