Project
Loading...
Searching...
No Matches
Geometry.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
12#ifndef ALICEO2_ZDC_GEOMETRY_H
13#define ALICEO2_ZDC_GEOMETRY_H
14
15#include <Rtypes.h>
16#include "TMath.h"
17#include <cmath>
18
19namespace o2
20{
21namespace zdc
22{
23
25{
26 public:
27 static constexpr double ZNDIMENSION[3] = {3.52, 3.52, 50.};
28 static constexpr double ZNFIBRE[3] = {0., 0.01825, 50.};
29 static constexpr double ZNSECTORS[2] = {2, 2};
30 static constexpr double ZNDIVISION[2] = {11, 11};
31 static constexpr double ZNGROOVES[3] = {0.03, 0.03, 50.};
32 static constexpr double ZNCPOSITION[3] = {0., 0., -11261.3};
33 static constexpr double ZNAPOSITION[3] = {0., 0., 11259.8};
34 static constexpr double ZNFIBREDIAMETER = 18;
35 //
36 static constexpr double ZPDIMENSION[3] = {11.2, 6., 75.};
37 static constexpr double ZPFIBRE[3] = {0., 0.0275, 75.};
38 static constexpr double ZPSECTORS[2] = {4, 1};
39 static constexpr double ZPDIVISION[2] = {7, 15};
40 static constexpr double ZPGROOVES[3] = {0.04, 0.04, 75.};
41 static constexpr double ZPCPOSITION[3] = {24.35, 0., -11253.3};
42 static constexpr double ZPAPOSITION[3] = {24.35, 0., 11251.8};
43 static constexpr double ZPFIBREDIAMETER = 28;
44
45 //
46 static constexpr double ZEMDIMENSION[6] = {20.614 / 2., 3.5, 3.5, 45., 0., 0.};
47 static constexpr double ZEMFIBRE[3] = {0., 0.0275, 4.92};
48 static constexpr double ZEMDIVISION[3] = {92, 0, 20};
49 //
50 // using 1.4142135 instead of sqrt(2.): check!
51 static constexpr double ZEMPOSITION[3] = {9.69, 0., 760.};
52
53 private:
54 static int32_t getDetector(const int32_t det);
55 static int32_t getSector(const int32_t tow);
56 static int32_t getVolumeId(const int32_t* vol);
57
58 ClassDefNV(Geometry, 1);
59};
60} // namespace zdc
61} // namespace o2
62
63#endif
static constexpr double ZNAPOSITION[3]
Definition Geometry.h:33
static constexpr double ZPFIBRE[3]
Definition Geometry.h:37
static constexpr double ZEMFIBRE[3]
Definition Geometry.h:47
static constexpr double ZNFIBRE[3]
Definition Geometry.h:28
static constexpr double ZPAPOSITION[3]
Definition Geometry.h:42
static constexpr double ZEMPOSITION[3]
Definition Geometry.h:51
static constexpr double ZNDIVISION[2]
Definition Geometry.h:30
static constexpr double ZPSECTORS[2]
Definition Geometry.h:38
static constexpr double ZPGROOVES[3]
Definition Geometry.h:40
static constexpr double ZPFIBREDIAMETER
Definition Geometry.h:43
static constexpr double ZNFIBREDIAMETER
Definition Geometry.h:34
static constexpr double ZEMDIVISION[3]
Definition Geometry.h:48
static constexpr double ZPCPOSITION[3]
Definition Geometry.h:41
static constexpr double ZNDIMENSION[3]
Definition Geometry.h:27
static constexpr double ZNGROOVES[3]
Definition Geometry.h:31
static constexpr double ZNSECTORS[2]
Definition Geometry.h:29
static constexpr double ZPDIVISION[2]
Definition Geometry.h:39
static constexpr double ZEMDIMENSION[6]
Definition Geometry.h:46
static constexpr double ZPDIMENSION[3]
Definition Geometry.h:36
static constexpr double ZNCPOSITION[3]
Definition Geometry.h:32
struct o2::upgrades_utils::@463 zdc
structure to keep FT0 information
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...