1 #ifndef RAWAMPWATCHER_H
2 #define RAWAMPWATCHER_H
39 virtual void Exec(
const char *option);
41 virtual void ShowSpectra(
int LibraryNumber=1,
const char *DrawOpt=
"");
42 virtual void ShowHist(
int HistNumber,
int LibraryNumber = 1,
bool same =
false);
44 void FitAllRoot(
const char *FitType =
"Dino",
const char *source =
"60Co");
46 void FitSelectedRoot(
const char *FitType =
"Dino",
const char *source =
"60Co",
bool all=
false);
51 void SearchPeak(
int NPeaks=2,
double width=50,
double threshold=0.1,
double xmin=0.,
double xmax=30000.);
64 void SetPersoBackground(
int NumberIterations = 100,
int Direction = TSpectrum::kBackDecreasingWindow,
int FilterOrder = TSpectrum::kBackOrder8,
bool Smoothing =
true,
int smoothingWindow = TSpectrum::kBackSmoothing3,
bool Compton =
false);
73 void HandleMovement(Int_t eventType, Int_t eventX, Int_t eventY, TObject *select);
98 void SpecificFit(
int NbrOfSpectra=38,
int FirstHist=0,
int Step=1);
114 void SetSource(
const char * SourcesNames);
173 void GetPlotParams(
const char *varexp =
"FW05:spec",
const char *selection=
"",
const char* option=
"");
GWRecal * fGWRecal
Recal Part.
void FitSelectedRecal(bool PrintHeader=true)
B) FitSelected.
void SetVerbosityLevel(int Verb=0)
A) SetVerbosityLevel.
void UseFirstDerivativeSearch()
void SetRefPeak(double EPeak)
void AddPeak(double EPeak)
void NoBackGround()
c) NoBackGround
virtual void WriteCalibFiles(const char *ConfDirectory="")
******************************************************************************************/// ...
void SetVerbosityLevel(int Verb)
virtual void Exec(const char *option)
******************************************************************************************/// ...
void SetGain(float Gain)
f) UseFlatBackGround
void SetFirstLibGain(double gain)
void SetSelectedHistChannelLimits(int ChFrom=50, int ChTo=32768)
******************************************************************************************/// ...
int InitTree()
******************************************************************************************/// ...
void UseParabolicCalib()
e) UseFlatBackGround
FitFunctions * fFitFunction
void SetGlobalChannelLimits(int ChFrom=50, int ChTo=32768)
b) SetChannelLimits
void UseFirstDerivativeSearch()
c) UseFirstDerivativeSearch
void SetSelectedHistPeaksLimits(float FWHM=15, float Ampli=5)
******************************************************************************************/// ...
void AddPeak(double EPeak)
b) AddPeak
void FitSelectedRoot(const char *FitType="Dino", const char *source="60Co", bool all=false)
******************************************************************************************/// ...
void SearchPeak(int NPeaks=2, double width=50, double threshold=0.1, double xmin=0., double xmax=30000.)
******************************************************************************************/// ...
void UseOffset(bool offset=false)
void RemoveClosestPeakTo(double EPeak)
c) RemoveClosestPeakTo
void PrintPlotHelp()
******************************************************************************************/// ...
void UnsetLeftTail()
E) FitOptions.
virtual void ShowSpectra(int LibraryNumber=1, const char *DrawOpt="")
******************************************************************************************/// ...
void SetPersoBackground(int NumberIterations=100, int Direction=TSpectrum::kBackDecreasingWindow, int FilterOrder=TSpectrum::kBackOrder8, bool Smoothing=true, int smoothingWindow=TSpectrum::kBackSmoothing3, bool Compton=false)
******************************************************************************************/// ...
void RemoveClosestPeakTo(double EPeak)
void UseSecondDerivativeSearch()
void SetChannelOffset(int Off)
void UseFlatBackGround()
D) BackGround.
void SetFileName(TString FileName)
void StartCalib()
******************************************************************************************/// ...
void SetGlobalPeaksLimits(float DefFWHM=15, float DefAmpli=5)
C) PeakSearch.
void GetPlotParams(const char *varexp="FW05:spec", const char *selection="", const char *option="")
******************************************************************************************/// ...
void PrintResForXTalk(int VerboseMod)
bool fDefinePersoBackground
void PrintResForXTalk(int VerboseMod=0)
3) VerboseOptions
void SetRefPeak(double EPeak)
d) SetRefPeak
void SetSource(const char *SourcesNames)
B) TheoreticalPeaks.
void HandleMovement(Int_t eventType, Int_t eventX, Int_t eventY, TObject *select)
******************************************************************************************/// ...
Int_t fLasteventType
HandleMovement part.
void FitAllRoot(const char *FitType="Dino", const char *source="60Co")
******************************************************************************************/// ...
void UnsetRightTail()
b) UseFlatBackGround
int GetCurrentHistAndLib()
******************************************************************************************/// ...
void SetFullVerbosity()
A) SetFullVerbosity.
virtual void ShowHist(int HistNumber, int LibraryNumber=1, bool same=false)
******************************************************************************************/// ...
void SpecificFit(int NbrOfSpectra=38, int FirstHist=0, int Step=1)
C) SpecificFit.
void PlotCalibResultsAsTreeLaucher()
******************************************************************************************/// ...
void PlotCalibResultsAsTree(int LibNbr)
******************************************************************************************/// ...
void UseAffineBackGround()
b) UseAffineBackGround
RawAmpWatcher(const char *name, const char *title)
*/
void UseSecondDerivativeSearch()
d) UseSecondDerivativeSearch
void UseLinearCalib()
c) UseFlatBackGround
void FitAllRecal()
1) Calibration
TTree * fCalibResultsTree
void UseAffineBackGround()
void SetHistPeaksLimits(int SpecNbr=0, int lib=1, float FWHM=15, float Ampli=5)
b) SetHistPeaksLimits
void SetChannelOffset(int Off)
2) Configure
void UseAffineCalib()
d) UseFlatBackGround
void SetHistChannelLimits(int SpecNbr=0, int lib=1, int ChFrom=50, int ChTo=32768)
c) SetChannelLimits