EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TGeoPrimitivesHelper.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TGeoPrimitivesHelper.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2018-2020 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
12 
13 #include <string>
14 #include <vector>
15 
16 namespace Acts {
17 
26  static inline Transform3D makeTransform(
27  const Eigen::Vector3d& rotationMatrixCol0,
28  const Eigen::Vector3d& rotationMatrixCol1,
29  const Eigen::Vector3d& rotationMatrixCol2,
30  const Eigen::Vector3d& translation) {
31  Transform3D trf;
32  trf.matrix().block(0, 0, 3, 1) = rotationMatrixCol0;
33  trf.matrix().block(0, 1, 3, 1) = rotationMatrixCol1;
34  trf.matrix().block(0, 2, 3, 1) = rotationMatrixCol2;
35  trf.matrix().block(0, 3, 3, 1) = translation;
36  return trf;
37  }
38 
42  static bool match(const char* first, const char* second);
43 
49  static bool match(const std::vector<std::string>& first, const char* second);
50 };
51 } // namespace Acts