#include <NPtGainAlgorithm.h>
Inheritance diagram for SctAnalysis::NPtGainAlgorithm:
Public Member Functions | |
NPtGainAlgorithm (shared_ptr< const TestData > testData, const string &moduleName, const AnalysisAlgorithm &alg) throw () | |
Constructor. | |
virtual | ~NPtGainAlgorithm () throw () |
Destructor. | |
virtual void | analyze () |
Does the analysis. | |
virtual void | loadData () |
Called to indicate the algorithm should try and load as much data as it can - perhaps by calling loadAllFits or loadAllRaws(). | |
virtual bool | canAnalyze () const |
Should check to see if the analysis can be performed. | |
virtual shared_ptr< SctData::TestResult > | createTestResult () const |
Called if the TestResult needs to be created. | |
virtual boost::shared_ptr< AnalysisAlgorithm > | clone (shared_ptr< const TestData > testData, const string &moduleName) const throw () |
Must be overridden by sub-classes. | |
Static Public Member Functions | |
static boost::shared_ptr< ResponseCurve > | getResponseCurve (unsigned int nPts=4) throw (LogicError) |
Source of response curves of type given by setResponseCurve nPts The number of points in the response curve (default such that large number of points response curve is returned). | |
static void | setResponseCurve (auto_ptr< ResponseCurve > rc) throw () |
Method of setting response curve type. | |
Private Types | |
typedef FitObject &(FitScanResult::* | getFitFunction )(unsigned int) const |
Private Member Functions | |
NPtGainAlgorithm () | |
void | setupGraph (unsigned int id, const ModuleElement &element, getFitFunction fitFunc, NPtGainTestResult &test, NPtGainTestResultData &testData, bool trimPoints=false) throw (LogicError) |
does what it says on the tin | |
void | doFit (unsigned int id, getFitFunction fitFunc, NPtGainTestResult &test, NPtGainTestResultData &testData) throw (LogicError) |
Does a fit given a way of getting the data. | |
void | mergeDefects (NPtGainTestResult &test, const ModuleElement &element, unsigned int lastPoint) |
Merges defects from the FitScanResults that effect element up to and including scan: lastPoint. | |
void | doSlopes (NPtGainTestResult &test) |
check for slopes in the test | |
void | doSlopes (shared_ptr< TGraph > graph, Sct::RangedVector< float > &result) |
check for slopes on a particular result | |
void | doDefect (const ModuleElement &e, DefectList &defects, const NPtGainTestResultData &data, const NPtGainTestResultData &comparisonData) throw (LogicError) |
Once the fits are done, we need to figure out any defects. | |
Private Attributes | |
unsigned int | nOnePointTrimmed |
unsigned int | nTwoPointTrimmed |
SctConfiguration::MURType | m_mur_type |
barrel/endcap? | |
SctConfiguration::EndcapType | m_endcap_type |
short? middle? inner? | |
Static Private Attributes | |
static boost::shared_ptr< ResponseCurve > | s_responseCurve |
prototype used in virtual constuctor idiom to make rc's. | |
static bool | inMap |
static unsigned | s_configurationWarnings |
counter for warning MRS messages |
Definition at line 42 of file NPtGainAlgorithm.h.
|
Constructor.
Definition at line 33 of file NPtGainAlgorithm.cpp. References SctAnalysis::AnalysisService::getConfiguration(), SctConfiguration::getEndcapType(), SctAnalysis::AnalysisService::instance(), and Sct::SctNames::Mrs(). Here is the call graph for this function: ![]() |
|
Destructor.
Definition at line 51 of file NPtGainAlgorithm.h. |
|
Does the analysis. Should only be called after canAnalyze() returns true. Should not be called is isDone() returns true. It should also do any final initialization of the TestResult which requires data to be present
Implements SctAnalysis::AnalysisAlgorithm. Definition at line 109 of file NPtGainAlgorithm.cpp. References doFit(), SctAnalysis::AnalysisAlgorithm::getFit(), SctAnalysis::AnalysisAlgorithm::getTestResult(), Sct::nChipModule, nOnePointTrimmed, nTwoPointTrimmed, Sct::Throwable::sendToMrs(), and setupGraph(). Here is the call graph for this function: ![]() |
|
Should check to see if the analysis can be performed. Probably wants to call hasAllRaws() or hasAllFits().
Implements SctAnalysis::AnalysisAlgorithm. Definition at line 105 of file NPtGainAlgorithm.cpp. References SctAnalysis::AnalysisAlgorithm::hasAllFits(). Here is the call graph for this function: ![]() |
|
Must be overridden by sub-classes. Returns a shared pointer to a concrete AnalysisAlgorithm of the correct type. Primarily used by the map to get an AnalysisAlgorithm of the correct type. Implements SctAnalysis::AnalysisAlgorithm. Definition at line 29 of file NPtGainAlgorithm.cpp. |
|
Called if the TestResult needs to be created.
Implements SctAnalysis::AnalysisAlgorithm. Definition at line 93 of file NPtGainAlgorithm.cpp. References Sct::nChannelModule, and Sct::nChipModule. |
|
Once the fits are done, we need to figure out any defects. These are worked out by conparison with some other data. Definition at line 267 of file NPtGainAlgorithm.cpp. |
|
Does a fit given a way of getting the data.
Definition at line 250 of file NPtGainAlgorithm.cpp. References SctFitter::FitStrategy::fitTGraph(), SctAnalysis::AnalysisService::getFitStrategy(), and SctAnalysis::AnalysisService::instance(). Referenced by analyze(). Here is the call graph for this function: ![]() |
|
check for slopes on a particular result
Definition at line 331 of file NPtGainAlgorithm.cpp. References Sct::nChannelChip, and Sct::nChipModule. |
|
check for slopes in the test
Definition at line 303 of file NPtGainAlgorithm.cpp. References SctData::DefectList::addDefect(), SctData::NPtGainTestResult::gainSlope, SctData::TestResult::getDefects(), SctData::NPtGainTestResult::getGainGraph(), SctData::NPtGainTestResult::getNoiseGraph(), SctData::NPtGainTestResult::getOffsetGraph(), Sct::nChipModule, SctData::NPtGainTestResult::noiseSlope, and SctData::NPtGainTestResult::offsetSlope. Here is the call graph for this function: ![]() |
|
Source of response curves of type given by setResponseCurve nPts The number of points in the response curve (default such that large number of points response curve is returned).
Definition at line 79 of file NPtGainAlgorithm.cpp. |
|
Called to indicate the algorithm should try and load as much data as it can - perhaps by calling loadAllFits or loadAllRaws(). This is guarenteed to be called shortly before analyze(). Implements SctAnalysis::AnalysisAlgorithm. Definition at line 101 of file NPtGainAlgorithm.cpp. References SctAnalysis::AnalysisAlgorithm::loadAllFits(). Here is the call graph for this function: ![]() |
|
Merges defects from the FitScanResults that effect element up to and including scan: lastPoint.
Definition at line 240 of file NPtGainAlgorithm.cpp. References SctData::DefectList::addDefect(), SctData::TestResult::getDefects(), and SctAnalysis::AnalysisAlgorithm::getFit(). Here is the call graph for this function: ![]() |
|
Method of setting response curve type.
Definition at line 87 of file NPtGainAlgorithm.cpp. |
|
does what it says on the tin
Definition at line 177 of file NPtGainAlgorithm.cpp. Referenced by analyze(). |
|
short? middle? inner?
Definition at line 109 of file NPtGainAlgorithm.h. |
|
barrel/endcap?
Definition at line 108 of file NPtGainAlgorithm.h. |
|
counter for warning MRS messages
Definition at line 107 of file NPtGainAlgorithm.h. |
|
prototype used in virtual constuctor idiom to make rc's.
Definition at line 74 of file NPtGainAlgorithm.h. |