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