Hi, again.
I added a Driver to LCSim which may be of some interest for performing ECAL calibrations of pedestal and noise values by run.
trunk/ecal-recon/src/main/java/org/hps/recon/ecal/EcalCalibrationsDriver.java
It can be run using the steering file here:
trunk/steering-files/src/main/resources/org/hps/steering/calibration/EcalCalibrations.lcsim
The Driver makes ADC value distributions in 1D histograms by crystal. (These are similar to the ones in the ROOT file I sent out earlier today.)
Then it fits these histograms with a Gaussian and assigns the fitted mean to the pedestal value and the sigma to noise.
Finally, it creates EcalCalibration objects and (optionally) inserts them into the conditions database for the input file(s)' run numbers.
Can you take a look at this code and let me know what you think?
In order for this to be more useful, should it do some filtering of the hits to remove crystals above a certain threshold, e.g. for crystals that actually had a MIP signal?
I think you had also mentioned dispensing entirely with the fitting and using the mean and sigma from the histogram instead. If that makes more sense here,
I can make the fitting optional or remove it entirely.
Thanks.
--Jeremy
########################################################################
Use REPLY-ALL to reply to list
To unsubscribe from the HPS-SOFTWARE list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=HPS-SOFTWARE&A=1
|