8 #ifndef _KVCALIBRATION_H_ 
    9 #define _KVCALIBRATION_H_ 
  106    void SetParameters(
double SigmaOfTSpectrum_ = 1., 
double SigmaOfGaussian_ = 1., 
double ThresholdOfTSpectrum_ = 0.5, 
double IsOriginAtZero_ = 
false);
 
  107    void AddPeak(
double Energy_, 
double Intensity_); 
 
  117    void FitAll(
bool debug_ = 
false);
 
Set up and run the calibration of siliciums.
 
void AddPeak(double Energy_, double Intensity_)
 
void SetHistRange(double xmin, double xmax)
 
double FunctionToFit(double *x, double *par)
 
double GetGaussianFitParError(int)
 
void FitSpectrum(bool debug_=false)
 
double InitializationFitResults[2]
Array that contain the results of the initialization fit.
 
~KVAlphaCalibration()
Default destructor.
 
std::vector< double > GaussianFitResults
Array that contains results of the final fit.
 
double SigmaOfTSpectrum
Width of the peaks that TSpectrum will search, chosen by user.
 
TF1 * GaussianFit
function that will fit the peaks
 
std::vector< double > IntensityOfPeak
array of peaks amlitude. Set by user
 
double GetGaussianFitParameter(int)
 
std::vector< double > InitializationPeak
 
TH1 * Histo
histogram that contains the data to fit. Set by user
 
void DrawResult(bool WhatToDraw=true)
 
double GetInitializationFitParameter(int)
 
TF1 * InitializationFit
function that will do the initial fit
 
std::vector< double > MeanOfPeak
array peaks energy. Set by user
 
double ThresholdOfTSpectrum
Lowest peak that the TSpectrum has to search for. It is the ratio of the highest peak that the TSpect...
 
void FitAll(bool debug_=false)
This function calls the FitInit and FitSpectrum function.
 
TSpectrum * spec
the method that will search for peaks
 
std::vector< double > GaussianFitResultsError
Array that contains the error of the results of the final fit.
 
void SetFunction(std::string FunctionName="x*[0]")
 
void SetParameters(double SigmaOfTSpectrum_=1., double SigmaOfGaussian_=1., double ThresholdOfTSpectrum_=0.5, double IsOriginAtZero_=false)
 
KVAlphaCalibration(int NumberOfPeak_)
 
int NumberOfPeak
Number of Peak present in the histogram. Chose by user.
 
double SigmaOfGaussian
Width of the peak that the model will fit chosen by user. It is possible that it has to be different ...
 
TGraph * factorGraph
Graph where the initial fit is done.
 
void SetHisto(TH1 *h)
Set the histogram that contains the data.
 
TGraph * FitInit(bool debug_=false)