Project
Loading...
Searching...
No Matches
FT3Layer.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
14
15#ifndef ALICEO2_FT3_UPGRADEV3LAYER_H_
16#define ALICEO2_FT3_UPGRADEV3LAYER_H_
17
18#include <TGeoManager.h> // for gGeoManager
19#include "Rtypes.h" // for Double_t, Int_t, Bool_t, etc
20#include "FT3Simulation/Detector.h" // for Detector, Detector::Model
21
22class TGeoVolume;
23
24namespace o2
25{
26namespace ft3
27{
28
31class FT3Layer : public TObject
32{
33 public:
34 // Default constructor
35 FT3Layer() = default;
36
37 // Sample layer constructor
38 FT3Layer(Int_t layerDirection, Int_t layerNumber, std::string layerName, Float_t z, Float_t rIn, Float_t rOut, Float_t Layerx2X0);
39
41 FT3Layer(const FT3Layer&) = default;
42
44 FT3Layer& operator=(const FT3Layer&) = default;
45
47 ~FT3Layer() override;
48
50 auto getInnerRadius() const { return mInnerRadius; }
51 auto getOuterRadius() const { return mOuterRadius; }
52 auto getDirection() const { return mDirection; }
53 auto getZ() const { return mZ; }
54 auto getx2X0() const { return mx2X0; }
55
58 virtual void createLayer(TGeoVolume* motherVolume);
59
60 private:
61 Int_t mLayerNumber = -1;
62 Int_t mDirection;
63 std::string mLayerName;
64 Double_t mInnerRadius;
65 Double_t mOuterRadius;
66 Double_t mZ;
67 Double_t mChipThickness;
68 Double_t mx2X0;
69
70 ClassDefOverride(FT3Layer, 0); // ALICE 3 EndCaps geometry
71};
72} // namespace ft3
73} // namespace o2
74
75#endif
Definition of the Detector class.
virtual void createLayer(TGeoVolume *motherVolume)
Definition FT3Layer.cxx:62
auto getDirection() const
Definition FT3Layer.h:52
FT3Layer(const FT3Layer &)=default
Copy constructor.
auto getx2X0() const
Definition FT3Layer.h:54
auto getZ() const
Definition FT3Layer.h:53
~FT3Layer() override
Default destructor.
FT3Layer()=default
auto getOuterRadius() const
Definition FT3Layer.h:51
auto getInnerRadius() const
getters
Definition FT3Layer.h:50
FT3Layer & operator=(const FT3Layer &)=default
Assignment operator.
GLdouble GLdouble GLdouble z
Definition glcorearb.h:843
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...