Project
Loading...
Searching...
No Matches
GPUTPCGMPolynomialField.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
14
16using namespace o2::gpu;
17
18#include "GPUCommonConstants.h"
19#include <iostream>
20#include <iomanip>
21#include <limits>
22
23using namespace std;
24
26{
27 const double kCLight = gpu_common_constants::kCLight;
28 typedef std::numeric_limits<float> flt;
29 cout << std::scientific;
30 cout << std::setprecision(flt::max_digits10 + 2);
31 cout << " nominal field " << mNominalBz << " [kG * (2.99792458E-4 GeV/c/kG/cm)]"
32 << " == " << mNominalBz / kCLight << " [kG]" << endl;
33
34 cout << " TpcBx[NTPCM] = { ";
35 for (int32_t i = 0; i < NTPCM; i++) {
36 cout << mTpcBx[i];
37 if (i < NTPCM - 1) {
38 cout << ", ";
39 } else {
40 cout << " };" << endl;
41 }
42 }
43
44 cout << " TpcBy[NTPCM] = { ";
45 for (int32_t i = 0; i < NTPCM; i++) {
46 cout << mTpcBy[i];
47 if (i < NTPCM - 1) {
48 cout << ", ";
49 } else {
50 cout << " };" << endl;
51 }
52 }
53
54 cout << " TpcBz[NTPCM] = { ";
55 for (int32_t i = 0; i < NTPCM; i++) {
56 cout << mTpcBz[i];
57 if (i < NTPCM - 1) {
58 cout << ", ";
59 } else {
60 cout << " };" << endl;
61 }
62 }
63
64 cout << "TRD field: \n"
65 << endl;
66
67 cout << " TrdBx[NTRDM] = { ";
68 for (int32_t i = 0; i < NTRDM; i++) {
69 cout << mTrdBx[i];
70 if (i < NTRDM - 1) {
71 cout << ", ";
72 } else {
73 cout << " };" << endl;
74 }
75 }
76
77 cout << " TrdBy[NTRDM] = { ";
78 for (int32_t i = 0; i < NTRDM; i++) {
79 cout << mTrdBy[i];
80 if (i < NTRDM - 1) {
81 cout << ", ";
82 } else {
83 cout << " };" << endl;
84 }
85 }
86
87 cout << " TrdBz[NTRDM] = { ";
88 for (int32_t i = 0; i < NTRDM; i++) {
89 cout << mTrdBz[i];
90 if (i < NTRDM - 1) {
91 cout << ", ";
92 } else {
93 cout << " };" << endl;
94 }
95 }
96
97 cout << "ITS field: \n"
98 << endl;
99
100 cout << " ItsBx[NITSM] = { ";
101 for (int32_t i = 0; i < NITSM; i++) {
102 cout << mItsBx[i];
103 if (i < NITSM - 1) {
104 cout << ", ";
105 } else {
106 cout << " };" << endl;
107 }
108 }
109
110 cout << " ItsBy[NITSM] = { ";
111 for (int32_t i = 0; i < NITSM; i++) {
112 cout << mItsBy[i];
113 if (i < NITSM - 1) {
114 cout << ", ";
115 } else {
116 cout << " };" << endl;
117 }
118 }
119
120 cout << " ItsBz[NITSM] = { ";
121 for (int32_t i = 0; i < NITSM; i++) {
122 cout << mItsBz[i];
123 if (i < NITSM - 1) {
124 cout << ", ";
125 } else {
126 cout << " };" << endl;
127 }
128 }
129}
int32_t i
static constexpr const int32_t NTPCM
static constexpr const int32_t NTRDM
static constexpr const int32_t NITSM