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 149 of file FitterWorkerGroup.cpp.

References m_debug.

Referenced by addTestData(), and SctFitter::Fitter::debug().

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

print list of tests

Referenced by addTestData().

void SctFitter::FitterWorkerGroup::setDebug bool  value  ) 
 

set debug flag

Definition at line 144 of file FitterWorkerGroup.cpp.

References m_debug.

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.

Implements SctService::WorkerGroup< string >.

Definition at line 38 of file FitterWorkerGroup.cpp.

References Sct::IOName::getClassName(), Sct::SctNames::getISDictionary(), Sct::UniqueID::getRunNumber(), Sct::UniqueID::getScanNumber(), Sct::IOName::getUniqueID(), and Sct::SctNames::Mrs().

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 findTestData().


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