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_ECAL_GEOMETRYTGEO_H
13#define ALICEO2_ECAL_GEOMETRYTGEO_H
14
16
17namespace o2
18{
19namespace ecal
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* getECalVolPattern() { return sVolumeName.c_str(); }
30 static const char* getECalSensorPattern() { return sSensorName.c_str(); }
31
32 static const char* composeSymNameECal()
33 {
34 return Form("%s_%d", o2::detectors::DetID(o2::detectors::DetID::ECL).getName(), 0);
35 }
36 static const char* composeSymNameSensor(); // A single sensor for the moment
37
38 protected:
39 static std::string sVolumeName;
40 static std::string sSensorName;
41
42 private:
43 static std::unique_ptr<o2::ecal::GeometryTGeo> sInstance;
44};
45} // namespace ecal
46} // namespace o2
47#endif
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition DetID.h:58
const char * getName() const
static GeometryTGeo * Instance()
static const char * composeSymNameSensor()
void fillMatrixCache(int mask)
static const char * getECalVolPattern()
static std::string sVolumeName
static const char * composeSymNameECal()
static const char * getECalSensorPattern()
void Build(int loadTrans)
static std::string sSensorName
GLint GLuint mask
Definition glcorearb.h:291
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...