Public Member Functions | Protected Member Functions | List of all members
daqdataformats::RawEvent Class Reference

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-01/DAQDataFormats/cxx/include/RawEvent.h"

Inheritance diagram for daqdataformats::RawEvent:

Public Member Functions

 RawEvent (const uint32_t buffersize=DEFAULT_EVENT_SIZE, const version_t version=raweventhdr::RAWEVENTHEADER_LATEST_VERSION)
 Constructors. More...
 
 RawEvent (const RawEvent &copy_in)
 The default constructor. More...
 
 RawEvent (const void *datablock_buffer, const version_t version=rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION)
 Deep copy constructor. More...
 
 ~RawEvent ()
 Destructor. More...
 
IMPLEMENT_MAIN_STANDARD IMPLEMENT_MAIN_setBufferSource bool addDataBlock (const void *buffer)
 
bool addDataBlock (const void *buffer, const uint32_t size)
 
bool close (const bool produce_crc=false)
 
bool setTrigger (const daqdataformats::RawTrigger &tr)
 
bool setTrigger (const void *buffer)
 

Protected Member Functions

bool setFunctionPointers ()
 Next event. Advance the event number and clear the DataBlocks and CRC. More...
 

Detailed Description

Definition at line 48 of file RawEvent.h.

Constructor & Destructor Documentation

daqdataformats::RawEvent::RawEvent ( const uint32_t  buffersize = DEFAULT_EVENT_SIZE,
const version_t  version = raweventhdr::RAWEVENTHEADER_LATEST_VERSION 
)

Constructors.

Definition at line 23 of file RawEvent.cpp.

23  :
24  PREVIOUS_VERSION_CLASS_NAME(version)
25 {
26  INITIALIZE_DEBUGGING_VARIABLES;
27  reserveInternalBuffer(size);
28  defaultConstructorFloatingSize();
29 }
const XML_Char * version
Definition: expat.h:187
daqdataformats::RawEvent::RawEvent ( const RawEvent copy_in)

The default constructor.

Definition at line 31 of file RawEvent.cpp.

31  :
32  PREVIOUS_VERSION_CLASS_NAME(copy_in)
33 {
34  INITIALIZE_DEBUGGING_VARIABLES;
35  lastOperationsInDeepCopy(copy_in);
36 }
daqdataformats::RawEvent::RawEvent ( const void datablock_buffer,
const version_t  version = rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION 
)

Deep copy constructor.

Definition at line 39 of file RawEvent.cpp.

39  :
40  PREVIOUS_VERSION_CLASS_NAME(version)
41 {
42  INITIALIZE_DEBUGGING_VARIABLES;
43  copy(buffer);
44 }
::xsd::cxx::tree::buffer< char > buffer
Definition: Database.h:179
const XML_Char * version
Definition: expat.h:187
daqdataformats::RawEvent::~RawEvent ( )

Destructor.

Shallow copy constructor

Definition at line 48 of file RawEvent.cpp.

48 { }

Member Function Documentation

IMPLEMENT_MAIN_STANDARD IMPLEMENT_MAIN_setBufferSource bool daqdataformats::RawEvent::addDataBlock ( const void buffer)
inline

Definition at line 61 of file RawEvent.h.

References RETURN_FUNCTION.

Referenced by daqdataformats::VERSION_NAMESPACE::RawEvent::init(), and mcdatadaq::DataLoggerSimulator::produceEvent().

::xsd::cxx::tree::buffer< char > buffer
Definition: Database.h:179
#define RETURN_FUNCTION(FULLFUNCTIONNAME)
Definition: Macros.h:57
IMPLEMENT_MAIN_STANDARD IMPLEMENT_MAIN_setBufferSource bool addDataBlock(const void *buffer)
Definition: RawEvent.h:61
bool daqdataformats::RawEvent::addDataBlock ( const void buffer,
const uint32_t  size 
)
inline

Definition at line 62 of file RawEvent.h.

References RETURN_FUNCTION, and gen_flatrecord::size.

62 { RETURN_FUNCTION(addDataBlockWithSize)(buffer, size);}
::xsd::cxx::tree::buffer< char > buffer
Definition: Database.h:179
#define RETURN_FUNCTION(FULLFUNCTIONNAME)
Definition: Macros.h:57
bool daqdataformats::RawEvent::close ( const bool  produce_crc = false)
inline

Definition at line 63 of file RawEvent.h.

References RETURN_FUNCTION.

Referenced by mcdatadaq::DataLoggerSimulator::produceEvent().

63 {RETURN_FUNCTION(close)(produce_crc);}
bool close(const bool produce_crc=false)
Definition: RawEvent.h:63
#define RETURN_FUNCTION(FULLFUNCTIONNAME)
Definition: Macros.h:57
bool daqdataformats::RawEvent::setFunctionPointers ( )
protected

Next event. Advance the event number and clear the DataBlocks and CRC.

Referenced by setTrigger().

bool daqdataformats::RawEvent::setTrigger ( const daqdataformats::RawTrigger tr)
inline

Definition at line 64 of file RawEvent.h.

References RETURN_FUNCTION, and make_root_from_grid_output::tr.

Referenced by mcdatadaq::DataLoggerSimulator::produceEvent().

64 {RETURN_FUNCTION(setTrigger1)(tr);}
#define RETURN_FUNCTION(FULLFUNCTIONNAME)
Definition: Macros.h:57
bool daqdataformats::RawEvent::setTrigger ( const void buffer)
inline

Definition at line 65 of file RawEvent.h.

References IMPLEMENT_FIGUREOUT_VERSION_STATIC, IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_0PAR, IMPLEMENT_FUNCTION_RETURNING_FUNCTION_POINTER_1PAR, RETURN_FUNCTION, and setFunctionPointers().

65 {RETURN_FUNCTION(setTrigger2)(buffer);}
::xsd::cxx::tree::buffer< char > buffer
Definition: Database.h:179
#define RETURN_FUNCTION(FULLFUNCTIONNAME)
Definition: Macros.h:57

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