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/"

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  :
25  ,ZEROOUT_GET_AND_SET(Version )
26  ,ZEROOUT_GET_AND_SET(TriggerLength)
27 {}
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  :
33  ,DEEPCOPY_GET_AND_SET(TriggerLength)
34 {}
Definition: FunctionBind.h:44
daqdataformats::VERSION_NAMESPACE::RawTriggerRange::~RawTriggerRange ( )


Definition at line 37 of file RawTriggerRangeV0.cpp.

37 {}

Member Function Documentation

daqdataformats::VERSION_NAMESPACE::RawTriggerRange::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
daqdataformats::VERSION_NAMESPACE::RawTriggerRange::IMPLEMENT_FIRST_GET_AND_SET ( TriggerLength  ,
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 }
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  {
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 }
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)

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

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