artdaq  v3_00_01
artdaq::Globals Class Reference

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 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.
 

Detailed Description

The artdaq::Globals class contains several variables which are useful across the entire artdaq system.

Definition at line 29 of file Globals.hh.

Member Function Documentation

static uint32_t artdaq::Globals::seedAndRandom_ ( )
inlinestatic

Seed the C random number generator with the current time (if that has not been done already) and generate a random value.

Returns
A random number.

Definition at line 40 of file Globals.hh.


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