Project
Loading...
Searching...
No Matches
GeometryTGeo.h
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#ifndef ALICEO2_RICH_GEOMETRYTGEO_H
13#define ALICEO2_RICH_GEOMETRYTGEO_H
14
16
17namespace o2
18{
19namespace rich
20{
22{
23 public:
24 GeometryTGeo(bool build = false, int loadTrans = 0);
25 void Build(int loadTrans);
26 void fillMatrixCache(int mask);
27 static GeometryTGeo* Instance();
28
29 static const char* getRICHVolPattern() { return sVolumeName.c_str(); }
30 static const char* getRICHRingPattern() { return sRingName.c_str(); }
31 static const char* getRICHChipPattern() { return sChipName.c_str(); }
32 static const char* getRICHSensorPattern() { return sSensorName.c_str(); }
33 static const char* getRICHSensorFWDPattern() { return sSensorFWDName.c_str(); }
34 static const char* getRICHSensorBWDPattern() { return sSensorBWDName.c_str(); }
35
36 static const char* composeSymNameRICH(int d)
37 {
38 return Form("%s_%d", o2::detectors::DetID(o2::detectors::DetID::RCH).getName(), d);
39 }
40 static const char* composeSymNameRing(int d, int ring);
41 static const char* composeSymNameChip(int d, int ring);
42 static const char* composeSymNameSensor(int d, int ring);
43 static const char* composeSymNameSensorFWD(int d);
44 static const char* composeSymNameSensorBWD(int d);
45
46 protected:
47 static std::string sVolumeName;
48 static std::string sRingName;
49 static std::string sChipName;
50 static std::string sSensorName;
51 static std::string sSensorFWDName;
52 static std::string sSensorBWDName;
53
54 private:
55 static std::unique_ptr<o2::rich::GeometryTGeo> sInstance;
56};
57
58} // namespace rich
59} // namespace o2
60#endif
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition DetID.h:58
const char * getName() const
static const char * getRICHSensorBWDPattern()
static const char * composeSymNameSensorFWD(int d)
static const char * getRICHSensorPattern()
static GeometryTGeo * Instance()
static const char * composeSymNameSensor(int d, int ring)
static std::string sRingName
static const char * composeSymNameSensorBWD(int d)
static const char * getRICHVolPattern()
static std::string sSensorBWDName
static const char * composeSymNameChip(int d, int ring)
static const char * composeSymNameRing(int d, int ring)
static std::string sChipName
void fillMatrixCache(int mask)
static const char * getRICHSensorFWDPattern()
static std::string sSensorName
static const char * getRICHRingPattern()
void Build(int loadTrans)
static const char * getRICHChipPattern()
static std::string sVolumeName
static std::string sSensorFWDName
static const char * composeSymNameRICH(int d)
GLint GLuint mask
Definition glcorearb.h:291
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...