artdaq
v3_02_01
|
The artdaq::Globals class contains several variables which are useful across the entire artdaq system. More...
#include <artdaq/DAQdata/Globals.hh>
Static Public Member Functions | |
static uint32_t | seedAndRandom_ () |
Seed the C random number generator with the current time (if that has not been done already) and generate a random value. More... | |
static int | GetPartitionNumber () |
Get the current partition number, as defined by the ARTDAQ_PARTITION_NUMBER environment variable. More... | |
Static Public Attributes | |
static int | my_rank_ = -1 |
The rank of the current application. | |
static MetricManager * | metricMan_ = nullptr |
A handle to MetricManager. | |
static std::string | app_name_ = "" |
The name of the current application, to be used in logging and metrics. | |
static int | partition_number_ = -1 |
The partition number of the current application. | |
static std::string | mftrace_module_ = "DAQ" |
MessageFacility's module and iteration are thread-local, but we want to use them to represent global state in artdaq. | |
static std::string | mftrace_iteration_ = "Booted" |
MessageFacility's module and iteration are thread-local, but we want to use them to represent global state in artdaq. | |
The artdaq::Globals class contains several variables which are useful across the entire artdaq system.
Definition at line 31 of file Globals.hh.
|
inlinestatic |
Get the current partition number, as defined by the ARTDAQ_PARTITION_NUMBER environment variable.
Definition at line 72 of file Globals.hh.
|
inlinestatic |
Seed the C random number generator with the current time (if that has not been done already) and generate a random value.
Definition at line 46 of file Globals.hh.