Project
Loading...
Searching...
No Matches
TRKPetalLayer.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_TRK_PETAL_LAYER_H
13#define ALICEO2_TRK_PETAL_LAYER_H
14
15#include "TGeoManager.h"
16#include <Rtypes.h>
17#include "TGeoTube.h"
18
20
21namespace o2
22{
23namespace trk
24{
26{
27 public:
28 TRKPetalLayer() = default;
29 TRKPetalLayer(Int_t layerNumber, std::string layerName, Float_t rIn, Float_t angularCoverage, Float_t zLength, Float_t layerX2X0);
30 ~TRKPetalLayer() = default;
31
32 auto getInnerRadius() const { return mInnerRadius; }
33 auto getAngularCoverage() const { return mAngularCoverage; }
34 auto getZLength() { return mZ; }
35 auto getx2X0() const { return mX2X0; }
36 auto getChipThickness() const { return mChipThickness; }
37 auto getNumber() const { return mLayerNumber; }
38 auto getName() const { return mLayerName; }
39 auto getSensorName() const { return mSensorName; }
40
41 void createLayer(TGeoVolume* motherVolume, TGeoCombiTrans* combiTrans);
42
43 private:
44 Int_t mLayerNumber;
45 std::string mLayerName;
46 std::string mSensorName;
47 Float_t mInnerRadius;
48 Float_t mZ;
49 Float_t mX2X0;
50 Float_t mChipThickness;
51 Float_t mModuleWidth; // u.m. = cm
52 Float_t mAngularCoverage; // rad
53
54 TGeoTubeSeg* mLayer;
55
56 ClassDef(TRKPetalLayer, 1);
57};
58
59} // namespace trk
60} // namespace o2
61#endif // ALICEO2_TRK_PETAL_LAYER_H
auto getInnerRadius() const
auto getChipThickness() const
auto getAngularCoverage() const
void createLayer(TGeoVolume *motherVolume, TGeoCombiTrans *combiTrans)
auto getSensorName() const
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...