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
15
17#ifndef ALICEO2_ITSMFT_GEOMETRYTGEO_H_
18#define ALICEO2_ITSMFT_GEOMETRYTGEO_H_
19
20#include <TObjArray.h> // for TObjArray
21#include <string>
23
24namespace o2
25{
26namespace itsmft
27{
29{
30 public:
32 GeometryTGeo() = default;
33 GeometryTGeo(const GeometryTGeo& src) = delete;
34 GeometryTGeo& operator=(const GeometryTGeo& geom) = delete;
35
36 GeometryTGeo(const o2::detectors::DetID& detid) : o2::detectors::DetMatrixCache(detid) {}
37 ~GeometryTGeo() override = default;
38
39 Int_t getNumberOfChips() const { return mSize; }
40 virtual Int_t getLayer(Int_t index) const { return -1; };
42 virtual void Build(int loadTrans) = 0;
43
44 bool isOwner() const { return mOwner; }
45 void setOwner(bool v) { mOwner = v; }
46
47 protected:
48 bool mOwner = true;
49
50 ClassDefOverride(GeometryTGeo, 1); // ITSMFR geometry based on TGeo
51};
52} // namespace itsmft
53} // namespace o2
54#endif
Static class with identifiers, bitmasks and names for ALICE detectors.
Definition DetID.h:58
virtual void fillMatrixCache(int mask)=0
int mSize
prebooked number of sensors
~GeometryTGeo() override=default
GeometryTGeo(const o2::detectors::DetID &detid)
virtual Int_t getLayer(Int_t index) const
virtual void Build(int loadTrans)=0
build detector layout data, must be overridden by detector
Int_t getNumberOfChips() const
GeometryTGeo & operator=(const GeometryTGeo &geom)=delete
ClassDefOverride(GeometryTGeo, 1)
is it owned by the singleton?
GeometryTGeo(const GeometryTGeo &src)=delete
GLenum src
Definition glcorearb.h:1767
const GLdouble * v
Definition glcorearb.h:832
GLuint index
Definition glcorearb.h:781
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...