SctAnalysis::NoiseOccupancyAlgorithm Class Reference

Inheritance diagram for SctAnalysis::NoiseOccupancyAlgorithm:

Inheritance graph
[legend]
Collaboration diagram for SctAnalysis::NoiseOccupancyAlgorithm:

Collaboration graph
[legend]

Public Member Functions

 NoiseOccupancyAlgorithm (shared_ptr< const TestData > testData, const string &moduleName, const AnalysisAlgorithm &alg) throw ()
 constructor
virtual ~NoiseOccupancyAlgorithm () 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::TestResultcreateTestResult () 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.
SctData::ChipNOResult analyzeChip (const unsigned ichip, const SctData::OccupancyProjector &, const SctData::ChipConfiguration &, SctData::DefectList &defects)
 given the occupancy projector and response curve, produces result for a chip.

Private Member Functions

 NoiseOccupancyAlgorithm ()

Private Attributes

unsigned short m_scanVariable
 pointer to variable type.
bool debug

Static Private Attributes

static bool inMap

Detailed Description

Definition at line 18 of file NoiseOccupancyAlgorithm.h.


Constructor & Destructor Documentation

SctAnalysis::NoiseOccupancyAlgorithm::NoiseOccupancyAlgorithm shared_ptr< const TestData testData,
const string &  moduleName,
const AnalysisAlgorithm alg
throw () [inline]
 

constructor

Definition at line 23 of file NoiseOccupancyAlgorithm.h.

SctAnalysis::NoiseOccupancyAlgorithm::~NoiseOccupancyAlgorithm  )  throw () [virtual]
 

destructor

Definition at line 26 of file NoiseOccupancyAlgorithm.cpp.


Member Function Documentation

void SctAnalysis::NoiseOccupancyAlgorithm::analyze  )  [virtual]
 

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

Exceptions:
any Exception

Implements SctAnalysis::AnalysisAlgorithm.

Definition at line 49 of file NoiseOccupancyAlgorithm.cpp.

References analyzeChip(), debug, SctData::DefectList::defectSeverityAffectingElement(), SctData::ModuleConfiguration::getChipConfiguration(), SctAnalysis::AnalysisAlgorithm::getFit(), SctAnalysis::AnalysisAlgorithm::getRaw(), SctAnalysis::AnalysisAlgorithm::getTestResult(), SctData::ChipConfiguration::getTrimTarget(), SctData::ConfigurationVariableIOHelper::getTypeRep(), m_scanVariable, Sct::nChipModule, and SctData::SERIOUS.

Here is the call graph for this function:

ChipNOResult SctAnalysis::NoiseOccupancyAlgorithm::analyzeChip const unsigned  ichip,
const SctData::OccupancyProjector ,
const SctData::ChipConfiguration ,
SctData::DefectList defects
 

given the occupancy projector and response curve, produces result for a chip.

Note:
Nothrow

Definition at line 114 of file NoiseOccupancyAlgorithm.cpp.

References debug, SctData::OccupancyProjector::getOccupancy(), SctData::ChipConfiguration::getRcFunctionIndex(), SctData::ChipConfiguration::getRcParam(), SctData::ChipConfiguration::getTrimTarget(), and m_scanVariable.

Referenced by analyze().

Here is the call graph for this function:

bool SctAnalysis::NoiseOccupancyAlgorithm::canAnalyze  )  const [virtual]
 

Should check to see if the analysis can be performed.

Probably wants to call hasAllRaws() or hasAllFits().

Exceptions:
no exceotions.

Implements SctAnalysis::AnalysisAlgorithm.

Definition at line 41 of file NoiseOccupancyAlgorithm.cpp.

References SctAnalysis::AnalysisAlgorithm::hasAllFits(), and SctAnalysis::AnalysisAlgorithm::hasAllRaws().

Here is the call graph for this function:

shared_ptr< AnalysisAlgorithm > SctAnalysis::NoiseOccupancyAlgorithm::clone shared_ptr< const TestData testData,
const string &  moduleName
const throw () [virtual]
 

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 28 of file NoiseOccupancyAlgorithm.cpp.

shared_ptr< SctData::TestResult > SctAnalysis::NoiseOccupancyAlgorithm::createTestResult  )  const [virtual]
 

Called if the TestResult needs to be created.

Exceptions:
nothing. 

Implements SctAnalysis::AnalysisAlgorithm.

Definition at line 45 of file NoiseOccupancyAlgorithm.cpp.

void SctAnalysis::NoiseOccupancyAlgorithm::loadData  )  [virtual]
 

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 36 of file NoiseOccupancyAlgorithm.cpp.

References SctAnalysis::AnalysisAlgorithm::loadAllFits(), and SctAnalysis::AnalysisAlgorithm::loadAllRaws().

Here is the call graph for this function:


Field Documentation

unsigned short SctAnalysis::NoiseOccupancyAlgorithm::m_scanVariable [private]
 

pointer to variable type.

Definition at line 42 of file NoiseOccupancyAlgorithm.h.

Referenced by analyze(), and analyzeChip().


The documentation for this class was generated from the following files:
Generated on Mon Feb 6 14:03:57 2006 for SCT DAQ/DCS Software - C++ by  doxygen 1.4.6