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
16
17#ifndef ALICEO2_ECAL_GEOMETRYTGEO_H
18#define ALICEO2_ECAL_GEOMETRYTGEO_H
19
21
22namespace o2
23{
24namespace ecal
25{
27{
28 public:
29 GeometryTGeo(bool build = false, int loadTrans = 0);
30 void Build(int loadTrans);
31 void fillMatrixCache(int mask);
32 static GeometryTGeo* Instance();
33
34 static const char* getECalVolPattern() { return sVolumeName.c_str(); }
35 static const char* getECalSectorPattern() { return sSectorName.c_str(); }
36 static const char* getECalModulePattern() { return sModuleName.c_str(); }
37
38 static const char* composeSymNameECal()
39 {
40 return Form("%s_%d", o2::detectors::DetID(o2::detectors::DetID::ECL).getName(), 0);
41 }
42 static const char* composeSymNameSector(int s);
43 static const char* composeSymNameModule(int s, int m);
44
45 protected:
46 static std::string sVolumeName;
47 static std::string sSectorName;
48 static std::string sModuleName;
49
50 private:
51 static std::unique_ptr<o2::ecal::GeometryTGeo> sInstance;
52};
53} // namespace ecal
54} // namespace o2
55
56#endif // ALICEO2_ECAL_GEOMETRYTGEO_H
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition DetID.h:58
const char * getName() const
static const char * composeSymNameSector(int s)
static std::string sModuleName
static const char * getECalModulePattern()
static GeometryTGeo * Instance()
static const char * getECalSectorPattern()
static std::string sSectorName
static const char * composeSymNameModule(int s, int m)
void fillMatrixCache(int mask)
static const char * getECalVolPattern()
static std::string sVolumeName
static const char * composeSymNameECal()
void Build(int loadTrans)
const GLfloat * m
Definition glcorearb.h:4066
GLint GLuint mask
Definition glcorearb.h:291
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...