17#ifndef GPUCA_STANDALONE
29void CalibdEdxCorrection::clear()
31 for (
auto&
row : mParams) {
36 for (
auto&
x : mChi2) {
42#ifndef GPUCA_STANDALONE
46 std::unique_ptr<TFile>
file(TFile::Open(fileName.data(),
"recreate"));
48 LOGP(
error,
"Failed to open file {} for writing", fileName.data());
52 file->WriteObject(
this, objName.data());
57 std::unique_ptr<TFile>
file(TFile::Open(fileName.data()));
59 LOGP(
error,
"Failed to open file {}", fileName.data());
67 LOGP(
error,
"Failed to load object with name {} from file {}", objName.data(), fileName.data());
77 for (
int roc = 0;
roc < GEMSTACKSPERSECTOR; ++
roc) {
82 std::vector<float> qMaxCorrOut;
83 std::vector<float> qTotCorrOut;
84 std::vector<float> tglOut;
85 std::vector<float> snpOut;
87 for (
float tgl = 0;
tgl < 2;
tgl += 0.01) {
88 for (
float snp = 0;
snp < 1;
snp += 0.1) {
91 tglOut.emplace_back(
tgl);
92 snpOut.emplace_back(
snp);
97 <<
"qMaxCorr=" << qMaxCorrOut
98 <<
"qTotCorr=" << qTotCorrOut
110 std::array<float, ParamSize>
params{};
115 std::for_each(
params.begin(),
params.end(), [](
auto&
val) { val /= (0.5f * FitSize); });
121 std::array<float, ParamSize>
params{};
126 std::for_each(
params.begin(),
params.end(), [](
auto&
val) { val /= (SECTORSPERSIDE * SIDES); });
132 if (
param >= ParamSize) {
140 return mean / (0.5f * FitSize);
145 if (
param >= ParamSize) {
153 return mean / (SECTORSPERSIDE * SIDES);
163 return mean / (0.5f * FitSize);
173 return mean / (SECTORSPERSIDE * SIDES);
178 for (
int i = 0;
i < FitSize; ++
i) {
179 for (
int j = 0;
j < ParamSize; ++
j) {
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual Show related Highlight grid Show only individual collision Color clusters belonging to track objects Set line Enable drawing TPC data Enable drawing TOF data Enable drawing magnetic field Set field line step count Invert colors configStandalone Heavy OpenGL display display_heavy Show tracks with ITS contribution Show tracks with TOF contribution Enable propagation of loopers Show clusters at nominal x of pad row for early transformed data Split CE tracks when they cross the central Mark clusters Mark adjacent clusters Hide rejected tracks Apply filter on tracks to be displayed Separate increase X h configStandalone Camera window renderer OpenGL display display_camera Orient the camera such that the y axis is always upwards Full Screen MultiSample Anti Downsampling Anti Enable Vertical Sync Target frame or if the backend cannot limit to the refresh Use OpenGL indirect draws to reduce number of draw calls Display h configStandalone Vulkan display display_vulkan Have uniform buffers in host accessible device memory h configStandalone Internal display display_internal Number of updates the Qt GUI may send ahead of the last one the display has before it waits for the display Opacity of the console background Number of console lines the history is shortened to this when it reaches twice the size Time in seconds an info message fades out after setInfoTime h OpenGL display display Font size Do not use Freetype for font Renderer for event Frontend to use for event ROOT macros used as track filter Console script file
configStandalone Light OpenGL display display_light Apply smoothing to points Enable Z buffer Highlight links Highlight seeds Highlight sector tracks Highlight final tracks Show individual sector
char error[CURL_ERROR_SIZE]
void dumpToTree(const char *outFileName="calib_dedx.root") const
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
void loadFromFile(std::string_view fileName, std::string_view objName="ccdb_object")
float getMeanParam(ChargeType charge, uint32_t param) const
Single fit parameters averaged over all sectors for a stack type.
void setUnity()
set all corrections to 1, used for default initialization and to reset corrections
ChargeType float float snp
float getMeanEntries(ChargeType charge) const
Single fit parameters averaged over all sectors for a stack type.
GLenum const GLfloat * params
Global TPC definitions and constants.
GEMstack
TPC GEM stack types.
GEM stack identification.