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

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

Inheritance diagram for daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor:
daqdataformats::RawDAQDataConstructor

Public Member Functions

 NanoSliceHeaderConstructor ()
 
 ~NanoSliceHeaderConstructor ()
 
 DEFINE_TESTVALUE_BOOL (LinkStatus)
 
 DEFINE_TESTVALUE_BOOL (DataPresent)
 
 DEFINE_TESTVALUE_BOOL (DebugMode)
 
 DEFINE_TESTVALUE (FEBId)
 
 DEFINE_TESTVALUE (FEBStatus)
 
 DEFINE_TESTVALUE (PixelAddr)
 
 DEFINE_TESTVALUE (Sequence)
 
 DEFINE_TESTVALUE (Pad3)
 
 DEFINE_TESTVALUE_BOOL (DAQEnabled)
 
 DEFINE_TESTVALUE_BOOL (BufferEmpty)
 
 DEFINE_TESTVALUE_BOOL (BufferFull)
 
 DEFINE_TESTVALUE_BOOL (CommError)
 
 DEFINE_TESTVALUE_BOOL (PacketError)
 
 DEFINE_TESTVALUE_BOOL (OverflowError)
 
 DEFINE_TESTVALUE_BOOL (ADCError)
 
daqdataformats::RawDAQDatagetFilledDataFormat (const daqdataformats::version_t) const
 
daqdataformats::RawDAQDatagetEmptyDataFormat (const daqdataformats::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...
 
version_t getVersion (const daqdataformats::RawDAQData *inver) 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 49 of file NanoSliceHeaderConstructor.h.

Constructor & Destructor Documentation

daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::NanoSliceHeaderConstructor ( )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::~NanoSliceHeaderConstructor ( )

Definition at line 32 of file NanoSliceHeaderConstructor.cpp.

32 { }

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::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE ( FEBId  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE ( FEBStatus  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE ( PixelAddr  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE ( Sequence  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE ( Pad3  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE_BOOL ( LinkStatus  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE_BOOL ( DataPresent  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE_BOOL ( DebugMode  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE_BOOL ( DAQEnabled  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE_BOOL ( BufferEmpty  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE_BOOL ( BufferFull  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE_BOOL ( CommError  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE_BOOL ( PacketError  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE_BOOL ( OverflowError  )
daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::DEFINE_TESTVALUE_BOOL ( ADCError  )
bool daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::fillDataFormat ( daqdataformats::RawDAQData ) const
virtual

method to Fill the input dataformat

Implements daqdataformats::RawDAQDataConstructor.

Definition at line 47 of file NanoSliceHeaderConstructor.cpp.

Referenced by getFilledDataFormat().

47  {
49  setFieldToTestValue_LinkStatus(nanoslice);
50  setFieldToTestValue_DataPresent(nanoslice);
51  setFieldToTestValue_DebugMode(nanoslice);
52  setFieldToTestValue_FEBId(nanoslice);
53  setFieldToTestValue_FEBStatus(nanoslice);
54  setFieldToTestValue_PixelAddr(nanoslice);
55  setFieldToTestValue_Sequence(nanoslice);
56  setFieldToTestValue_Pad3(nanoslice);
57  setFieldToTestValue_DAQEnabled(nanoslice);
58  setFieldToTestValue_BufferEmpty(nanoslice);
59  setFieldToTestValue_BufferFull(nanoslice);
60  setFieldToTestValue_CommError(nanoslice);
61  setFieldToTestValue_PacketError(nanoslice);
62  setFieldToTestValue_OverflowError(nanoslice);
63  setFieldToTestValue_ADCError(nanoslice);
64  return true;
65 }
daqdataformats::RawDAQData * daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::getEmptyDataFormat ( const daqdataformats::version_t  ) const
virtual

method to create an empty dataformat with a given version

Implements daqdataformats::RawDAQDataConstructor.

Definition at line 42 of file NanoSliceHeaderConstructor.cpp.

Referenced by getFilledDataFormat().

daqdataformats::RawDAQData * daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::getFilledDataFormat ( const daqdataformats::version_t  ) const
virtual

method to create a filled dataformat with a given version

Implements daqdataformats::RawDAQDataConstructor.

Definition at line 35 of file NanoSliceHeaderConstructor.cpp.

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

35  {
36  RawNanoSliceHeader* out = (RawNanoSliceHeader*)getEmptyDataFormat(ver);
37  fillDataFormat(out);
38  return out;
39 }
bool fillDataFormat(daqdataformats::RawDAQData *) const
method to Fill the input dataformat
daqdataformats::RawDAQData * getEmptyDataFormat(const daqdataformats::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.
version_t daqdataformats::CURRENT_FIELDS_SUB_NAMESPACE::NanoSliceHeaderConstructor::getVersion ( const daqdataformats::RawDAQData ) const
inlinevirtual

Get version of the input dataformat.

Reimplemented from daqdataformats::RawDAQDataConstructor.

Definition at line 72 of file NanoSliceHeaderConstructor.h.

72  {
73  const RawNanoSliceHeader* nano_ver = (const RawNanoSliceHeader*)inver;
74  return nano_ver->getVersion();
75  }
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: