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

Class that contains the timing information relating to a given trigger. More...

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

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker:

Public Member Functions

 RawTriggerTimingMarker (const version_t)
 The default constructor. More...
 
 RawTriggerTimingMarker (const RawTriggerTimingMarker &)
 
 ~RawTriggerTimingMarker ()
 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 (Version, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TriggerStartLow_baseClock, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TriggerStartHigh_baseClock, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TriggerStartLow_833kHz, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TriggerStartHigh_833kHz, uint32_t)
 
 INIT_FIRST (getTriggerStart_baseClock, const, uint64_t,)
 
 INIT_FIRST (setTriggerStart_baseClock,, bool, const uint64_t)
 
 INIT_FIRST (getTriggerStart_833kHz, const, uint64_t,)
 
 INIT_FIRST (setTriggerStart_833kHz,, bool, const uint64_t)
 

Detailed Description

Class that contains the timing information relating to a given trigger.

The RawTriggerTimingMarkerV0 contains the start indicator for data collection.

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 63 of file RawTriggerTimingMarkerV0.h.

Constructor & Destructor Documentation

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

The default constructor.

Definition at line 23 of file RawTriggerTimingMarkerV0.cpp.

23  :
24  PREVIOUS_VERSION_CLASS_NAME(version)
25  ,ZEROOUT_GET_AND_SET(Version )
26  ,ZEROOUT_GET_AND_SET(TriggerStartLow_baseClock)
27  ,ZEROOUT_GET_AND_SET(TriggerStartHigh_baseClock)
28  ,ZEROOUT_GET_AND_SET(TriggerStartLow_833kHz )
29  ,ZEROOUT_GET_AND_SET(TriggerStartHigh_833kHz )
30  ,ZEROOUT_GET_AND_SET(TriggerStart_baseClock)
31  ,ZEROOUT_GET_AND_SET(TriggerStart_833kHz )
32 {}
#define ZEROOUT_GET_AND_SET(FUNC)
Definition: FunctionBind.h:56
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::RawTriggerTimingMarker ( const RawTriggerTimingMarker copyin)

Definition at line 35 of file RawTriggerTimingMarkerV0.cpp.

35  :
36  PREVIOUS_VERSION_CLASS_NAME(copyin)
37  ,DEEPCOPY_GET_AND_SET(Version )
38  ,DEEPCOPY_GET_AND_SET(TriggerStartLow_baseClock)
39  ,DEEPCOPY_GET_AND_SET(TriggerStartHigh_baseClock)
40  ,DEEPCOPY_GET_AND_SET(TriggerStartLow_833kHz )
41  ,DEEPCOPY_GET_AND_SET(TriggerStartHigh_833kHz )
42  ,DEEPCOPY_GET_AND_SET(TriggerStart_baseClock)
43  ,DEEPCOPY_GET_AND_SET(TriggerStart_833kHz )
44 {}
#define DEEPCOPY_GET_AND_SET(FUNC)
Definition: FunctionBind.h:44
daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::~RawTriggerTimingMarker ( )

Destructor.

Definition at line 47 of file RawTriggerTimingMarkerV0.cpp.

47 {}

Member Function Documentation

daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::IMPLEMENT_FIRST_GET_AND_SET ( TriggerStartLow_baseClock  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::IMPLEMENT_FIRST_GET_AND_SET ( TriggerStartHigh_baseClock  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::IMPLEMENT_FIRST_GET_AND_SET ( TriggerStartLow_833kHz  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::IMPLEMENT_FIRST_GET_AND_SET ( TriggerStartHigh_833kHz  ,
uint32_t   
)
void daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::init ( )

Definition at line 51 of file RawTriggerTimingMarkerV0.cpp.

References samweb_client.client::_version, EXECUTE_FUNCTION, RETURN_FUNCTION, and submit_nova_art::timestamp.

Referenced by demo.App::__init__(), testem0.App::__init__(), Lesson1.App::__init__(), and ExN03.App::__init__().

51  {
52  EXECUTE_FUNCTION(setVersion)(_version);
53 }
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::INIT_FIRST ( getTriggerStart_baseClock  ,
const  ,
uint64_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::INIT_FIRST ( setTriggerStart_baseClock  ,
bool  ,
const uint64_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::INIT_FIRST ( getTriggerStart_833kHz  ,
const  ,
uint64_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::INIT_FIRST ( setTriggerStart_833kHz  ,
bool  ,
const uint64_t   
)
void daqdataformats::VERSION_NAMESPACE::RawTriggerTimingMarker::print ( std::ostream &  os = std::cout) const

Definition at line 90 of file RawTriggerTimingMarkerV0.cpp.

References EXECUTE_FUNCTION, novadaq::HexUtils::format(), and makeTrainCVSamples::int.

90  {
91 
92  os<<"++++ Trigger Timing Marker ++++\n";
93 
94  printBuffer(os);
95 
96  os<<boost::format("Trigger Timing Marker Version:\t%u\n")%EXECUTE_FUNCTION(getVersion)();
97  os<<boost::format("Start Low Nova Clock:\t\t%u\n")%EXECUTE_FUNCTION(getTriggerStartLow_baseClock)();
98  os<<boost::format("Start High Nova Clock:\t\t%u\n")%EXECUTE_FUNCTION(getTriggerStartHigh_baseClock)();
99  os<<boost::format("Full Nova Clock:\t\t%Lu\n")%(long long unsigned int)EXECUTE_FUNCTION(getTriggerStart_baseClock)();
100  //os<<boost::format("Start Time:\t\t%s\n")%novadaq::timeutils::convertNovaTimeToString(getTriggerStart_baseClock()).c_str();
101  os<<boost::format("Extraction Start Low:\t\t%u\n")%EXECUTE_FUNCTION(getTriggerStartLow_833kHz)();
102  os<<boost::format("Extraction Start High:\t\t%u\n")%EXECUTE_FUNCTION(getTriggerStartHigh_833kHz)();
103 
104 }
#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::RawTriggerTimingMarker::readData ( const void pointer)
inline

Definition at line 77 of file RawTriggerTimingMarkerV0.h.

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

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

77 {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::RawTriggerTimingMarker::sizeofdata ( ) const
inline

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