Project
Loading...
Searching...
No Matches
MisalignmentManager.h
Go to the documentation of this file.
1// Copyright 2020-2022 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#ifndef ITS3_MISALIGNMENTMANAGER_H_
13#define ITS3_MISALIGNMENTMANAGER_H_
14
15#include "Math/Transform3D.h"
16#include "Math/Translation3D.h"
17#include "Math/Rotation3D.h"
18#include "Math/EulerAngles.h"
19#include "Math/PositionVector3D.h"
20#include "TGeoMatrix.h"
21
22#include <filesystem>
23
24namespace o2::its3::align
25{
26
29 using Vector3D = ROOT::Math::DisplacementVector3D<ROOT::Math::Cartesian3D<float>, ROOT::Math::DefaultCoordinateSystemTag>;
30 using Point3D = ROOT::Math::PositionVector3D<ROOT::Math::Cartesian3D<float>, ROOT::Math::DefaultCoordinateSystemTag>;
31 using Trans3D = ROOT::Math::Translation3DF;
32 using Rot3D = ROOT::Math::Rotation3D;
33 using Euler3D = ROOT::Math::EulerAngles;
34 using Trafo3D = ROOT::Math::Transform3DF;
35
36 static void misalignHits();
37
38 static void createBackup(const std::filesystem::path& src, const std::filesystem::path& dest);
39
40 static std::string appendStem(const std::string& filename, const std::string& add);
41
42 static std::vector<std::string> split(const std::string& s, char delimiter = '/');
43
44 static void navigate(const std::string& path);
45
46 static std::string composePathSensor(int sensor);
47
48 static void applyGlobalMatrixVolume(const std::string& path, const TGeoHMatrix& globalMatrix);
49};
50
51} // namespace o2::its3::align
52
53#endif
GLenum src
Definition glcorearb.h:1767
GLsizei const GLchar *const * path
Definition glcorearb.h:3591
std::string filename()
Collection of static functions and types to perform misalignment studies.
static std::string appendStem(const std::string &filename, const std::string &add)
static void navigate(const std::string &path)
static std::string composePathSensor(int sensor)
static void createBackup(const std::filesystem::path &src, const std::filesystem::path &dest)
static std::vector< std::string > split(const std::string &s, char delimiter='/')
static void applyGlobalMatrixVolume(const std::string &path, const TGeoHMatrix &globalMatrix)