#include <FitAlgorithm.h>
Inheritance diagram for SctFitter::FitAlgorithm:
Utility functions | |
{ | |
float | findLevel (const TH1 &h, const float fraction, const bool forward) throw (MathsError) |
Associated histogram utility routine. | |
int | findBin (const TH1 &h, const float fraction, const bool forward) throw (MathsError) |
Associated histogram utility routine. | |
FitAlgorithm () throw () | |
} | |
virtual void | doFit (const TH1 &hist, FitObject &fitObject, const ModuleElement &element, DefectList &defects) const throw (LogicError) |
Attempts to do an individual fit. | |
Public Member Functions | |
virtual auto_ptr< FitScanResult > | doFit (const RawScanResult &raw) const throw (Sct::LogicError) |
This is the entry point for the FittingService. | |
const FitterMode & | getMode () const throw () |
void | setMode (const FitterMode &mode) throw () |
Protected Member Functions | |
virtual void | createSummaryHistograms (FitScanResult &fits) const=0 throw () |
Makes set of summary histograms from the fitObject results. | |
boost::recursive_mutex & | getMutex () const |
access the mutex | |
Utility functions | |
{ | |
virtual auto_ptr< FitObject > | getPrototype () const=0 throw () |
Returns a prototypical FitObject for this algorithm. | |
virtual void | guessParameters (const TH1 &hist, FitObject &fitOb) const=0 throw (LogicError, MathsError) |
guess the initial fit parameters from histogram prior to doing a fit : put them in FitObject. | |
virtual void | checkForDefects (const TH1 &hist, const ModuleElement &element, DefectList &defects) const=0 throw (LogicError) |
checks the element for defects. | |
virtual void | checkForDefects (const FitObject &fo, const ModuleElement &element, DefectList &d) const=0 |
checks fit for defects - add them to the defect list | |
Private Attributes | |
boost::recursive_mutex | m_access |
access to the mode can be locked for thread-safeness. | |
FitterMode | mode |
The FitterMode used by this algorithm. |
Specific sub-classes register themselves with the FitAlgorithmMap which is used to determine which FitAlgorithm to use given a ConfigurationVariable. Each FitAlgorithm has its own mode that is used to determine whether to fit links, chip, channels (and indeed if that is even meaningful!)
Definition at line 41 of file FitAlgorithm.h.
|
}
Definition at line 17 of file FitAlgorithm.cpp. |
|
checks fit for defects - add them to the defect list
Implemented in SctFitter::StrobeDelayFitAlgorithm, and SctFitter::ThresholdFitAlgorithm. |
|
checks the element for defects. Add them to the ModuleDefectList. Implemented in SctFitter::StrobeDelayFitAlgorithm, and SctFitter::ThresholdFitAlgorithm. |
|
Makes set of summary histograms from the fitObject results. Default implementation does nothing for convenience. Implemented in SctFitter::StrobeDelayFitAlgorithm, and SctFitter::ThresholdFitAlgorithm. |
|
Attempts to do an individual fit. Default implementation calls guessParameters and checkForDefects then uses the Fitter's FitStrategy to actually do the fit. Definition at line 88 of file FitAlgorithm.cpp. References SctFitter::Fitter::getFitStrategy(), SctFitter::Fitter::incrementFitErrors(), SctFitter::Fitter::incrementFitsDone(), and SctData::SERIOUS. |
Here is the call graph for this function:
|
This is the entry point for the FittingService. The default implementation checks the mode then call doFit for each link/chip/channel as appropriate. If any throw a ModuleDefect, they are added appropriately. Finally, if the mode says, then createSummaryHistograms is called. Definition at line 34 of file FitAlgorithm.cpp. References SctData::OccupancyProjector::getOccupancy(), SctData::OccupancyProjector::vetoMaskedChannels(), and SctData::OccupancyProjector::vetoSeriousDefects(). Referenced by SctFitter::FitterWorkerGroup::work(). |
Here is the call graph for this function:
|
Associated histogram utility routine. If `forward' is true then returns the bin for which the bin content first is greater than `fraction' of its maximum If `forward' is false then returns bin for which the cell content is last greater than `fraction' of its maximum. Throws an exception if the bin is not found. Definition at line 119 of file FitAlgorithm.cpp. |
|
Associated histogram utility routine. If `last' is true then returns the value of x for which the bin content first is greater than `fraction' of its maximum If `last' is false then returns the value of x for which the cell content first is greater than `fraction' of its maximum. Uses findBin function Definition at line 143 of file FitAlgorithm.cpp. |
|
access the mutex
Definition at line 124 of file FitAlgorithm.h. References m_access. |
|
Returns a prototypical FitObject for this algorithm.
Implemented in SctFitter::StrobeDelayFitAlgorithm, and SctFitter::ThresholdFitAlgorithm. |
|
guess the initial fit parameters from histogram prior to doing a fit : put them in FitObject.
Implemented in SctFitter::StrobeDelayFitAlgorithm, and SctFitter::ThresholdFitAlgorithm. |
|
access to the mode can be locked for thread-safeness.
Definition at line 126 of file FitAlgorithm.h. Referenced by getMutex(). |
|
The FitterMode used by this algorithm.
Definition at line 127 of file FitAlgorithm.h. |