16#ifndef PRESSURETEMPERATUREHELPER_H_
17#define PRESSURETEMPERATUREHELPER_H_
25class ProcessingContext;
49 static void setOutputs(std::vector<o2::framework::OutputSpec>& outputs);
61 float interpolate(
const std::vector<uint64_t>& timestamps,
const std::vector<float>&
values, uint64_t timestamp)
const;
76 std::pair<std::vector<float>, std::vector<uint64_t>>
mPressure;
dataformats::Pair< float, float > getTemperature(const uint64_t timestamp) const
get temperature for given time stamp in ms
static void requestCCDBInputs(std::vector< o2::framework::InputSpec > &inputs)
float interpolate(const std::vector< uint64_t > ×tamps, const std::vector< float > &values, uint64_t timestamp) const
interpolate input values for given timestamp
void extractCCDBInputs(o2::framework::ProcessingContext &pc) const
trigger checking for CCDB objects
static constexpr o2::header::DataDescription getDataDescriptionTemperature()
std::pair< std::vector< float >, std::vector< uint64_t > > mTemperatureC
temperature values C-side
static void addOutput(std::vector< o2::framework::OutputSpec > &outputs, o2::framework::OutputSpec &&osp)
PressureTemperatureHelper()=default
int mFitIntervalMS
fit interval for the temperature
std::pair< std::vector< float >, std::vector< uint64_t > > mTemperatureA
temperature values A-side
void sendPTForTS(o2::framework::ProcessingContext &pc, const uint64_t timestamp) const
send temperature and pressure for given time stamp
std::pair< std::vector< float >, std::vector< uint64_t > > mPressure
pressure values for both measurements
void setFitIntervalTemp(const int fitIntervalMS)
set fit interval range for temperature in ms
float getPressure(const uint64_t timestamp) const
get pressure for given time stamp in ms
static constexpr o2::header::DataDescription getDataDescriptionPressure()
static void addInput(std::vector< o2::framework::InputSpec > &inputs, o2::framework::InputSpec &&isp)
bool accountCCDBInputs(const o2::framework::ConcreteDataMatcher &matcher, void *obj)
check for new CCDB objects
static void setOutputs(std::vector< o2::framework::OutputSpec > &outputs)
define outputs in case pressure and temperature will be send
ClassDefNV(PressureTemperatureHelper, 1)
GLenum GLsizei GLsizei GLint * values
Defining PrimaryVertex explicitly as messageable.
Global TPC definitions and constants.