Public Member Functions | Private Member Functions | List of all members
daqdataformats::RawTrigger Class Reference

Class to hold the data from the global trigger in the correct format. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-10-28/DAQDataFormats/cxx/include/RawTrigger.h"

Inheritance diagram for daqdataformats::RawTrigger:

Public Member Functions

 RawTrigger (const version_t version=triggerheader::RAWTRIGGERHEADER_LATEST_VERSION)
 After this constructor the buffer pointer is set to the internal source. More...
 
 RawTrigger (const RawTrigger &copy_in)
 The default constructor. More...
 
 RawTrigger (const void *trigger_buffer, const version_t version=rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION)
 Deep copy constructor. More...
 
 ~RawTrigger ()
 Destructor. More...
 
IMPLEMENT_MAIN_STANDARD IMPLEMENT_MAIN_setBufferSource readDataStatus readData (const int fd)
 

Private Member Functions

bool setFunctionPointers ()
 

Detailed Description

Class to hold the data from the global trigger in the correct format.

The RawTrigger class is designed to mimic the format of the actual data that emitted from the global trigger process. This information include the source of the trigger, the trigger number etc...

The class supports general initialization with an internal or external data buffer as well as copyin style initialization for use with STL containers.

Definition at line 40 of file RawTrigger.h.

Constructor & Destructor Documentation

daqdataformats::RawTrigger::RawTrigger ( const version_t  version = triggerheader::RAWTRIGGERHEADER_LATEST_VERSION)

After this constructor the buffer pointer is set to the internal source.

Perform general routines

Definition at line 21 of file RawTrigger.cpp.

References PRINT_ON_DEBUG, and daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::RAWTRIGGER_MAXIMUM_SIZE.

21  :
22  PREVIOUS_VERSION_CLASS_NAME(version)
23 {
24  INITIALIZE_DEBUGGING_VARIABLES;
25  PRINT_ON_DEBUG(__PRETTY_FUNCTION__<<" start");
27 
28  /// Perform general routines
29  defaultConstructorFixedSize();
30  PRINT_ON_DEBUG(__PRETTY_FUNCTION__<<" end");
31 }// end of :RawTrigger(version_t version)
const XML_Char * version
Definition: expat.h:187
#define PRINT_ON_DEBUG(x)
Definition: RawDAQData.h:35
daqdataformats::RawTrigger::RawTrigger ( const RawTrigger copy_in)

The default constructor.

Definition at line 34 of file RawTrigger.cpp.

References PRINT_ON_DEBUG.

34  :
35  PREVIOUS_VERSION_CLASS_NAME(copy_in)
36 {
37  INITIALIZE_DEBUGGING_VARIABLES;
38  PRINT_ON_DEBUG(__PRETTY_FUNCTION__<<" start");
39  lastOperationsInDeepCopy(copy_in);
40  PRINT_ON_DEBUG(__PRETTY_FUNCTION__<<" end");
41 }
#define PRINT_ON_DEBUG(x)
Definition: RawDAQData.h:35
daqdataformats::RawTrigger::RawTrigger ( const void trigger_buffer,
const version_t  version = rawdaqdataformat::DAQDATAFORMAT_UNKNOWN_VERSION 
)

Deep copy constructor.

Definition at line 45 of file RawTrigger.cpp.

References PRINT_ON_DEBUG.

45  :
46  PREVIOUS_VERSION_CLASS_NAME(version)
47 {
48  INITIALIZE_DEBUGGING_VARIABLES;
49  PRINT_ON_DEBUG(__PRETTY_FUNCTION__<<" start");
50  copy(nanoslice_buffer);
51  PRINT_ON_DEBUG(__PRETTY_FUNCTION__<<" end");
52 }
const XML_Char * version
Definition: expat.h:187
#define PRINT_ON_DEBUG(x)
Definition: RawDAQData.h:35
daqdataformats::RawTrigger::~RawTrigger ( )

Destructor.

Shallow copy constructor

Definition at line 55 of file RawTrigger.cpp.

55 { }

Member Function Documentation

IMPLEMENT_MAIN_STANDARD IMPLEMENT_MAIN_setBufferSource readDataStatus daqdataformats::RawTrigger::readData ( const int  fd)
inline

Method to read data from a PIPE (not socket). Only one read can be made. After that the pipe is closed. According to Ron Rechenmacher, the maximum size of a PIPE is 512 bytes.

Definition at line 57 of file RawTrigger.h.

References fd, IMPLEMENT_FIGUREOUT_VERSION_STATIC, IMPLEMENT_GET_AND_SET_MAIN, IMPLEMENT_SET_MAIN, RETURN_FUNCTION, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::TriggerMask, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::TriggerRange, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::TriggerTime, and daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::TriggerTimingMarker.

Referenced by PandAna.core.core.loader::Go().

57 {RETURN_FUNCTION(readDataFromFileDescriptor)(fd);}
#define RETURN_FUNCTION(FULLFUNCTIONNAME)
Definition: Macros.h:57
bool daqdataformats::RawTrigger::setFunctionPointers ( )
private

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