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

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

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader:

Public Member Functions

 RawNanoSliceHeader (const version_t)
 The default constructor. More...
 
 RawNanoSliceHeader (const RawNanoSliceHeader &)
 
 ~RawNanoSliceHeader ()
 Destructor. More...
 
bool advanceSequence ()
 
void init ()
 
void print (std::ostream &os=std::cout) const
 
uint32_t sizeofdata () const
 
voidreadData (const void *pointer)
 
 IMPLEMENT_GET_AND_SET_BOOL (DataPresent)
 
 IMPLEMENT_GET_AND_SET_BOOL (LinkStatus)
 
 IMPLEMENT_GET_AND_SET_BOOL (DebugMode)
 
 IMPLEMENT_GET_AND_SET_BOOL (DAQEnabled)
 
 IMPLEMENT_GET_AND_SET_BOOL (BufferEmpty)
 
 IMPLEMENT_GET_AND_SET_BOOL (BufferFull)
 
 IMPLEMENT_GET_AND_SET_BOOL (CommError)
 
 IMPLEMENT_GET_AND_SET_BOOL (PacketError)
 
 IMPLEMENT_GET_AND_SET_BOOL (OverflowError)
 
 IMPLEMENT_GET_AND_SET_BOOL (ADCError)
 
 IMPLEMENT_GET (Version, uint32_t)
 
 IMPLEMENT_GET_AND_SET (FEBId, uint32_t)
 
 IMPLEMENT_GET_AND_SET (FEBStatus, uint32_t)
 
 IMPLEMENT_GET_AND_SET (PixelAddr, uint32_t)
 
 IMPLEMENT_GET_AND_SET (Sequence, uint32_t)
 
 IMPLEMENT_GET_AND_SET (Pad3, uint32_t)
 
 RawNanoSliceHeader (const version_t)
 
 RawNanoSliceHeader (const RawNanoSliceHeader &)
 The default constructor. More...
 
 ~RawNanoSliceHeader ()
 Destructor. More...
 
 RawNanoSliceHeader (const version_t)
 
 RawNanoSliceHeader (const RawNanoSliceHeader &)
 The default constructor. More...
 
 ~RawNanoSliceHeader ()
 Destructor. More...
 
 RawNanoSliceHeader (const version_t)
 
 RawNanoSliceHeader (const RawNanoSliceHeader &)
 The default constructor. More...
 
 ~RawNanoSliceHeader ()
 Destructor. More...
 
 RawNanoSliceHeader (const version_t)
 
 RawNanoSliceHeader (const RawNanoSliceHeader &)
 The default constructor. More...
 
 ~RawNanoSliceHeader ()
 Destructor. More...
 
 RawNanoSliceHeader (const version_t)
 
 RawNanoSliceHeader (const RawNanoSliceHeader &)
 The default constructor. More...
 
 ~RawNanoSliceHeader ()
 Destructor. More...
 

Protected Member Functions

 IMPLEMENT_SET (Version, uint32_t)
 
 INIT_FIRST (initWithData,, void, const NanoSliceHeader &)
 
 INIT_FIRST (setParameters,, bool, const NanoSliceHeader &)
 

Detailed Description

Definition at line 103 of file RawNanoSliceHeaderV0.h.

Constructor & Destructor Documentation

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

The default constructor.

Definition at line 22 of file RawNanoSliceHeaderV0.cpp.

