Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

SctFitter::FitterWorkerGroup Class Reference

Represents a group of worker threads which does the fitting. More...

#include <FitterWorkerGroup.h>

Inheritance diagram for SctFitter::FitterWorkerGroup:

Inheritance graph
[legend]
Collaboration diagram for SctFitter::FitterWorkerGroup:

Collaboration graph
[legend]

Public Member Functions

 FitterWorkerGroup ()
 initialise the number of calls and waits to 0;

virtual ~FitterWorkerGroup ()
 destructor

void printTests (std::ostream &os) const
 print list of tests

void setDebug (bool value)
 set debug flag

bool debug () const
 get debug flag


Private Member Functions

virtual void work (string name) throw ()
 Does the fitting.

virtual shared_ptr< const
TestData
findTestData (unsigned long run, unsigned long scan)
virtual void addTestData (boost::shared_ptr< const TestData > td)

Private Attributes

volatile int m_calls
 number of times this worker has been called to work.

std::list< boost::shared_ptr<
const TestData > > 
m_tests
 list of tests

boost::recursive_mutex m_testAccess
bool m_debug

Detailed Description

Represents a group of worker threads which does the fitting.

The fitting is done in the work() method.

Definition at line 21 of file FitterWorkerGroup.h.


Constructor & Destructor Documentation

SctFitter::FitterWorkerGroup::FitterWorkerGroup  ) 
 

initialise the number of calls and waits to 0;

Definition at line 34 of file FitterWorkerGroup.cpp.

SctFitter::FitterWorkerGroup::~FitterWorkerGroup  )  [virtual]
 

destructor

Definition at line 36 of file FitterWorkerGroup.cpp.


Member Function Documentation

bool SctFitter::FitterWorkerGroup::debug  )  const
 

get debug flag

Definition at line 141 of file FitterWorkerGroup.cpp.

Referenced by SctFitter::Fitter::debug().

void SctFitter::FitterWorkerGroup::printTests std::ostream &  os  )  const
 

print list of tests

Definition at line 163 of file FitterWorkerGroup.cpp.

References m_tests.

void SctFitter::FitterWorkerGroup::setDebug bool  value  ) 
 

set debug flag

Definition at line 136 of file FitterWorkerGroup.cpp.

Referenced by SctFitter::Fitter::setDebug().

void SctFitter::FitterWorkerGroup::work string  name  )  throw () [private, virtual]
 

Does the fitting.

First gets the appropriate FitAlgorithm, then does the fit, then publishes the result. Handles its own exceptions, sending messages to MRS.

Definition at line 38 of file FitterWorkerGroup.cpp.

References SctFitter::FitAlgorithm::doFit(), Sct::SctNames::getISDictionary(), and Sct::AbstractThrowable::sendToMrs().

Here is the call graph for this function:


Field Documentation

volatile int SctFitter::FitterWorkerGroup::m_calls [private]
 

number of times this worker has been called to work.

Definition at line 44 of file FitterWorkerGroup.h.

std::list<boost::shared_ptr<const TestData> > SctFitter::FitterWorkerGroup::m_tests [private]
 

list of tests

Definition at line 54 of file FitterWorkerGroup.h.

Referenced by printTests().


The documentation for this class was generated from the following files:
Generated on Thu Dec 22 20:23:12 2005 for SCT DAQ/DCS Software - C++ by doxygen 1.3.5