Time
Public Member Functions | |
QStabChannel (int ch, std::string &, int, int, double, unsigned int, int) | |
void | Dump () |
int | GetChannel () |
void | FillVectors (double ampl, double time, double baseline) |
Read temperature data and fill fTemperatures and fTimes. | |
void | FindPeaks (bool, bool, bool) |
void | AddInterval (double time) |
Add. | |
void | MakeTimeHistograms () |
void | MakeBaselineHistograms () |
bool | FitTimeHistograms (unsigned int degree, bool gr, FILE *outF, std::string method="profile") |
Fit the amplitude vs time plot with a polynomial of degree. | |
bool | FitBaselineHistograms (unsigned int degree, bool gr, std::string grF, FILE *outF, std::string method="profile") |
Fit the amplitude vs baseline plot with a polynomial of degree. | |
void | RemoveSpurious (double nStdDev, double nSkewness) |
void | LastFit (bool gr, FILE *outF, std::string method="profile") |
void | RemoveSpurious () |
void | SaveDiscontinuities () |
Save the time values where discontinuities have been found in the data base. | |
int | GetNumberOfDiscontinuities () |
QVector | GetDiscontinuitiesAmplitudes () |
const double * | GetAmplitudes (int interval) |
const double * | GetTimes (int interval) |
const double * | GetBaselines (int interval) |
int | GetEntries (int interval) |
void | SetFitVsBaseline (bool) |
void | RemoveSpuriousTimeDom () |
void | RemoveSpuriousBaselDom () |
void | CutInAmplitude (double min=2000, double max=10000) |
void | DumpDistributions (std::string) |
void | ReadInitialParametersFile () |
void | SetInitialParametersFile (FILE *) |
Private Member Functions | |
void | Clear () |
void | AddOneEntry () |
void | RemoveOneEntry () |
bool | HasProblems (int) |
void | Smooth (QVector &, QVector &, int) |
void | Derivate (QVector &, QVector &, int) |
int | CheckFit (TF1 &, int) |
void | SetInitialParameters (int interval, int n) |
Private Attributes | |
int | fChannel |
std::string | fOutFileName |
int | fNSamples |
int | fDebounce |
double | fNSigma |
unsigned int | fDerivDistance |
int | fMinPoints |
discontinuities are disregarded if leading to intervals with less than fMinPoints points | |
int | fNTimeIntervals |
bool | fIsActive |
int | fNDiscontinuities |
bool | fFitVsBaseline |
double * | fParameters |
double * | fInitialParameters |
FILE * | fInitialParametersFile |
std::vector< QVector > | fAmplitudes |
std::vector< QVector > | fTimes |
std::vector< QVector > | fBaselines |
std::vector< QVector > | fAmplAverages |
std::vector< QVector > | fBaselAverages |
std::vector< QVector > | fDerivatives |
std::vector< QVector > | fSmtDerivatives |
std::vector< QVector > | fSecDerivatives |
std::vector< QVector > | fSmtSecDerivatives |
std::vector< QVector > | fErrDerivatives |
std::vector< QVector > | fSecErrDerivatives |
std::vector< QVector > | fDiscontinuitiesPoints |
std::vector< QVector > | fDiscontinuitiesAmplitudes |
std::vector< QVector > | fDiscontinuitiesTimes |
std::vector< int > | fProblematicIntervals |
std::vector< double > | fChisqOverNDFs |
std::vector< int > | fBestDegreeForFits |
std::vector< bool > | fFirstFitSatisfactory |
QVector | fTDiscontinuities |
QStabFitter * | fFitter |
void QStabChannel::AddInterval | ( | double | time | ) |
Add.
time | to fDiscontinuitiesTime and add an entry to all the vector data members |
bool QStabChannel::FitTimeHistograms | ( | unsigned int | degree, | |
bool | gr, | |||
FILE * | outF, | |||
std::string | method = "profile" | |||
) |
Fit the amplitude vs time plot with a polynomial of degree.
degree | and stores the fit parameter in the data base in case of unsuccessful fit returns a vector containing the indexes of the interval in which this happened |
bool QStabChannel::FitBaselineHistograms | ( | unsigned int | degree, | |
bool | gr, | |||
std::string | grF, | |||
FILE * | outF, | |||
std::string | method = "profile" | |||
) |
Fit the amplitude vs baseline plot with a polynomial of degree.
degree | and stores the fit parameter in the data base in case of unsuccessful fit returns a vector containing the indexes of the interval in which this happened |
References QStabFitter::Fit(), QStabFitter::GetParameter(), QStabFitter::SetAverageAmplitude(), and QStabFitter::SetInitialParameters().