Project
Loading...
Searching...
No Matches
DescriptorInnerBarrel.cxx
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#include "FairDetector.h" // for FairDetector
13#include <fairlogger/Logger.h> // for LOG, LOG_IF
14#include "FairRootManager.h" // for FairRootManager
15#include "FairRun.h" // for FairRun
16#include "FairRuntimeDb.h" // for FairRuntimeDb
17#include "FairVolume.h" // for FairVolume
18#include "FairRootManager.h"
19
20#include "TGeoManager.h" // for TGeoManager, gGeoManager
21#include "TGeoTube.h" // for TGeoTube
22#include "TGeoPcon.h" // for TGeoPcon
23#include "TGeoVolume.h" // for TGeoVolume, TGeoVolumeAssembly
24#include "TString.h" // for TString, operator+
25#include "TVirtualMC.h" // for gMC, TVirtualMC
26#include "TVirtualMCStack.h" // for TVirtualMCStack
27
29
30#include <cstdio> // for NULL, snprintf
31
32using namespace o2::its;
33
37
38//________________________________________________________________
40{
41 //
42 // Default constructor
43 //
44}
45
46//________________________________________________________________
47DescriptorInnerBarrel::DescriptorInnerBarrel(int nlayers) : TObject(), mNumLayers(nlayers)
48{
49 //
50 // Standard constructor
51 //
52}
53
54//________________________________________________________________
55void DescriptorInnerBarrel::getConfigurationWrapperVolume(double& minradius, double& maxradius, double& zspan) const
56{
57 minradius = mWrapperMinRadius;
58 maxradius = mWrapperMaxRadius;
59 zspan = mWrapperZSpan;
60}
61
62//________________________________________________________________
63void DescriptorInnerBarrel::setConfigurationWrapperVolume(double minradius, double maxradius, double zspan)
64{
65 mWrapperMinRadius = minradius;
66 mWrapperMaxRadius = maxradius;
67 mWrapperZSpan = zspan;
68}
69
70//________________________________________________________________
72{
73 TGeoTube* wrap = new TGeoTube(mWrapperMinRadius, mWrapperMaxRadius, mWrapperZSpan / 2.);
74 LOGP(debug, "Creating IB Wrappervolume with Rmin={}, Rmax={}, ZSpan={}", mWrapperMinRadius, mWrapperMaxRadius, mWrapperZSpan);
75 return wrap;
76}
Definition of the DescriptorInnerBarrel class.
ClassImp(IdPath)
std::ostringstream debug
void getConfigurationWrapperVolume(double &minradius, double &maxradius, double &zspan) const
DescriptorInnerBarrel()
Default constructor.
void setConfigurationWrapperVolume(double minradius, double maxradius, double zspan)