Project
Loading...
Searching...
No Matches
Deformations.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
15#include "Framework/Logger.h"
16
17#include <filesystem>
18
19namespace fs = std::filesystem;
20
21namespace o2::its3::align
22{
23
24void Deformations::init(const fs::path& path)
25{
26 if (!fs::exists(path)) {
27 LOGP(fatal, "File {} does not exists!", path.c_str());
28 }
29
31 LOGP(info, "Loaded Parameters");
32
33 // Set the legendre pols
34 for (int iSensor{0}; iSensor < 6; ++iSensor) {
35 mLegX[iSensor] = o2::math_utils::Legendre2DPolynominal(params->getLegendreCoeffX(iSensor));
36 mLegY[iSensor] = o2::math_utils::Legendre2DPolynominal(params->getLegendreCoeffY(iSensor));
37 mLegZ[iSensor] = o2::math_utils::Legendre2DPolynominal(params->getLegendreCoeffZ(iSensor));
38 }
39}
40
41} // namespace o2::its3::align
Definition of the MisalignmentParameters class.
void init(const std::filesystem::path &)
static MisalignmentParameters * load(const std::string &file)
GLenum const GLfloat * params
Definition glcorearb.h:272
GLsizei const GLchar *const * path
Definition glcorearb.h:3591