forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDescriptorInnerBarrelITS3.h
More file actions
64 lines (50 loc) · 2.25 KB
/
DescriptorInnerBarrelITS3.h
File metadata and controls
64 lines (50 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
// All rights not expressly granted are reserved.
//
// This software is distributed under the terms of the GNU General Public
// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
//
// In applying this license CERN does not waive the privileges and immunities
// granted to it by virtue of its status as an Intergovernmental Organization
// or submit itself to any jurisdiction.
/// \file DescriptorInnerBarrelITS3.h
/// \brief Definition of the DescriptorInnerBarrelITS3 class
#ifndef ALICEO2_ITS3_DESCRIPTORINNERBARRELITS3_H
#define ALICEO2_ITS3_DESCRIPTORINNERBARRELITS3_H
#include "ITS3Base/SpecsV2.h"
#include "ITSBase/DescriptorInnerBarrel.h"
#include "ITS3Simulation/ITS3Layer.h"
#include "ITS3Simulation/ITS3Services.h"
#include "TGeoVolume.h"
#include <array>
#include <memory>
namespace o2::its3
{
class DescriptorInnerBarrelITS3 : public o2::its::DescriptorInnerBarrel
{
public:
DescriptorInnerBarrelITS3()
{
// redefine the wrapper volume
setConfigurationWrapperVolume(mWrapperMinRadiusITS3, mWrapperMaxRadiusITS3, mWrapperZSpanITS3);
}
void createLayer(int idLayer, TGeoVolume* dest);
void createServices(TGeoVolume* dest);
void configure() {}
void addAlignableVolumesLayer(int idLayer, int wrapperLayerId, TString& parentPath, int& lastUID) const;
protected:
// wrapper volume properties
static constexpr double mTolerance{1e-3};
static constexpr double mWrapperMinRadiusITS3{constants::radiiInner[0] - mTolerance};
static constexpr double mWrapperMaxRadiusITS3{constants::services::radiusOuter + mTolerance};
static constexpr double mWrapperZSpanITS3{(constants::services::length * 2) + mTolerance}; // z length is divided in half
private:
void addAlignableVolumesHalfBarrel(int idLayer, int iHB, TString& parentPath, int& lastUID) const;
void addAlignableVolumesChips(int idLayer, int iHalfBarrel, TString& parentPath, int& lastUID) const;
std::array<std::unique_ptr<ITS3Layer>, constants::nLayers> mIBLayers;
std::unique_ptr<ITS3Services> mServices;
ClassDefNV(DescriptorInnerBarrelITS3, 0); /// ITS3 inner barrel geometry descriptor
};
} // namespace o2::its3
#endif