Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

CNSCLScalerBuffer Class Reference

#include <CNSCLScalerBuffer.h>

Inheritance diagram for CNSCLScalerBuffer:

CNSCLOutputBuffer List of all members.

Public Methods

 CNSCLScalerBuffer (unsigned nWords=4096)
 Default constructor.

 ~CNSCLScalerBuffer ()
 Destructor.

void PutScalerVector (vector< unsigned long > vScalers)
void SetStartTime (unsigned long nStart)
void SetEndTime (unsigned long nEndTime)

Private Methods

 CNSCLScalerBuffer (const CNSCLScalerBuffer &rhs)
 Copy constructor.

CNSCLScalerBuffer & operator= (const CNSCLScalerBuffer &rhs)
 Assignment.

int operator== (const CNSCLScalerBuffer &rhs) const
 Comparison for equality.

int operator!= (const CNSCLScalerBuffer &rhs)

Detailed Description

This class encapsulates the formatting of an NSCL scaler buffer. NSCL Scaler buffers include:

Definition at line 309 of file CNSCLScalerBuffer.h.


Constructor & Destructor Documentation

CNSCLScalerBuffer::CNSCLScalerBuffer unsigned    nWords = 4096
 

Default constructor.

Default constructor. This is called when declarations of the form e.g.:

  • CNSCLScalerBuffer object; are performed.

Definition at line 297 of file CNSCLScalerBuffer.cpp.

References CNSCLOutputBuffer::getBuffer(), CNSCLOutputBuffer::m_ControlTag, offSCALERS, SCALERBF, CNSCLOutputBuffer::Seek(), and CNSCLOutputBuffer::SetType().

CNSCLScalerBuffer::~CNSCLScalerBuffer   [inline]
 

Destructor.

Definition at line 317 of file CNSCLScalerBuffer.h.

CNSCLScalerBuffer::CNSCLScalerBuffer const CNSCLScalerBuffer &    rhs [private]
 

Copy constructor.


Member Function Documentation

int CNSCLScalerBuffer::operator!= const CNSCLScalerBuffer &    rhs [private]
 

CNSCLScalerBuffer& CNSCLScalerBuffer::operator= const CNSCLScalerBuffer &    rhs [private]
 

Assignment.

int CNSCLScalerBuffer::operator== const CNSCLScalerBuffer &    rhs const [private]
 

Comparison for equality.

void CNSCLScalerBuffer::PutScalerVector vector< unsigned long >    vScalers
 

Puts a vector of scalers into the buffer.

Parameters:
vScalers  - Scalers to insert in the buffer.
vector<unsigned  long vScalers

Definition at line 318 of file CNSCLScalerBuffer.cpp.

References CNSCLOutputBuffer::PutEntity().

Referenced by CExperiment::TriggerScalerReadout(), and CExperiment::TriggerSnapshotScaler().

void CNSCLScalerBuffer::SetEndTime unsigned long    nEndTime
 

Set the interval end time in 10'ths of a second from the beginning of the run.

Parameters:
nEndTime  - 10'ths of a second from run start of the end of the interval.
unsigned  long nEndTime

Definition at line 360 of file CNSCLScalerBuffer.cpp.

References CNSCLOutputBuffer::m_Buffer, and offLENDTIME.

Referenced by CExperiment::TriggerScalerReadout(), and CExperiment::TriggerSnapshotScaler().

void CNSCLScalerBuffer::SetStartTime unsigned long    nStart
 

Sets the interval start time in the buffer. The interval start time is a longword value representing the 10'ths of a second into the run.

Parameters:
nStart  - Number of 10'ths of a second since the start of the run at which the interval started.
unsigned  long nStart

Definition at line 338 of file CNSCLScalerBuffer.cpp.

References CNSCLOutputBuffer::m_Buffer, and offLBEGTIME.

Referenced by CExperiment::TriggerScalerReadout(), and CExperiment::TriggerSnapshotScaler().


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 13:37:19 2002 for Event Readout system. by doxygen1.2.16