Project
Loading...
Searching...
No Matches
GeometryTGeo.h
Go to the documentation of this file.
1// Copyright 2019-2026 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 ALICEO2_FD3_GEOMETRYTGEO_H_
13#define ALICEO2_FD3_GEOMETRYTGEO_H_
14
16
19#include <Rtypes.h>
20#include <TGeoPhysicalNode.h>
21#include <vector>
22#include <array>
23#include <TGeoMatrix.h>
24#include <TGeoVolume.h>
25#include <TVirtualMC.h>
26
27namespace o2
28{
29namespace fd3
30{
31
34{
35 public:
36 GeometryTGeo(bool build = false, int loadTrans = 0);
37
38 void Build(int loadTrans);
39 void fillMatrixCache(int mask);
40 virtual ~GeometryTGeo();
41
42 static GeometryTGeo* Instance();
43
44 void getGlobalPosition(float& x, float& y, float& z);
45
46 static constexpr o2::detectors::DetID::ID getDetID() { return o2::detectors::DetID::FD3; }
47
48 private:
49 static std::unique_ptr<o2::fd3::GeometryTGeo> sInstance;
50
51 ClassDefNV(GeometryTGeo, 1);
52};
53} // namespace fd3
54} // namespace o2
55#endif
Definition of the GeometryManager class.
int ID
Detector identifiers: continuous, starting from 0.
Definition DetID.h:63
FD3 Geometry type.
static GeometryTGeo * Instance()
void Build(int loadTrans)
static constexpr o2::detectors::DetID::ID getDetID()
void getGlobalPosition(float &x, float &y, float &z)
void fillMatrixCache(int mask)
GLint GLenum GLint x
Definition glcorearb.h:403
GLint y
Definition glcorearb.h:270
GLint GLuint mask
Definition glcorearb.h:291
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...