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

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

Inheritance diagram for daqdataformats::TimingMarkerConstructor:
daqdataformats::RawDAQDataConstructor

Public Member Functions

 TimingMarkerConstructor ()
 
 ~TimingMarkerConstructor ()
 
 DEFINE_TESTVALUE (LowWord)
 
 DEFINE_TESTVALUE (HighWord)
 
 DEFINE_TESTVALUE_64 (Time)
 
daqdataformats::RawDAQDatagetFilledDataFormat (const version_t) const
 
daqdataformats::RawDAQDatagetEmptyDataFormat (const version_t) const
 method to create an empty dataformat with a given version More...
 
bool fillDataFormat (daqdataformats::RawDAQData *) const
 method to Fill the input dataformat More...
 
virtual version_t getVersion (const daqdataformats::RawDAQData *) const
 Get version of the input dataformat. More...
 
version_t getMaximumVersion () const
 Get maximum version for the dataformat. More...
 

Protected Member Functions

uint32_t boolToUint32_t (const bool number) const
 Bool to uint abd backwards conversions. More...
 
bool uint32_tToBool (const uint32_t number) const
 

Protected Attributes

version_t _maximumVersion
 Maximum version of the dataformat. More...
 

Detailed Description

Definition at line 23 of file TimingMarkerConstructor.h.

Constructor & Destructor Documentation

daqdataformats::TimingMarkerConstructor::TimingMarkerConstructor ( )

Definition at line 12 of file TimingMarkerConstructor.cpp.

12 { }
daqdataformats::TimingMarkerConstructor::~TimingMarkerConstructor ( )

Definition at line 15 of file TimingMarkerConstructor.cpp.

15 { }

Member Function Documentation

uint32_t daqdataformats::RawDAQDataConstructor::boolToUint32_t ( const bool  number) const
inlineprotectedinherited

Bool to uint abd backwards conversions.

Definition at line 156 of file RawDAQDataConstructor.h.

156 { return ((number) ? 1 : 0); }
daqdataformats::TimingMarkerConstructor::DEFINE_TESTVALUE ( LowWord  )
daqdataformats::TimingMarkerConstructor::DEFINE_TESTVALUE ( HighWord  )
daqdataformats::TimingMarkerConstructor::DEFINE_TESTVALUE_64 ( Time  )
bool daqdataformats::TimingMarkerConstructor::fillDataFormat ( daqdataformats::RawDAQData ) const
virtual

method to Fill the input dataformat

Implements daqdataformats::RawDAQDataConstructor.

Definition at line 30 of file TimingMarkerConstructor.cpp.

Referenced by getFilledDataFormat().

30  {
32  setFieldToTestValue_LowWord(TimingMarker);
33  setFieldToTestValue_HighWord(TimingMarker);
34  setFieldToTestValue_Time(TimingMarker);
35  return true;
36 }
Class to hold the timing markers used in the construction of Microslices in the DCMs.
daqdataformats::RawDAQData * daqdataformats::TimingMarkerConstructor::getEmptyDataFormat ( const version_t  ) const
virtual

method to create an empty dataformat with a given version

Implements daqdataformats::RawDAQDataConstructor.

Definition at line 25 of file TimingMarkerConstructor.cpp.

Referenced by getFilledDataFormat(), and daqdataformats::TimingMarkerUnitTest::~TimingMarkerUnitTest().

25  {
27 }
Class to hold the timing markers used in the construction of Microslices in the DCMs.
daqdataformats::RawDAQData * daqdataformats::TimingMarkerConstructor::getFilledDataFormat ( const version_t  ) const
virtual

method to create a filled dataformat with a given version

Implements daqdataformats::RawDAQDataConstructor.

Definition at line 18 of file TimingMarkerConstructor.cpp.

References fillDataFormat(), getEmptyDataFormat(), and confusionMatrixTree::out.

18  {
19  RawTimingMarker* out = (RawTimingMarker*)getEmptyDataFormat(-1);
20  fillDataFormat(out);
21  return out;
22 }
bool fillDataFormat(daqdataformats::RawDAQData *) const
method to Fill the input dataformat
daqdataformats::RawDAQData * getEmptyDataFormat(const version_t) const
method to create an empty dataformat with a given version
version_t daqdataformats::RawDAQDataConstructor::getMaximumVersion ( ) const
inlineinherited

Get maximum version for the dataformat.

Definition at line 152 of file RawDAQDataConstructor.h.

References daqdataformats::RawDAQDataConstructor::_maximumVersion.

152 {return _maximumVersion;}
version_t _maximumVersion
Maximum version of the dataformat.
virtual version_t daqdataformats::RawDAQDataConstructor::getVersion ( const daqdataformats::RawDAQData ) const
inlinevirtualinherited

Get version of the input dataformat.

Reimplemented in daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::RunHeaderConstructor, daqdataformats::MilliSliceHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::DataBlockHeaderConstructor, daqdataformats::TriggerHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::TriggerMaskConstructor, daqdataformats::TriggerTimeConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationSystemIDConstructor, daqdataformats::TriggerTimingMarkerConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::EventTailConstructor, daqdataformats::TriggerConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationNameConstructor, daqdataformats::DataBlockConstructor, daqdataformats::EventConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockHeaderConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationTailConstructor, daqdataformats::TriggerRangeConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::MicroBlockConstructor, daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::ConfigurationBlockConstructor, and daqdataformats::MilliSliceConstructor.

Definition at line 149 of file RawDAQDataConstructor.h.

149 { return -1;}
bool daqdataformats::RawDAQDataConstructor::uint32_tToBool ( const uint32_t  number) const
inlineprotectedinherited

Definition at line 157 of file RawDAQDataConstructor.h.

157 { return ((number) ? true : false); }

Member Data Documentation

version_t daqdataformats::RawDAQDataConstructor::_maximumVersion
protectedinherited

Maximum version of the dataformat.

Definition at line 162 of file RawDAQDataConstructor.h.

Referenced by daqdataformats::RawDAQDataConstructor::getMaximumVersion().


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