Project
Loading...
Searching...
No Matches
ITS3Services.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
15
16#include <TGeoManager.h>
17#include <TGeoVolume.h>
18#include <TGeoTube.h>
19
21#include "ITS3Base/SpecsV2.h"
22
23namespace o2::its3
24{
25
26void ITS3Services::createCYSSAssembly(TGeoVolume* motherVolume)
27{
28 auto cyssVol = new TGeoVolumeAssembly("IBCYSSAssembly");
29 cyssVol->SetVisibility(kTRUE);
30 motherVolume->AddNode(cyssVol, 1., nullptr);
31
32 // Cylinder
33 auto cyssInnerCylSh = new TGeoTubeSeg(constants::services::radiusInner, constants::services::radiusOuter, constants::services::length / 2, 180, 360);
34 auto medRohacell = gGeoManager->GetMedium("IT3_RIST110$");
35 auto cyssInnerCylShVol = new TGeoVolume("IBCYSSCylinder", cyssInnerCylSh, medRohacell);
36 cyssInnerCylShVol->SetLineColor(constants::services::color);
37 cyssVol->AddNode(cyssInnerCylShVol, 1, new TGeoTranslation(0, 0, 0));
38 cyssVol->AddNode(cyssInnerCylShVol, 2, new TGeoCombiTrans(0, 0, 0, new TGeoRotation("", 180, 0, 0)));
39
40 // TODO Cone
41 // For now the wrapping volume just extends beyond the cylinder if something is added beyond that this volume has to
42 // be exteneded.
43}
44
45} // namespace o2::its3
Definition of the ITS3Services class.
void createCYSSAssembly(TGeoVolume *motherVolume)
constexpr double length
Definition SpecsV2.h:224
constexpr double radiusOuter
Definition SpecsV2.h:223
constexpr EColor color
Definition SpecsV2.h:225
constexpr double radiusInner
Definition SpecsV2.h:222