Project
Loading...
Searching...
No Matches
MisalignmentParameter.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
16
17#include "FairParamList.h"
18
19using namespace o2::its;
20
22
23MisalignmentParameter::MisalignmentParameter(const char* name, const char* title, const char* context)
24 : FairParGenericSet(name, title, context),
25 mShiftX(),
26 mShiftY(),
27 mShiftZ(),
28 mRotX(),
29 mRotY(),
30 mRotZ(),
31 mNumberOfDetectors(0)
32{
33}
34
38{
39 if (!list) {
40 return;
41 }
42
43 list->add("NumberOfDetectors", mNumberOfDetectors);
44 list->add("ShiftX", mShiftX);
45 list->add("ShiftY", mShiftY);
46 list->add("ShiftZ", mShiftZ);
47 list->add("RotationX", mRotX);
48 list->add("RotationY", mRotY);
49 list->add("RotationZ", mRotZ);
50}
51
53{
54 if (!list) {
55 return kFALSE;
56 }
57
58 if (!list->fill("NumberOfDetectors", &mNumberOfDetectors)) {
59 return kFALSE;
60 }
61
62 mShiftX.Set(mNumberOfDetectors);
63 if (!list->fill("ShiftX", &mShiftX)) {
64 return kFALSE;
65 }
66
67 mShiftY.Set(mNumberOfDetectors);
68 if (!list->fill("ShiftY", &mShiftY)) {
69 return kFALSE;
70 }
71
72 mShiftZ.Set(mNumberOfDetectors);
73 if (!list->fill("ShiftZ", &mShiftZ)) {
74 return kFALSE;
75 }
76
77 mRotX.Set(mNumberOfDetectors);
78 if (!list->fill("RotationX", &mRotX)) {
79 return kFALSE;
80 }
81
82 mRotY.Set(mNumberOfDetectors);
83 if (!list->fill("RotationY", &mRotY)) {
84 return kFALSE;
85 }
86
87 mRotZ.Set(mNumberOfDetectors);
88 if (!list->fill("RotationZ", &mRotZ)) {
89 return kFALSE;
90 }
91
92 return kTRUE;
93}
ClassImp(o2::its::MisalignmentParameter)
Definition of the MisalignmentParameter class.
void putParams(FairParamList *) override
MisalignmentParameter(const char *name="MisalignmentParameter", const char *title="Misalignment parameter for AliceO2ITSHitProducerIdealMisallign Parameters", const char *context="TestDefaultContext")
Bool_t getParams(FairParamList *) override
GLuint const GLchar * name
Definition glcorearb.h:781
Definition list.h:40