MCalCoefficients Class Reference
[Modules]

Inheritance diagram for MCalCoefficients:

QModule QBaseModule List of all members.

Detailed Description

Module to calculate calibration coefficients.

Author:
L. Kogler
Computes calibration coefficients by fitting amplitude spectrum.


Public Member Functions

 MCalCoefficients (QSequence *s)
virtual void Init ()
 Init method is called before event loop.
virtual QEventDo (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


The documentation for this class was generated from the following files:
Generated on Fri Mar 6 13:40:41 2009 for CUORE Software by  doxygen 1.5.1