15#ifndef ALICEO2_TPC_CALIBDEDXCORRECTION_H_
16#define ALICEO2_TPC_CALIBDEDXCORRECTION_H_
22#ifndef GPUCA_GPUCODE_DEVICE
34namespace conf_dedx_corr
45#if !defined(GPUCA_ALIGPUCODE)
64 tgl = o2::gpu::CAMath::Min(conf_dedx_corr::TglScale[
stack.type], o2::gpu::CAMath::Abs(
tgl));
78#if !defined(GPUCA_GPUCODE)
85 int getDims()
const {
return mDims; }
90 void setDims(
int dims) { mDims = dims; }
94 void writeToFile(std::string_view fileName, std::string_view objName =
"ccdb_object")
const;
95 void loadFromFile(std::string_view fileName, std::string_view objName =
"ccdb_object");
98 void dumpToTree(
const char* outFileName =
"calib_dedx.root")
const;
void dumpToTree(const char *outFileName="calib_dedx.root") const
static constexpr int ParamSize
Number of params per fit.
const std::array< float, ParamSize > getMeanParams(ChargeType charge) const
Parameters averaged over all stacks.
void writeToFile(std::string_view fileName, std::string_view objName="ccdb_object") const
CalibdEdxCorrection(std::string_view fileName)
void loadFromFile(std::string_view fileName, std::string_view objName="ccdb_object")
~CalibdEdxCorrection()=default
float getMeanParam(ChargeType charge, uint32_t param) const
Single fit parameters averaged over all sectors for a stack type.
ChargeType float float snp
float getMeanEntries(ChargeType charge) const
Single fit parameters averaged over all sectors for a stack type.
static constexpr int FitSize
Number of fitted corrections.
GLenum const GLfloat * params
GPUconstexpr() float TglScale[4]
Max Tgl values for each ROC type.
Global TPC definitions and constants.
GEMstack
TPC GEM stack types.
constexpr unsigned char SECTORSPERSIDE
constexpr unsigned char SIDES
constexpr unsigned short GEMSTACKSPERSECTOR
GEM stack identification.