PAASS
Software suite to Acquire and Analyze Data from Pixie16
PLD_data Class Reference

The DATA buffer contains all physics data within the .pld file. More...

#include <hribf_buffers.h>

Inheritance diagram for PLD_data:
Collaboration diagram for PLD_data:

Public Member Functions

 PLD_data ()
 Default constructor. More...
 
virtual bool Write (std::ofstream *file_, char *data_, unsigned int nWords_)
 0x41544144 "DATA" More...
 
virtual bool Read (std::ifstream *file_, char *data_, unsigned int &nBytes, unsigned int max_bytes_, bool dry_run_mode=false)
 Read a data spill from a file. More...
 
virtual void Reset ()
 Set initial values. More...
 
- Public Member Functions inherited from BufferType
unsigned int GetBufferType ()
 
unsigned int GetBufferSize ()
 
unsigned int GetBufferEndFlag ()
 
bool DebugMode ()
 
void SetDebugMode (bool debug_=true)
 
bool ReadHeader (std::ifstream *file_)
 Return true if the first word of the current buffer is equal to this buffer type. More...
 

Additional Inherited Members

- Protected Member Functions inherited from BufferType
 BufferType (unsigned int bufftype_, unsigned int buffsize_, unsigned int buffend_=0xFFFFFFFF)
 Generic BufferType constructor. More...
 
virtual bool Write (std::ofstream *file_)
 Returns only false if not overloaded. More...
 
virtual bool Read (std::ifstream *file_)
 Returns only false if not overloaded. More...
 
- Protected Attributes inherited from BufferType
unsigned int bufftype
 
unsigned int buffsize
 
unsigned int buffend
 
unsigned int zero
 
bool debug_mode
 

Detailed Description

The DATA buffer contains all physics data within the .pld file.

Definition at line 138 of file hribf_buffers.h.

Constructor & Destructor Documentation

§ PLD_data()

PLD_data::PLD_data ( )

Default constructor.

Definition at line 257 of file hribf_buffers.cpp.

Here is the call graph for this function:

Member Function Documentation

§ Read()

bool PLD_data::Read ( std::ifstream *  file_,
char *  data_,
unsigned int &  nBytes,
unsigned int  max_bytes_,
bool  dry_run_mode = false 
)
virtual

Read a data spill from a file.

Read a pld style data buffer from file.

Definition at line 277 of file hribf_buffers.cpp.

§ Reset()

virtual void PLD_data::Reset ( void  )
inlinevirtual

Set initial values.

Reimplemented from BufferType.

Definition at line 151 of file hribf_buffers.h.

Here is the caller graph for this function:

§ Write()

bool PLD_data::Write ( std::ofstream *  file_,
char *  data_,
unsigned int  nWords_ 
)
virtual

0x41544144 "DATA"

Write a pld style data buffer to file.

Write a data spill to file

Definition at line 262 of file hribf_buffers.cpp.


The documentation for this class was generated from the following files: