Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

CScalerBank Class Reference

#include <CScalerBank.h>

Inheritance diagram for CScalerBank:

Inheritance graph
[legend]
Collaboration diagram for CScalerBank:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CScalerBank (CTCLInterpreter *pInterp, CDigitizerDictionary *pDictionary)
virtual ~CScalerBank ()
ULong_t * Read (ULong_t *pBuffer)
 CScalerBank (CTCLInterpreter *pInterp, CDigitizerDictionary *pDictionary)
virtual ~CScalerBank ()
ULong_t * Read (ULong_t *pBuffer)

Private Member Functions

 CScalerBank (const CScalerBank &aCScalerBank)
CScalerBankoperator= (const CScalerBank &aCScalerBank)
int operator== (const CScalerBank &aCScalerBank) const
int operator!= (const CScalerBank &aCScalerBank) const
 CScalerBank (const CScalerBank &aCScalerBank)
CScalerBankoperator= (const CScalerBank &aCScalerBank)
int operator== (const CScalerBank &aCScalerBank) const
int operator!= (const CScalerBank &aCScalerBank) const

Detailed Description

Encapsulates a scaler bank. Scaler banks are objects that readout an ordered list of scalers. They are like ReadOrder objects, but they supply an {additional} Read member that can read data into an ordinary UShort_t* buffer rathern than into one of the specialized NSCL data buffer types.

Definition at line 45 of file CScalerBank.h.


Constructor & Destructor Documentation

CScalerBank::CScalerBank CTCLInterpreter *  pInterp,
CDigitizerDictionary pDictionary
 

Construct a scaler bank. All the real work is done in the base class:

Parameters:
pInterp CTCLInterpreter* [in] The interpreter in which the bank management commands will be registered.
pDictionary CDigitizerDictionary* [in] The module dictionary that maintains the set of modules elligible to be readout. Note that this dictionary must be one which contains only objects that are derived from CScalerModule. This is required because only those have the read member needed. If a non scaler module is inserted, this is detected and complained about at read time.

Definition at line 33 of file CScalerBank.cpp.

References pDictionary(), and pInterp().

CScalerBank::~CScalerBank  )  [virtual]
 

Destroys a scaler bank. All the real work is done by the base class.

Definition at line 44 of file CScalerBank.cpp.

CScalerBank::CScalerBank const CScalerBank aCScalerBank  )  [private]
 

CScalerBank::CScalerBank CTCLInterpreter *  pInterp,
CDigitizerDictionary pDictionary
 

virtual CScalerBank::~CScalerBank  )  [virtual]
 

CScalerBank::CScalerBank const CScalerBank aCScalerBank  )  [private]
 


Member Function Documentation

int CScalerBank::operator!= const CScalerBank aCScalerBank  )  const [private]
 

int CScalerBank::operator!= const CScalerBank aCScalerBank  )  const [private]
 

CScalerBank& CScalerBank::operator= const CScalerBank aCScalerBank  )  [private]
 

CScalerBank& CScalerBank::operator= const CScalerBank aCScalerBank  )  [private]
 

int CScalerBank::operator== const CScalerBank aCScalerBank  )  const [private]
 

int CScalerBank::operator== const CScalerBank aCScalerBank  )  const [private]
 

ULong_t* CScalerBank::Read ULong_t *  pBuffer  ) 
 

ULong_t * CScalerBank::Read ULong_t *  pBuffer  ) 
 

Reads data from the scaler banks, putting it into the buffer passed in.

Parameters:
pBuffer ULong_t* [out] Pointer to the place to put the scaler data.
Returns:
ULong_t* a Pointer to the buffer following the data.
Exceptions:
bad_cast exception if a module is in the readout list that is not a CScalerModule.

Definition at line 65 of file CScalerBank.cpp.

References CReadOrder::ModuleIterator, CScalerModule::Read(), CReadOrder::readerbegin(), and CReadOrder::readerend().


The documentation for this class was generated from the following files:
Generated on Fri Mar 12 13:04:36 2004 for Scripted Readout by doxygen 1.3.4