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

Class to hold the data corresponding to the trigger mask. More...

#include "/cvmfs/nova-development.opensciencegrid.org/novasoft/releases/N20-12-03/DAQDataFormats/cxx/include/RawTriggerMaskV0.h"

Inheritance diagram for daqdataformats::VERSION_NAMESPACE::RawTriggerMask:

Public Member Functions

 RawTriggerMask (const version_t)
 The default constructor. More...
 
 RawTriggerMask (const RawTriggerMask &)
 
 ~RawTriggerMask ()
 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 (MonteCarloFlag, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TrigMod, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TrigMask_Low, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TrigMask_High, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (TrigMask_High2, uint32_t)
 
 IMPLEMENT_FIRST_GET_AND_SET (Prescale, uint32_t)
 
 INIT_FIRST (getTriggerMask, const, uint32_t,)
 
 INIT_FIRST (setTriggerMask,, bool, const uint32_t)
 

Detailed Description

Class to hold the data corresponding to the trigger mask.

The RawTriggerMaskV0 contains the information on the type of trigger that is being issued.

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 68 of file RawTriggerMaskV0.h.

Constructor & Destructor Documentation

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

The default constructor.

Definition at line 23 of file RawTriggerMaskV0.cpp.

23  :
24  PREVIOUS_VERSION_CLASS_NAME(version)
25  ,ZEROOUT_GET_AND_SET(Version )
26  ,ZEROOUT_GET_AND_SET(MonteCarloFlag)
27  ,ZEROOUT_GET_AND_SET(TrigMod )
28  ,ZEROOUT_GET_AND_SET(TrigMask_Low )
29  ,ZEROOUT_GET_AND_SET(TrigMask_High )
30  ,ZEROOUT_GET_AND_SET(TrigMask_High2)
31  ,ZEROOUT_GET_AND_SET(Prescale )
33 {}
#define ZEROOUT_GET_AND_SET(FUNC)
Definition: FunctionBind.h:56
const XML_Char * version
Definition: expat.h:187
daqdataformats::VERSION_NAMESPACE::RawTriggerMask::RawTriggerMask ( const RawTriggerMask copyin)

Definition at line 36 of file RawTriggerMaskV0.cpp.

36  :
37  PREVIOUS_VERSION_CLASS_NAME(copyin)
38  ,DEEPCOPY_GET_AND_SET(Version )
39  ,DEEPCOPY_GET_AND_SET(MonteCarloFlag)
40  ,DEEPCOPY_GET_AND_SET(TrigMod )
41  ,DEEPCOPY_GET_AND_SET(TrigMask_Low )
42  ,DEEPCOPY_GET_AND_SET(TrigMask_High )
43  ,DEEPCOPY_GET_AND_SET(TrigMask_High2)
44  ,DEEPCOPY_GET_AND_SET(Prescale )
46 {}
#define DEEPCOPY_GET_AND_SET(FUNC)
Definition: FunctionBind.h:44
daqdataformats::VERSION_NAMESPACE::RawTriggerMask::~RawTriggerMask ( )

Destructor.

Definition at line 49 of file RawTriggerMaskV0.cpp.

49 {}

Member Function Documentation

daqdataformats::VERSION_NAMESPACE::RawTriggerMask::IMPLEMENT_FIRST_GET_AND_SET ( Version  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerMask::IMPLEMENT_FIRST_GET_AND_SET ( MonteCarloFlag  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerMask::IMPLEMENT_FIRST_GET_AND_SET ( TrigMod  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerMask::IMPLEMENT_FIRST_GET_AND_SET ( TrigMask_Low  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerMask::IMPLEMENT_FIRST_GET_AND_SET ( TrigMask_High  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerMask::IMPLEMENT_FIRST_GET_AND_SET ( TrigMask_High2  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerMask::IMPLEMENT_FIRST_GET_AND_SET ( Prescale  ,
uint32_t   
)
void daqdataformats::VERSION_NAMESPACE::RawTriggerMask::init ( )

Definition at line 53 of file RawTriggerMaskV0.cpp.

References samweb_client.client::_version, EXECUTE_FUNCTION, GENERATE_DATAFORMAT_EXCEPTION, lem_server::mask, lem_server::msg, RETURN_FUNCTION, string, and x1.

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

53  {
54  EXECUTE_FUNCTION(setVersion)(_version);
55 }
#define EXECUTE_FUNCTION(FULLFUNCTIONNAME)
Execute and return the delegate.
Definition: Macros.h:54
daqdataformats::VERSION_NAMESPACE::RawTriggerMask::INIT_FIRST ( getTriggerMask  ,
const  ,
uint32_t   
)
daqdataformats::VERSION_NAMESPACE::RawTriggerMask::INIT_FIRST ( setTriggerMask  ,
bool  ,
const uint32_t   
)
void daqdataformats::VERSION_NAMESPACE::RawTriggerMask::print ( std::ostream &  os = std::cout) const

Definition at line 195 of file RawTriggerMaskV0.cpp.

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

195  {
196 
197  os<<"++++ Trigger Mask ++++\n";
198  os<<boost::format("Trigger Mask Version:\t%u\n") % EXECUTE_FUNCTION(getVersion)();
199  os<<boost::format("Monte Carlo:\t\t%s\n" ) %(EXECUTE_FUNCTION(getMonteCarloFlag)()? "True" : "False");
200  os<<boost::format("Trigger Modification:\t0x%02x\n") % EXECUTE_FUNCTION(getTrigMod)();
201  os<<boost::format("Trigger Types low:\t0x%08x\n" ) % EXECUTE_FUNCTION(getTrigMask_Low)();
202  os<<boost::format("Trigger Types mid:\t0x%08x\n" ) % EXECUTE_FUNCTION(getTrigMask_High)();
203  os<<boost::format("Trigger Types high:\t0x%08x\n" ) % EXECUTE_FUNCTION(getTrigMask_High2)();
204  os<<boost::format("Trigger Type:\t\t%u\n" ) % EXECUTE_FUNCTION(getTriggerMask)();
205  os<<boost::format("Trigger prescale:\t%u\n" ) % EXECUTE_FUNCTION(getPrescale)();
206  PRINT_ON_DEBUG("Buffer is set to "<<_Buffer);
207 }
#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::RawTriggerMask::readData ( const void pointer)
inline

Definition at line 82 of file RawTriggerMaskV0.h.

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

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

82 {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::RawTriggerMask::sizeofdata ( ) const
inline

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