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

SctData::FitScanResult Class Reference

Class for the various fitted ROD scan result objects. More...

#include <FitScanResult.h>

Inheritance diagram for SctData::FitScanResult:

SctData::ScanResult Sct::Serializable Sct::Streamable

Public Member Functions

 FitScanResult (const ScanHeader &header, const ModuleConfiguration &config, const ScanPoints &points) throw ()
 Create a FitScanResult from the objects that are needed to initialize the base class. Is this really necessary?

 FitScanResult (const RawScanResult &raw) throw ()
 Create a FitScanResult object from a given RawScanResult Object.

virtual ~FitScanResult () throw ()
 Destroy the FitScanResult object and all of its FitObject members.

FitObjectgetChannelFit (const unsigned ilink, const unsigned ichip) const throw (LogicError)
 get channel fit by : link 0 or 1, channel 0 -> 767

unsigned getNHist () const throw ()
 get number of summary histograms

const TH1D & getHist (unsigned i) const throw (LogicError)
 get an existing summary histogram

virtual string getClassName () const throw ()
 Serializable overrides.

virtual string getUniqueID () const throw ()
 Serializable overrides.

const ModuleDefectListgetDefects () const throw ()
 Get the ModuleDefects associated with this FitScanResult.

ModuleDefectListgetDefects () throw ()
 Get the ModuleDefects associated with this FitScanResult.

FitObjectgetLinkFit (const unsigned ilink) const throw (LogicError)
 Functions to retrieve the FitObjects, by link, chip or channel get link fit by : link 0 or 1.

FitObjectgetChipFit (const unsigned ilink, const unsigned ichip) const throw (LogicError)
 get chip fit by : link 0 or 1, chip 0 -> 5

FitObjectgetChipFit (const unsigned ichip) const throw (LogicError)
 get chip fit by : chip 0 -> 11, with 6->11 on link 1

FitObjectgetChannelFit (const unsigned ichannel) const throw (LogicError)
 get channel fit by : channel 0 -> 1535 (with 768->1535 on link 1)

unsigned getNLinkFits () const throw ()
 Largely included for bug-checking, the following functions should return 2 if the object has been correctly initialized.

unsigned getNChipFits () const throw ()
 Largely included for bug-checking, the following functions should return 12 if the object has been correctly initialized.

unsigned getNChannelFits () const throw ()
 Largely included for bug-checking, the following functions should return 1536 if the object has been correctly initialized.

void setNChannelFits (unsigned int n=Sct::nChannelModule) throw ()
 Set the number of channel fits that are stored.

void setNChipFits (unsigned int n=Sct::nChipModule) throw ()
 Set the number of chip fits that are stored.

void setNLinkFits (unsigned int n=Sct::nLinkModule) throw ()
 Set the number of channel fits that are stored.

void initializeChannelFits (const FitObject &prototype) throw ()
 Initializes this so that it can store channel fits.

void initializeChipFits (const FitObject &prototype) throw ()
 set the number of chip fits

void initializeLinkFits (const FitObject &prototype) throw ()
 set the number of link fits

void setChannelFit (unsigned int channel, shared_ptr< FitObject > fit) throw (LogicError)
 Set a channel fit.

void setChipFit (unsigned int chip, shared_ptr< FitObject > fit) throw (LogicError)
 Set a chip fit.

void setLinkFit (unsigned int link, shared_ptr< FitObject > fit) throw (LogicError)
 Set a link fit.


Static Public Member Functions

string getUniqueID (const ScanHeader &header) throw ()
 Returns the uniqueID a FitScanResult would have if it included the given ScanHeader.


Protected Attributes

RangedVector< shared_ptr<
FitObject > > 
m_channelFits
 fits for each channel

RangedVector< shared_ptr<
FitObject > > 
m_chipFits
 fits for each chip

RangedVector< shared_ptr<
FitObject > > 
m_linkFits
 fits for each link

RangedVector< TH1D * > m_summaryHist
 summary histograms

ModuleDefectList defects
 Contains all the defects discovered in doing the fits.


