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

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

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawEventTail:

Public Member Functions

 RawEventTail (const version_t)
 The default constructor. More...
 
 RawEventTail (const RawEventTail &)
 
 ~RawEventTail ()
 Destructor. More...
 
void init ()
 
void print (std::ostream &os=std::cout) const
 
uint32_t sizeofdata () const
 
voidreadData (const void *pointer)
 

Protected Member Functions

 IMPLEMENT_FIRST_GET_AND_SET (Marker, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (MarkerLeft, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (MarkerRight, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (Version, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (EventNumberLo, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (EventNumberHi, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (EventSize, uint32_t)
 

Detailed Description

Definition at line 65 of file RawEventTailV0.h.

Constructor & Destructor Documentation

daqdataformats::VERSION_NAMESPACE::RawEventTail::RawEventTail ( const version_t  version)

The default constructor.

Definition at line 22 of file RawEventTailV0.cpp.

22  :
23  RawDAQData(version)
24  ,ZEROOUT_GET_AND_SET(Marker )
25  ,ZEROOUT_GET_AND_SET(MarkerLeft )
26  ,ZEROOUT_GET_AND_SET(MarkerRight )
27  ,ZEROOUT_GET_AND_SET(Version )
28  ,ZEROOUT_GET_AND_SET(EventNumberLo)
29  ,ZEROOUT_GET_AND_SET(EventNumberHi)
30  ,ZEROOUT_GET_AND_SET(EventSize )
31 { }
#define ZEROOUT_GET_AND_SET(FUNC)
Definition: FunctionBind.h:56
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawEventTail::RawEventTail ( const RawEventTail copyin)

Definition at line 34 of file RawEventTailV0.cpp.

34  :
35  RawDAQData(copyin)
36  ,DEEPCOPY_GET_AND_SET(Marker )
37  ,DEEPCOPY_GET_AND_SET(MarkerLeft )
38  ,DEEPCOPY_GET_AND_SET(MarkerRight )
39  ,DEEPCOPY_GET_AND_SET(Version )
40  ,DEEPCOPY_GET_AND_SET(EventNumberLo)
41  ,DEEPCOPY_GET_AND_SET(EventNumberHi)
42  ,DEEPCOPY_GET_AND_SET(EventSize )
43 { }
#define DEEPCOPY_GET_AND_SET(FUNC)
Definition: FunctionBind.h:44
daqdataformats::VERSION_NAMESPACE::RawEventTail::~RawEventTail ( )

Destructor.

Definition at line 47 of file RawEventTailV0.cpp.

47 { }

Member Function Documentation

daqdataformats::VERSION_NAMESPACE::RawEventTail::IMPLEMENT_FIRST_GET_AND_SET ( Marker  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawEventTail::IMPLEMENT_FIRST_GET_AND_SET ( MarkerLeft  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawEventTail::IMPLEMENT_FIRST_GET_AND_SET ( MarkerRight  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawEventTail::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawEventTail::IMPLEMENT_FIRST_GET_AND_SET ( EventNumberLo  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawEventTail::IMPLEMENT_FIRST_GET_AND_SET ( EventNumberHi  ,
uint32_t   
)
protected
daqdataformats::VERSION_NAMESPACE::RawEventTail::IMPLEMENT_FIRST_GET_AND_SET ( EventSize  ,
uint32_t   
)
protected
void daqdataformats::VERSION_NAMESPACE::RawEventTail::init ( )
void daqdataformats::VERSION_NAMESPACE::RawEventTail::print ( std::ostream &  os = std::cout) const

RawEventTail header delimiter

RawEventTail header delimiter

RawEventTail header delimiter

Definition at line 60 of file RawEventTailV0.cpp.

References allTimeWatchdog::endl, EXECUTE_FUNCTION, novadaq::HexUtils::format(), MECModelEnuComparisons::i, and sizeofdata().

60  {
61  os<<boost::format("\nRawEvent Tail version %d :") % EXECUTE_FUNCTION(getVersion)();
62  os<<boost::format(" Marker=%u" ) % EXECUTE_FUNCTION(getMarker)(); //! RawEventTail header delimiter
63  os<<boost::format(" EventNumberLo=%u" ) % EXECUTE_FUNCTION(getEventNumberLo)();
64  os<<boost::format(" EventNumberHi=%u" ) % EXECUTE_FUNCTION(getEventNumberHi)();
65  os<<boost::format(" MarkerLeft=%u" ) % EXECUTE_FUNCTION(getMarkerLeft)(); //! RawEventTail header delimiter
66  os<<boost::format(" MarkerRight=%u" ) % EXECUTE_FUNCTION(getMarkerRight)(); //! RawEventTail header delimiter
67  os<<boost::format(" EventSize=%u" ) % EXECUTE_FUNCTION(getEventSize)();
68 
69  const uint32_t size_of_data = EXECUTE_FUNCTION(sizeofdata)();
70 
71  os<<"\nRAW:";
72  for(uint32_t i = 0; i < size_of_data; ++i){
73  os<<" ";
74  printWord(i,false, os);
75  }
76 
77  os<<"\nRAW:";
78  for(uint32_t i = 0; i < size_of_data; ++i){
79  os<<std::endl;
80  printWord(i,true, os);
81  }
82 
83 }
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
std::string format(const int32_t &value, const int &ndigits=8)
Definition: HexUtils.cpp:14
void* daqdataformats::VERSION_NAMESPACE::RawEventTail::readData ( const void pointer)
inline

Definition at line 76 of file RawEventTailV0.h.

References IMPLEMENT_FIRST_GET_AND_SET, and daqdataformats::RawDAQData::readDataGeneral().

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

76 {return RawDAQData::readDataGeneral(pointer);};
void * readDataGeneral(const void *buffer)
General ReadData method when the sizeofdata is known.
Definition: RawDAQData.cpp:186
uint32_t daqdataformats::VERSION_NAMESPACE::RawEventTail::sizeofdata ( ) const
inline

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