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

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

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

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawTriggerHeader:

Public Member Functions

 RawTriggerHeader (const version_t)
 The default constructor. More...
 
 RawTriggerHeader (const RawTriggerHeader &)
 
 ~RawTriggerHeader ()
 Destructor. More...
 
void init ()
 
void print (std::ostream &os=std::cout) const
 
uint32_t sizeofdata () const
 
voidreadData (const void *pointer)
 
 IMPLEMENT_FIRST_GET_AND_SET (Delimiter, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (Version, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (HWFlag, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (Source, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (SourceID, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (SourceSubID, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TriggerNumberLow, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TriggerNumberHigh, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (MasterTriggerNumberLow, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (MasterTriggerNumberHigh, uint32_t)
 
 INIT_FIRST (getMasterTriggerNumber, const, uint64_t,)
 
 INIT_FIRST (setMasterTriggerNumber,, bool, const uint64_t)
 
 INIT_FIRST (getTriggerNumber, const, uint64_t,)
 
 INIT_FIRST (setTriggerNumber,, bool, const uint64_t)
 
 RawTriggerHeader (const version_t)
 The default constructor. More...
 
 RawTriggerHeader (const RawTriggerHeader &)
 
 ~RawTriggerHeader ()
 Destructor. More...
 
 RawTriggerHeader (const version_t)
 The default constructor. More...
 
 RawTriggerHeader (const RawTriggerHeader &)
 
 ~RawTriggerHeader ()
 Destructor. More...
 

Detailed Description

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

The RawTriggerHeaderV0 contains the basic information required to reconstruct where and how the trigger was generated.

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

The RawTriggerHeaderV1 contains the basic information required to reconstruct where and how the trigger was generated.

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 79 of file RawTriggerHeaderV0.h.

Constructor & Destructor Documentation

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

The default constructor.

Definition at line 22 of file RawTriggerHeaderV0.cpp.

22  :
23  PREVIOUS_VERSION_CLASS_NAME(version)
24  ,ZEROOUT_GET_AND_SET(Delimiter )
25  ,ZEROOUT_GET_AND_SET(Version )
26  ,ZEROOUT_GET_AND_SET(HWFlag )
27  ,ZEROOUT_GET_AND_SET(Source )
28  ,ZEROOUT_GET_AND_SET(SourceID )
29  ,ZEROOUT_GET_AND_SET(SourceSubID )
30  ,ZEROOUT_GET_AND_SET(TriggerNumberLow )
31  ,ZEROOUT_GET_AND_SET(TriggerNumberHigh )
32  ,ZEROOUT_GET_AND_SET(MasterTriggerNumberLow )
33  ,ZEROOUT_GET_AND_SET(MasterTriggerNumberHigh)
34  ,ZEROOUT_GET_AND_SET(MasterTriggerNumber)
35  ,ZEROOUT_GET_AND_SET(TriggerNumber)
36 {}
#define ZEROOUT_GET_AND_SET(FUNC)
Definition: FunctionBind.h:56
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::RawTriggerHeader ( const RawTriggerHeader copyin)

Definition at line 39 of file RawTriggerHeaderV0.cpp.

39  :
40  PREVIOUS_VERSION_CLASS_NAME(copyin)
41  ,DEEPCOPY_GET_AND_SET(Delimiter )
42  ,DEEPCOPY_GET_AND_SET(Version )
43  ,DEEPCOPY_GET_AND_SET(HWFlag )
44  ,DEEPCOPY_GET_AND_SET(Source )
45  ,DEEPCOPY_GET_AND_SET(SourceID )
46  ,DEEPCOPY_GET_AND_SET(SourceSubID )
47  ,DEEPCOPY_GET_AND_SET(TriggerNumberLow )
48  ,DEEPCOPY_GET_AND_SET(TriggerNumberHigh )
49  ,DEEPCOPY_GET_AND_SET(MasterTriggerNumberLow )
50  ,DEEPCOPY_GET_AND_SET(MasterTriggerNumberHigh)
51  ,DEEPCOPY_GET_AND_SET(MasterTriggerNumber)
52  ,DEEPCOPY_GET_AND_SET(TriggerNumber)
53 {}
#define DEEPCOPY_GET_AND_SET(FUNC)
Definition: FunctionBind.h:44
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::~RawTriggerHeader ( )

Destructor.

Definition at line 56 of file RawTriggerHeaderV0.cpp.

56 { }
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::RawTriggerHeader ( const version_t  )

The default constructor.

daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::RawTriggerHeader ( const RawTriggerHeader )
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::~RawTriggerHeader ( )

Destructor.

daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::RawTriggerHeader ( const version_t  )

The default constructor.

daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::RawTriggerHeader ( const RawTriggerHeader )
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::~RawTriggerHeader ( )

Destructor.

Member Function Documentation

daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::IMPLEMENT_FIRST_GET_AND_SET ( Delimiter  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::IMPLEMENT_FIRST_GET_AND_SET ( HWFlag  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::IMPLEMENT_FIRST_GET_AND_SET ( Source  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::IMPLEMENT_FIRST_GET_AND_SET ( SourceID  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::IMPLEMENT_FIRST_GET_AND_SET ( SourceSubID  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::IMPLEMENT_FIRST_GET_AND_SET ( TriggerNumberLow  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::IMPLEMENT_FIRST_GET_AND_SET ( TriggerNumberHigh  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::IMPLEMENT_FIRST_GET_AND_SET ( MasterTriggerNumberLow  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::IMPLEMENT_FIRST_GET_AND_SET ( MasterTriggerNumberHigh  ,
uint32_t   
)
void daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::init ( )
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::INIT_FIRST ( getMasterTriggerNumber  ,
const  ,
uint64_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::INIT_FIRST ( setMasterTriggerNumber  ,
bool  ,
const uint64_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::INIT_FIRST ( getTriggerNumber  ,
const  ,
uint64_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::INIT_FIRST ( setTriggerNumber  ,
bool  ,
const uint64_t   
)
void daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::print ( std::ostream &  os = std::cout) const

Definition at line 97 of file RawTriggerHeaderV0.cpp.

References EXECUTE_FUNCTION, novadaq::HexUtils::format(), and PRINT_ON_DEBUG.

97  {
98 
99  os<<"++++ Trigger Header ++++\n";
100  os<<boost::format("Trigger Delimiter:\t0x%04x\n")%EXECUTE_FUNCTION(getDelimiter)();
101  os<<boost::format("Trigger Version:\t%u\n")%EXECUTE_FUNCTION(getVersion)();
102  os<<boost::format("Hardware Flag:\t\t%u\n")%EXECUTE_FUNCTION(getHWFlag)();
103  os<<boost::format("Trigger Source:\t\t%u\n")%EXECUTE_FUNCTION(getSource)();
104  os<<boost::format("Trigger Source ID:\t%u\n")%EXECUTE_FUNCTION(getSourceID)();
105  os<<boost::format("Trigger Source Sub ID:\t%u\n")%EXECUTE_FUNCTION(getSourceSubID)();
106  os<<boost::format("Trigger Number Low:\t%u\n")%EXECUTE_FUNCTION(getTriggerNumberLow)();
107  os<<boost::format("Trigger Number High:\t%u\n")%EXECUTE_FUNCTION(getTriggerNumberHigh)();
108  os<<boost::format("Master Trig Num Low:\t%u\n")%EXECUTE_FUNCTION(getMasterTriggerNumberLow)();
109  os<<boost::format("Master Trig Num High:\t%u\n")%EXECUTE_FUNCTION(getMasterTriggerNumberHigh)();
110  PRINT_ON_DEBUG("Buffer is set to "<<_Buffer);
111 }
#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
#define PRINT_ON_DEBUG(x)
Definition: RawDAQData.h:35
void* daqdataformats::VERSION_NAMESPACE::RawTriggerHeader::readData ( const void pointer)
inline

Definition at line 94 of file RawTriggerHeaderV0.h.

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

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

94 {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::RawTriggerHeader::sizeofdata ( ) const
inline

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