Private Member Functions

 FitScanResult () throw ()
 Default constructor - only for IO purposes.


Static Private Member Functions

template<class T> void resizeAndFill (std::vector< shared_ptr< T > > &v, unsigned newSize, const T &prototype) throw ()
 utility function;


Friends

class FitScanResultIOHelper
 The IOHelper class.


Detailed Description

Class for the various fitted ROD scan result objects.

Author:
Alan Barr
Date:
6 December 2002

Definition at line 30 of file FitScanResult.h.


Constructor & Destructor Documentation

SctData::FitScanResult::FitScanResult const ScanHeader   header,
const ModuleConfiguration   config,
const ScanPoints   points
throw ()
 

Create a FitScanResult from the objects that are needed to initialize the base class. Is this really necessary?

Definition at line 22 of file FitScanResult.cpp.

SctData::FitScanResult::FitScanResult const RawScanResult   raw throw ()
 

Create a FitScanResult object from a given RawScanResult Object.

Definition at line 26 of file FitScanResult.cpp.

SctData::FitScanResult::~FitScanResult   throw () [virtual]
 

Destroy the FitScanResult object and all of its FitObject members.

Definition at line 29 of file FitScanResult.cpp.

SctData::FitScanResult::FitScanResult   throw () [private]
 

Default constructor - only for IO purposes.

Definition at line 19 of file FitScanResult.cpp.


Member Function Documentation

FitObject & SctData::FitScanResult::getChannelFit const unsigned    ilink,
const unsigned    ichip
const throw (LogicError)
 

get channel fit by : link 0 or 1, channel 0 -> 767

Definition at line 70 of file FitScanResult.cpp.

FitObject & SctData::FitScanResult::getChannelFit const unsigned    ichannel const throw (LogicError)
 

get channel fit by : channel 0 -> 1535 (with 768->1535 on link 1)

Definition at line 74 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::write().

FitObject & SctData::FitScanResult::getChipFit const unsigned    ichip const throw (LogicError)
 

get chip fit by : chip 0 -> 11, with 6->11 on link 1

Definition at line 66 of file FitScanResult.cpp.

FitObject & SctData::FitScanResult::getChipFit const unsigned    ilink,
const unsigned    ichip
const throw (LogicError)
 

get chip fit by : link 0 or 1, chip 0 -> 5

Definition at line 62 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::write().

string SctData::FitScanResult::getClassName   const throw () [virtual]
 

Serializable overrides.

Implements Sct::Streamable.

Definition at line 35 of file FitScanResult.cpp.

ModuleDefectList& SctData::FitScanResult::getDefects   throw () [inline]
 

Get the ModuleDefects associated with this FitScanResult.

Definition at line 55 of file FitScanResult.h.

References defects.

const ModuleDefectList& SctData::FitScanResult::getDefects   const throw () [inline]
 

Get the ModuleDefects associated with this FitScanResult.

Definition at line 52 of file FitScanResult.h.

References defects.

Referenced by SctData::IO::FitScanResultStreamer::read(), and SctData::IO::FitScanResultStreamer::write().

const TH1D & SctData::FitScanResult::getHist unsigned    i const throw (LogicError)
 

get an existing summary histogram

Definition at line 115 of file FitScanResult.cpp.

FitObject & SctData::FitScanResult::getLinkFit const unsigned    ilink const throw (LogicError)
 

Functions to retrieve the FitObjects, by link, chip or channel get link fit by : link 0 or 1.

Definition at line 58 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::write().

unsigned SctData::FitScanResult::getNChannelFits   const throw ()
 

Largely included for bug-checking, the following functions should return 1536 if the object has been correctly initialized.

Definition at line 98 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::write().

unsigned SctData::FitScanResult::getNChipFits   const throw ()
 

Largely included for bug-checking, the following functions should return 12 if the object has been correctly initialized.

Definition at line 94 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::write().

unsigned SctData::FitScanResult::getNHist   const throw () [inline]
 

get number of summary histograms

Definition at line 92 of file FitScanResult.h.

