ROOT verifyData

From MariachiWiki

Jason Immerman wrote this script to give two methods of gaining visual feedback as to the accuracy of the counts and timestamp data.

The first function, verifyCoin(), requires inputs of a counts data file (or path) and a timestamp data file (or path) and returns a histogram of the disparity between the summation of the c4 and c5 columns for a given counts line and the number of timestamps during that period.

The second function, histStamps(), requires inputs of an interval (in seconds) and a timestamps data file (or path). The interval represents an interval for which the separation of two consecutive timestamp lines represents a time period for which the detector is not in operation. The suggested value for this interval is 7200 seconds. The function returns a histogram containing the time differences between consecutive timestamps fitted with an exponential curve. In addition, a computed average time difference (excluding those larger than the given interval) is printed out to the screen.