#include <CNSCLPhysicsBuffer.h>
Inheritance diagram for CNSCLPhysicsBuffer:
Public Methods | |
CNSCLPhysicsBuffer (unsigned nWords=4096) | |
Default constructor. | |
~CNSCLPhysicsBuffer () | |
Destructor. | |
DAQWordBufferPtr | getEventStartPtr () const |
DAQWordBufferPtr | StartEvent () |
void | EndEvent (DAQWordBufferPtr &rPtr) |
void | RetractEvent (DAQWordBufferPtr &p) |
Private Methods | |
CNSCLPhysicsBuffer & | operator= (const CNSCLPhysicsBuffer &rhs) |
Assignment. | |
int | operator== (const CNSCLPhysicsBuffer &rhs) const |
Comparison for equality. | |
int | operator!= (const CNSCLPhysicsBuffer &rhs) const |
CNSCLPhysicsBuffer (const CNSCLPhysicsBuffer &rhs) | |
Copy constructor. | |
Private Attributes | |
DAQWordBufferPtr | m_EventStartPtr |
Points to start of event being built. |
Definition at line 313 of file CNSCLPhysicsBuffer.h.
|
Default constructor. Default constructor. This is called when declarations of the form e.g.:
Definition at line 291 of file CNSCLPhysicsBuffer.cpp. References DATABF, CNSCLOutputBuffer::getBuffer(), CNSCLOutputBuffer::m_EventTag, and CNSCLOutputBuffer::SetType(). |
|
Destructor.
Definition at line 322 of file CNSCLPhysicsBuffer.h. |
|
Copy constructor.
|
|
Determines the word count from the difference between the input pointer and m_EventStartPtr. This word count is inserted in the buffer at *m_EventStartPtr and m_EventStartPtr is set to be the same as the input pointer. The entity count is incremented.
Definition at line 330 of file CNSCLPhysicsBuffer.cpp. References CNSCLOutputBuffer::getWords(), m_EventStartPtr, and CNSCLOutputBuffer::Seek(). Referenced by CExperiment::Overflow(), and CExperiment::ReadEvent(). |
|
Definition at line 333 of file CNSCLPhysicsBuffer.h. References m_EventStartPtr. |
|
|
|
Assignment.
|
|
Comparison for equality.
|
|
Take the necessary steps to ensure that data put in the buffer for this event does not get committed to the buffer. At present this is a no-op. Since neiter the base class's buffer pointer nor the entity count get modified until EndEvent is called.
Definition at line 356 of file CNSCLPhysicsBuffer.cpp. Referenced by CExperiment::Overflow(). |
|
Creates a buffer pointer, reserves space for a word count and returns it to the caller. Definition at line 306 of file CNSCLPhysicsBuffer.cpp. References m_EventStartPtr, and CNSCLOutputBuffer::StartEntity(). Referenced by CExperiment::Overflow(), and CExperiment::ReadEvent(). |
|
Points to start of event being built.
Definition at line 316 of file CNSCLPhysicsBuffer.h. Referenced by EndEvent(), getEventStartPtr(), and StartEvent(). |