References m_summaryHist.

unsigned SctData::FitScanResult::getNLinkFits   const throw ()
 

Largely included for bug-checking, the following functions should return 2 if the object has been correctly initialized.

Definition at line 90 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::write().

string SctData::FitScanResult::getUniqueID const ScanHeader   header throw () [static]
 

Returns the uniqueID a FitScanResult would have if it included the given ScanHeader.

Definition at line 43 of file FitScanResult.cpp.

string SctData::FitScanResult::getUniqueID   const throw () [virtual]
 

Serializable overrides.

Implements Sct::Serializable.

Definition at line 39 of file FitScanResult.cpp.

void SctData::FitScanResult::initializeChannelFits const FitObject   prototype throw ()
 

Initializes this so that it can store channel fits.

Parameters:
prototype A prototypical FitObject that will be copied.

Definition at line 47 of file FitScanResult.cpp.

void SctData::FitScanResult::initializeChipFits const FitObject   prototype throw ()
 

set the number of chip fits

Definition at line 51 of file FitScanResult.cpp.

void SctData::FitScanResult::initializeLinkFits const FitObject   prototype throw ()
 

set the number of link fits

Definition at line 54 of file FitScanResult.cpp.

template<class T>
void SctData::FitScanResult::resizeAndFill std::vector< shared_ptr< T > > &    v,
unsigned    newSize,
const T &    prototype
throw () [static, private]
 

utility function;

Definition at line 184 of file FitScanResult.h.

void SctData::FitScanResult::setChannelFit unsigned int    channel,
shared_ptr< FitObject   fit
throw (LogicError)
 

Set a channel fit.

Must first call enableChannelFits

Definition at line 78 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::read().

void SctData::FitScanResult::setChipFit unsigned int    chip,
shared_ptr< FitObject   fit
throw (LogicError)
 

Set a chip fit.

Must first call enableChipFits

Definition at line 82 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::read().

void SctData::FitScanResult::setLinkFit unsigned int    link,
shared_ptr< FitObject   fit
throw (LogicError)
 

Set a link fit.

Must first call enableLinkFits

Definition at line 86 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::read().

void SctData::FitScanResult::setNChannelFits unsigned int    n = Sct::nChannelModule throw ()
 

Set the number of channel fits that are stored.

Definition at line 102 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::read().

void SctData::FitScanResult::setNChipFits unsigned int    n = Sct::nChipModule throw ()
 

Set the number of chip fits that are stored.

Definition at line 106 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::read().

void SctData::FitScanResult::setNLinkFits unsigned int    n = Sct::nLinkModule throw ()
 

Set the number of channel fits that are stored.

Definition at line 110 of file FitScanResult.cpp.

Referenced by SctData::IO::FitScanResultStreamer::read().


Friends And Related Function Documentation

friend class FitScanResultIOHelper [friend]
 

The IOHelper class.

Definition at line 179 of file FitScanResult.h.


Field Documentation

ModuleDefectList SctData::FitScanResult::defects [protected]
 

Contains all the defects discovered in doing the fits.

Definition at line 172 of file FitScanResult.h.

Referenced by getDefects().

RangedVector<shared_ptr<FitObject> > SctData::FitScanResult::m_channelFits [protected]
 

fits for each channel

Definition at line 168 of file FitScanResult.h.

RangedVector<shared_ptr<FitObject> > SctData::FitScanResult::m_chipFits [protected]
 

fits for each chip

Definition at line 169 of file FitScanResult.h.

RangedVector<shared_ptr<FitObject> > SctData::FitScanResult::m_linkFits [protected]
 

fits for each link

Definition at line 170 of file FitScanResult.h.

RangedVector<TH1D*> SctData::FitScanResult::m_summaryHist [protected]
 

summary histograms

Definition at line 171 of file FitScanResult.h.

Referenced by getNHist().


The documentation for this class was generated from the following files:
Generated on Mon Dec 15 19:37:45 2003 for SCT DAQ/DCS Software by doxygen1.3-rc3