Inheritance diagram for MCalCoefficients:

Computes calibration coefficients by fitting amplitude spectrum.
module CalCoefficients verbosity = info enable = true Souce = Th Function = [0]+[1]*x StoreTemporaryData = tempdata.root OutputFilename = calibration.txt SeedFilename = oldcalibration.txt
Public Member Functions | |
| MCalCoefficients (QSequence *s) | |
| virtual void | Init () |
| Init method is called before event loop. | |
| virtual QEvent * | Do (QEvent *ev) |
| Doit method is called for each event, getting the event as argument. | |
| virtual void | Done () |
| Done method is called after event loop. | |
Private Member Functions | |
| void | InitCalPeaks (std::string source) |
| Initializes the set of peaks to be used for calibration. | |
| bool | AutoSeed (int channel, double resolution=-1, int iter=0, double binscale=1) |
| Tries to find primary peaks in spectrum from scratch. | |
| double | NearestNeighbor (double energy) |
| Finds peak nearest to energy given. | |
Private Attributes | |
|
std::map< int, std::vector< double > > | fAmplitudes |
| Map holding a vector of stabilized amplitudes for each channel. | |
| std::map< int, double > | fMaxAmplitude |
| Map maximum amplitude for each channel (based on heater energies). | |
| double | fMaxEnergy |
| Maximum and minimum of energy range containing calibration peaks. | |
| double | fMinEnergy |
| std::set< int > | fRuns |
| List of runs in calibration set. | |
| std::vector< QCalPeak * > | fCalPeaks1 |
| Vector holding primary calibration peaks. | |
| std::vector< QCalPeak * > | fCalPeaks2 |
| Vector holding secondary calibration peaks. | |
| TF1 * | fCalFunction |
| Calibration function. | |
| double * | fCalFunctionInit |
| Array of inital values for calibration function fit. | |
| std::string | fTempFilename |
| Name of file to store temporary data. | |
| std::map< double, double > | fChisquares |
| Stores chisquare values from AutoSeed function for diagnostic purposes. | |
| std::map< double, double > | fReducedChisquares |
1.5.1