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
12
#include "
ITS3Align/Deformations.h
"
13
#include "
ITS3Align/MisalignmentParameters.h
"
14
15
#include "
Framework/Logger.h
"
16
17
#include <filesystem>
18
19
namespace
fs = std::filesystem;
20
21
namespace
o2::its3::align
22
{
23
24
void
Deformations::init
(
const
fs::path&
path
)
25
{
26
if
(!fs::exists(
path
)) {
27
LOGP(fatal,
"File {} does not exists!"
,
path
.c_str());
28
}
29
30
auto
params
=
MisalignmentParameters::load
(
path
.string());
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
Deformations.h
Logger.h
MisalignmentParameters.h
Definition of the MisalignmentParameters class.
o2::its3::align::Deformations::init
void init(const std::filesystem::path &)
Definition
Deformations.cxx:24
o2::its3::align::MisalignmentParameters::load
static MisalignmentParameters * load(const std::string &file)
Definition
MisalignmentParameters.cxx:44
o2::math_utils::Legendre2DPolynominal
....
Definition
LegendrePols.h:101
params
GLenum const GLfloat * params
Definition
glcorearb.h:272
path
GLsizei const GLchar *const * path
Definition
glcorearb.h:3591
o2::its3::align
Definition
Deformations.h:21
Detectors
Upgrades
ITS3
alignment
src
Deformations.cxx
Generated on Tue Feb 25 2025 23:16:34 for Project by
1.9.8