This study is done for the pedestals of the towers and mapmts, in which the following features of the pedestals:
The integration of the pedestal fit (the fits were provided by Jan) in the range ±3.5σ around the mean value of the fit. A good value for the integration is considered between 2000:3000 (these limits are chosen depending on the total # of events in the run you're studying. In this case, the total # of events is 3000.)
The mean of fit (position of the pedestal). A good value should fall between 2 and 55 channels for the towers and between 120 and 220 channels for mapmts.
Test on the pedestal's spectrum to see if the ratio of the events in the bin adjacent (on either side) to the the maximum one is more than %5. This test is done to detected the cases in which pedestal events are in even or odd bins,
A test to detected pedestals that have multiple peaks, in which the integration of the fitted peak (±3.5σ around the mean value of the fit) is compared to the integration of the whole spectrum range except ±3.5σ around the mean value of the fit. The ratio of the two integrations should be <5% to be considered a good pedestal.
A test on sigma of the fit.σ should be between 0.5 and 3 channels to be considered a good pedestal.
If any of the previous conditions is not fulfilled, a summary output is printed to a file shows the towers (or mapmts) that has the problem and the type of the problem.
Also, a gif and ps files are created of the distribution of the Integration, position, and sigma (σ) of each tower (or mapmts).