![]() |
Project
|
#include <PressureTemperatureHelper.h>
Public Member Functions | |
PressureTemperatureHelper ()=default | |
bool | accountCCDBInputs (const o2::framework::ConcreteDataMatcher &matcher, void *obj) |
check for new CCDB objects | |
void | extractCCDBInputs (o2::framework::ProcessingContext &pc) const |
trigger checking for CCDB objects | |
void | sendPTForTS (o2::framework::ProcessingContext &pc, const uint64_t timestamp) const |
send temperature and pressure for given time stamp | |
void | setFitIntervalTemp (const int fitIntervalMS) |
set fit interval range for temperature in ms | |
float | interpolate (const std::vector< uint64_t > ×tamps, const std::vector< float > &values, uint64_t timestamp) const |
interpolate input values for given timestamp | |
float | getPressure (const uint64_t timestamp) const |
get pressure for given time stamp in ms | |
dataformats::Pair< float, float > | getTemperature (const uint64_t timestamp) const |
get temperature for given time stamp in ms | |
Static Public Member Functions | |
static void | requestCCDBInputs (std::vector< o2::framework::InputSpec > &inputs) |
static void | setOutputs (std::vector< o2::framework::OutputSpec > &outputs) |
define outputs in case pressure and temperature will be send | |
static constexpr o2::header::DataDescription | getDataDescriptionPressure () |
static constexpr o2::header::DataDescription | getDataDescriptionTemperature () |
Protected Member Functions | |
ClassDefNV (PressureTemperatureHelper, 1) | |
Static Protected Member Functions | |
static void | addInput (std::vector< o2::framework::InputSpec > &inputs, o2::framework::InputSpec &&isp) |
static void | addOutput (std::vector< o2::framework::OutputSpec > &outputs, o2::framework::OutputSpec &&osp) |
Protected Attributes | |
std::pair< std::vector< float >, std::vector< uint64_t > > | mPressure |
pressure values for both measurements | |
std::pair< std::vector< float >, std::vector< uint64_t > > | mTemperatureA |
temperature values A-side | |
std::pair< std::vector< float >, std::vector< uint64_t > > | mTemperatureC |
temperature values C-side | |
int | mFitIntervalMS {5 * 60 * 1000} |
fit interval for the temperature | |
Definition at line 34 of file PressureTemperatureHelper.h.
|
default |
bool PressureTemperatureHelper::accountCCDBInputs | ( | const o2::framework::ConcreteDataMatcher & | matcher, |
void * | obj | ||
) |
check for new CCDB objects
Definition at line 33 of file PressureTemperatureHelper.cxx.
|
staticprotected |
Definition at line 74 of file PressureTemperatureHelper.cxx.
|
staticprotected |
Definition at line 87 of file PressureTemperatureHelper.cxx.
|
protected |
void PressureTemperatureHelper::extractCCDBInputs | ( | o2::framework::ProcessingContext & | pc | ) | const |
trigger checking for CCDB objects
Definition at line 27 of file PressureTemperatureHelper.cxx.
|
inlinestaticconstexpr |
Definition at line 69 of file PressureTemperatureHelper.h.
|
inlinestaticconstexpr |
Definition at line 70 of file PressureTemperatureHelper.h.
|
inline |
get pressure for given time stamp in ms
Definition at line 64 of file PressureTemperatureHelper.h.
|
inline |
get temperature for given time stamp in ms
Definition at line 67 of file PressureTemperatureHelper.h.
float PressureTemperatureHelper::interpolate | ( | const std::vector< uint64_t > & | timestamps, |
const std::vector< float > & | values, | ||
uint64_t | timestamp | ||
) | const |
interpolate input values for given timestamp
timestamps | time stamps of the data |
values | data points |
timestamp | time where to interpolate the values |
Definition at line 94 of file PressureTemperatureHelper.cxx.
|
static |
Definition at line 68 of file PressureTemperatureHelper.cxx.
void PressureTemperatureHelper::sendPTForTS | ( | o2::framework::ProcessingContext & | pc, |
const uint64_t | timestamp | ||
) | const |
send temperature and pressure for given time stamp
Definition at line 112 of file PressureTemperatureHelper.cxx.
set fit interval range for temperature in ms
Definition at line 55 of file PressureTemperatureHelper.h.
|
static |
define outputs in case pressure and temperature will be send
Definition at line 81 of file PressureTemperatureHelper.cxx.
|
protected |
fit interval for the temperature
Definition at line 79 of file PressureTemperatureHelper.h.
|
protected |
pressure values for both measurements
Definition at line 76 of file PressureTemperatureHelper.h.
|
protected |
temperature values A-side
Definition at line 77 of file PressureTemperatureHelper.h.
|
protected |
temperature values C-side
Definition at line 78 of file PressureTemperatureHelper.h.