forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGeometryTGeo.h
More file actions
54 lines (45 loc) · 1.82 KB
/
GeometryTGeo.h
File metadata and controls
54 lines (45 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
/// \file GeometryTGeo.h
/// \brief Definition of the GeometryTGeo class : common part for ITS and MFT
/// \brief collects ITS and MFT common methods to access matrices
/// \author ruben.shahoyan@cern.ch
#ifndef ALICEO2_ITSMFT_GEOMETRYTGEO_H_
#define ALICEO2_ITSMFT_GEOMETRYTGEO_H_
#include <TObjArray.h> // for TObjArray
#include <string>
#include "DetectorsCommonDataFormats/DetMatrixCache.h"
namespace o2
{
namespace itsmft
{
class GeometryTGeo : public o2::detectors::DetMatrixCache
{
public:
using o2::detectors::DetMatrixCache::fillMatrixCache;
GeometryTGeo() = default;
GeometryTGeo(const GeometryTGeo& src) = delete;
GeometryTGeo& operator=(const GeometryTGeo& geom) = delete;
GeometryTGeo(const o2::detectors::DetID& detid) : o2::detectors::DetMatrixCache(detid) {}
~GeometryTGeo() override = default;
Int_t getNumberOfChips() const { return mSize; }
virtual Int_t getLayer(Int_t index) const { return -1; };
/// build detector layout data, must be overridden by detector
virtual void Build(int loadTrans) = 0;
bool isOwner() const { return mOwner; }
void setOwner(bool v) { mOwner = v; }
protected:
bool mOwner = true; //! is it owned by the singleton?
ClassDefOverride(GeometryTGeo, 1); // ITSMFR geometry based on TGeo
};
} // namespace itsmft
} // namespace o2
#endif