Project
Loading...
Searching...
No Matches
GeometryFlat.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
13#include "TRDBase/Geometry.h"
15
16using namespace o2::trd;
17using namespace o2::trd::constants;
18
20{
21 GeometryBase& b1 = *this;
22 const GeometryBase& b2 = geo;
23 memcpy((void*)&b1, (void*)&b2, sizeof(b1));
24 int matrixCount = 0;
25 for (int i = 0; i < MAXCHAMBER; i++) {
26 if (geo.chamberInGeometry(i)) {
27 double v[12];
28 geo.getMatrixT2L(i).GetComponents(v[0], v[1], v[2], v[3], v[4], v[5], v[6], v[7], v[8], v[9], v[10], v[11]);
29 float f[12];
30 for (int k = 0; k < 12; k++) {
31 f[k] = v[k];
32 }
33 mMatrixCache[matrixCount] = o2::gpu::Transform3D(f);
34 mMatrixIndirection[i] = matrixCount++;
35 } else {
37 }
38 }
39}
Global TRD definitions and constants.
int32_t i
const GPUTPCGMMerger::trackCluster & b1
const Mat3D & getMatrixT2L(int sensID) const
GPUd() const o2 short mMatrixIndirection[constants::MAXCHAMBER]
bool chamberInGeometry(int det) const
const GLdouble * v
Definition glcorearb.h:832
GLdouble f
Definition glcorearb.h:310
constexpr int MAXCHAMBER
the maximum number of installed chambers
Definition Constants.h:30