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

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

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

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawTriggerRange:

Public Member Functions

 RawTriggerRange (const version_t)
 The default constructor. More...
 
 RawTriggerRange (const RawTriggerRange &)
 
 ~RawTriggerRange ()
 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 (TriggerLength, uint32_t)
 

Detailed Description

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

The RawTriggerRangeV0 contains the width of the trigger gate in 500 nsec units.

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 51 of file RawTriggerRangeV0.h.

Constructor & Destructor Documentation

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

The default constructor.

Definition at line 23 of file RawTriggerRangeV0.cpp.

23  :
24  PREVIOUS_VERSION_CLASS_NAME(version)
25  ,ZEROOUT_GET_AND_SET(Version )
26  ,ZEROOUT_GET_AND_SET(TriggerLength)
27 {}
#define ZEROOUT_GET_AND_SET(FUNC)
Definition: FunctionBind.h:56
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawTriggerRange::RawTriggerRange ( const RawTriggerRange copyin)

Definition at line 30 of file RawTriggerRangeV0.cpp.

30  :
31  PREVIOUS_VERSION_CLASS_NAME(copyin)
32  ,DEEPCOPY_GET_AND_SET(Version )
33  ,DEEPCOPY_GET_AND_SET(TriggerLength)
34 {}
#define DEEPCOPY_GET_AND_SET(FUNC)
Definition: FunctionBind.h:44
daqdataformats::VERSION_NAMESPACE::RawTriggerRange::~RawTriggerRange ( )

Destructor.

Definition at line 37 of file RawTriggerRangeV0.cpp.

37 {}

Member Function Documentation

daqdataformats::VERSION_NAMESPACE::RawTriggerRange::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerRange::IMPLEMENT_FIRST_GET_AND_SET ( TriggerLength  ,
uint32_t   
)
void daqdataformats::VERSION_NAMESPACE::RawTriggerRange::init ( )

Definition at line 41 of file RawTriggerRangeV0.cpp.

References samweb_client.client::_version, and EXECUTE_FUNCTION.

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

41  {
42  EXECUTE_FUNCTION(setVersion)(_version);
43 }
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
void daqdataformats::VERSION_NAMESPACE::RawTriggerRange::print ( std::ostream &  os = std::cout) const

Definition at line 46 of file RawTriggerRangeV0.cpp.

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

46  {
47 
48  os<<"++++ Trigger Range ++++\n";
49  os<<boost::format("Trigger Range Version:\t%u\n")%EXECUTE_FUNCTION(getVersion)();
50  os<<boost::format("Trigger range:\t\t%u\n")%EXECUTE_FUNCTION(getTriggerLength)();
51  PRINT_ON_DEBUG("Buffer is set to "<<_Buffer);
52 }
#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::RawTriggerRange::readData ( const void pointer)
inline

Definition at line 66 of file RawTriggerRangeV0.h.

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

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

66 {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::RawTriggerRange::sizeofdata ( ) const
inline

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