22  :
23  PREVIOUS_VERSION_CLASS_NAME(version)
24  /*
25  ,ZEROOUT_GET_AND_SET(FEBId)
26  ,ZEROOUT_GET_AND_SET(FEBStatus)
27  ,ZEROOUT_GET_AND_SET(PixelAddr)
28  ,ZEROOUT_GET_AND_SET(Sequence)
29  ,ZEROOUT_GET_AND_SET(Version)
30  ,ZEROOUT_GET_AND_SET(Pad3)
31  ,ZEROOUT_GET_AND_SET(DataPresent)
32  ,ZEROOUT_GET_AND_SET(LinkStatus)
33  ,ZEROOUT_GET_AND_SET(DebugMode)
34  ,ZEROOUT_GET_AND_SET(DAQEnabled)
35  ,ZEROOUT_GET_AND_SET(BufferEmpty)
36  ,ZEROOUT_GET_AND_SET(BufferFull)
37  ,ZEROOUT_GET_AND_SET(CommError)
38  ,ZEROOUT_GET_AND_SET(PacketError)
39  ,ZEROOUT_GET_AND_SET(OverflowError)
40  ,ZEROOUT_GET_AND_SET(ADCError)
41  */
42  ,ZEROOUT_FUNCTION(initWithData)
43  ,ZEROOUT_FUNCTION(setParameters)
44 {}
#define ZEROOUT_FUNCTION(FUNC)
Definition: FunctionBind.h:52
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const RawNanoSliceHeader copyin)

Definition at line 46 of file RawNanoSliceHeaderV0.cpp.

46  :
47  PREVIOUS_VERSION_CLASS_NAME(copyin)
48  /*
49  ,DEEPCOPY_GET_AND_SET(FEBId)
50  ,DEEPCOPY_GET_AND_SET(FEBStatus)
51  ,DEEPCOPY_GET_AND_SET(PixelAddr)
52  ,DEEPCOPY_GET_AND_SET(Sequence)
53  ,DEEPCOPY_GET_AND_SET(Version)
54  ,DEEPCOPY_GET_AND_SET(Pad3)
55  ,DEEPCOPY_GET_AND_SET(DataPresent)
56  ,DEEPCOPY_GET_AND_SET(LinkStatus)
57  ,DEEPCOPY_GET_AND_SET(DebugMode)
58  ,DEEPCOPY_GET_AND_SET(DAQEnabled)
59  ,DEEPCOPY_GET_AND_SET(BufferEmpty)
60  ,DEEPCOPY_GET_AND_SET(BufferFull)
61  ,DEEPCOPY_GET_AND_SET(CommError)
62  ,DEEPCOPY_GET_AND_SET(PacketError)
63  ,DEEPCOPY_GET_AND_SET(OverflowError)
64  ,DEEPCOPY_GET_AND_SET(ADCError)
65  */
66  ,DEEPCOPY_FUNCTION(initWithData)
67  ,DEEPCOPY_FUNCTION(setParameters)
68 {}
#define DEEPCOPY_FUNCTION(FUNC)
Definition: FunctionBind.h:40
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::~RawNanoSliceHeader ( )

Destructor.

Definition at line 71 of file RawNanoSliceHeaderV0.cpp.

71 { }
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const version_t  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const RawNanoSliceHeader )

The default constructor.

daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::~RawNanoSliceHeader ( )

Destructor.

daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const version_t  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const RawNanoSliceHeader )

The default constructor.

daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::~RawNanoSliceHeader ( )

Destructor.

daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const version_t  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const RawNanoSliceHeader )

The default constructor.

daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::~RawNanoSliceHeader ( )

Destructor.

daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const version_t  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const RawNanoSliceHeader )

The default constructor.

daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::~RawNanoSliceHeader ( )

Destructor.

daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const version_t  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::RawNanoSliceHeader ( const RawNanoSliceHeader )

The default constructor.

daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::~RawNanoSliceHeader ( )

Destructor.

Member Function Documentation

bool daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::advanceSequence ( )

Definition at line 122 of file RawNanoSliceHeaderV0.cpp.

