artdaq  v2_02_03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Globals.hh
1 #ifndef ARTDAQ_DAQDATA_GLOBALS_HH
2 #define ARTDAQ_DAQDATA_GLOBALS_HH
3 
4 #include "artdaq/DAQdata/configureMessageFacility.hh"
5 #include "tracemf.h"
6 #include <sstream>
7 #include "artdaq-utilities/Plugins/MetricManager.hh"
8 
9 #define my_rank artdaq::Globals::my_rank_
10 #define metricMan artdaq::Globals::metricMan_
11 
12 // Trace Levels
13 #define DATA_RECV 5
14 #define DATA_SEND 6
15 #define TRANSFER_SEND1 7
16 #define TRANSFER_SEND2 8
17 #define TRANSFER_RECEIVE1 9
18 #define TRANSFER_RECEIVE2 10
19 
23 namespace artdaq
24 {
28  class Globals
29  {
30  public:
31  static int my_rank_;
32  static MetricManager* metricMan_;
33 
39  static double timevalAsDouble(struct timeval tv);
40  };
41 }
42 
43 #endif // ARTDAQ_DAQDATA_GLOBALS_HH
static int my_rank_
The rank of the current application.
Definition: Globals.hh:31
static MetricManager * metricMan_
A handle to MetricManager.
Definition: Globals.hh:32
static double timevalAsDouble(struct timeval tv)
Convert a timeval value to a double.
Definition: Globals.cc:6
The artdaq::Globals class contains several variables which are useful across the entire artdaq system...
Definition: Globals.hh:28