REDAC HybridController
Firmware for LUCIDAC/REDAC Teensy

#include <run.h>

Collaboration diagram for run::Run:

Public Member Functions

 Run (std::string id, const RunConfig &config, const daq::DAQConfig &daq_config)
 
 Run (std::string id, const RunConfig &config)
 
RunStateChange to (RunState new_state, unsigned int t=0)
 

Static Public Member Functions

static Run from_json (JsonObjectConst &json)
 

Public Attributes

const std::string id
 (User-provided) Supposed to be a UUID which allows to identify Out-of-band messages
 
RunConfig config
 (User-provided) timing requests
 
RunState state = RunState::NEW
 (System-steered)
 
daq::DAQConfig daq_config
 (User-provided) Data Aquisition request
 

Protected Attributes

std::queue< RunStateChange, std::array< RunStateChange, 7 > > history
 

Detailed Description

Definition at line 47 of file run.h.

Constructor & Destructor Documentation

◆ Run() [1/2]

FLASHMEM run::Run::Run ( std::string id,
const RunConfig & config,
const daq::DAQConfig & daq_config )

Definition at line 62 of file run.cpp.

◆ Run() [2/2]

FLASHMEM run::Run::Run ( std::string id,
const RunConfig & config )

Definition at line 58 of file run.cpp.

Member Function Documentation

◆ from_json()

FLASHMEM run::Run run::Run::from_json ( JsonObjectConst & json)
static

Definition at line 66 of file run.cpp.

References daq::DAQConfig::from_json(), run::RunConfig::from_json(), and size.

Referenced by run::RunManager::start_run().

◆ to()

FLASHMEM run::RunStateChange run::Run::to ( run::RunState new_state,
unsigned int t = 0 )

Definition at line 78 of file run.cpp.

Member Data Documentation

◆ config

RunConfig run::Run::config

(User-provided) timing requests

Definition at line 50 of file run.h.

◆ daq_config

daq::DAQConfig run::Run::daq_config

(User-provided) Data Aquisition request

Definition at line 52 of file run.h.

◆ history

std::queue<RunStateChange, std::array<RunStateChange, 7> > run::Run::history
protected

Definition at line 55 of file run.h.

◆ id

const std::string run::Run::id

(User-provided) Supposed to be a UUID which allows to identify Out-of-band messages

Definition at line 49 of file run.h.

◆ state

RunState run::Run::state = RunState::NEW

(System-steered)

Definition at line 51 of file run.h.


The documentation for this class was generated from the following files:
  • lib/computation/src/run/run.h
  • lib/computation/src/run/run.cpp