123 {
124  //RETURN_FUNCTION(setSequence)(EXECUTE_FUNCTION(getSequence)() + 1);
125  return setSequence(getSequence() + 1);
126 }
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET ( Version  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET ( FEBId  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET ( FEBStatus  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET ( PixelAddr  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET ( Sequence  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET ( Pad3  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET_BOOL ( DataPresent  )

CAUTION!!!!! It is assume that these methods will be the same for all versions of NanoSlice Header

daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET_BOOL ( LinkStatus  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET_BOOL ( DebugMode  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET_BOOL ( DAQEnabled  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET_BOOL ( BufferEmpty  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET_BOOL ( BufferFull  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET_BOOL ( CommError  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET_BOOL ( PacketError  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET_BOOL ( OverflowError  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_GET_AND_SET_BOOL ( ADCError  )
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::IMPLEMENT_SET ( Version  ,
uint32_t   
)
protected
void daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::init ( )

Set version in the buffer

Set Pad3 in the buffer do the defalut value

Definition at line 75 of file RawNanoSliceHeaderV0.cpp.

References samweb_client.client::_version, daqdataformats::NanoSliceHeader::DataPresent, daqdataformats::NanoSliceHeader::DebugMode, EXECUTE_FUNCTION, daqdataformats::NanoSliceHeader::FEBLinkID, daqdataformats::NanoSliceHeader::FEBStatus, daqdataformats::NanoSliceHeader::FrameSequenceNumber, daqdataformats::NanoSliceHeader::LinkStatus, daqdataformats::VERSION_NAMESPACE::CURRENT_FIELDS_SUB_NAMESPACE::PAD3_DEFAULT_VALUE, pars(), daqdataformats::NanoSliceHeader::PixelAddress, and daqdataformats::NanoSliceHeader::Version.

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

75  {
76 
77  /// Set version in the buffer
78  //EXECUTE_FUNCTION(setVersion)(_version);
79  setVersion(_version);
80 
81  /// Set Pad3 in the buffer do the defalut value
82  //EXECUTE_FUNCTION(setPad3)(nanosliceheader::PAD3_DEFAULT_VALUE);
84 }
static const uint32_t PAD3_DEFAULT_VALUE
Default value for Pad3.
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::INIT_FIRST ( initWithData  ,
void  ,
const NanoSliceHeader  
)
protected
daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::INIT_FIRST ( setParameters  ,
bool  ,
const NanoSliceHeader  
)
protected
void daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::print ( std::ostream &  os = std::cout) const

Definition at line 130 of file RawNanoSliceHeaderV0.cpp.

References allTimeWatchdog::endl, and novadaq::HexUtils::format().

130  {
131 
132  os<<boost::format("NanoSlice Header: LS=%d DP=%d DM=%d FEBID=%u FEBSTAT=%u PIXEL=%u VERSION=%u SEQ=%u\n")
133  /*
134  % EXECUTE_FUNCTION(getLinkStatus)()
135  % EXECUTE_FUNCTION(getDataPresent)()
136  % EXECUTE_FUNCTION(getDebugMode)()
137  % EXECUTE_FUNCTION(getFEBId)()
138  % EXECUTE_FUNCTION(getFEBStatus)()
139  % EXECUTE_FUNCTION(getPixelAddr)()
140  % EXECUTE_FUNCTION(getVersion)()
141  % EXECUTE_FUNCTION(getSequence)();
142  */
143  % getLinkStatus()
144  % getDataPresent()
145  % getDebugMode()
146  % getFEBId()
147  % getFEBStatus()
148  % getPixelAddr()
149  % getVersion()
150  % getSequence();
151 
152  printBuffer(os);
153  os<<"RAW(binary):";
154  printWord(0,true, os);
155  os<<std::endl;
156 }// end of print1
std::string format(const int32_t &value, const int &ndigits=8)
Definition: HexUtils.cpp:14
void* daqdataformats::VERSION_NAMESPACE::RawNanoSliceHeader::readData ( const void pointer)
inline

Definition at line 116 of file RawNanoSliceHeaderV0.h.

References IMPLEMENT_GET, IMPLEMENT_GET_AND_SET, IMPLEMENT_GET_AND_SET_BOOL, IMPLEMENT_SET, INIT_FIRST, and daqdataformats::RawDAQData::readDataGeneral().

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

116 {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::RawNanoSliceHeader::sizeofdata ( ) const
inline

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