00001 #ifndef ARTDAQ_DAQDATA_GLOBALS_HH
00002 #define ARTDAQ_DAQDATA_GLOBALS_HH
00003
00004 #include "artdaq/DAQdata/configureMessageFacility.hh"
00005 #include "tracemf.h"
00006 #include <sstream>
00007 #include "artdaq-utilities/Plugins/MetricManager.hh"
00008
00009 #define my_rank artdaq::Globals::my_rank_
00010 #define metricMan artdaq::Globals::metricMan_
00011
00012
00013 #define DATA_RECV 5
00014 #define DATA_SEND 6
00015 #define TRANSFER_SEND1 7
00016 #define TRANSFER_SEND2 8
00017 #define TRANSFER_RECEIVE1 9
00018 #define TRANSFER_RECEIVE2 10
00019
00023 namespace artdaq
00024 {
00028 class Globals
00029 {
00030 public:
00031 static int my_rank_;
00032 static MetricManager* metricMan_;
00033
00039 static double timevalAsDouble(struct timeval tv);
00040 };
00041 }
00042
00043 #endif // ARTDAQ_DAQDATA_GLOBALS_HH