Project
Loading...
Searching...
No Matches
VSegmentation.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
19
20#ifndef ALICEO2_MFT_VSEGMENTATION_H_
21#define ALICEO2_MFT_VSEGMENTATION_H_
22
23#include "TNamed.h"
24#include "TGeoMatrix.h"
25
26namespace o2
27{
28namespace mft
29{
30
31class VSegmentation : public TNamed
32{
33
34 public:
36 VSegmentation(const VSegmentation& input);
37
38 ~VSegmentation() override = default;
39
41 void setPosition(const Double_t* pos) { mTransformation->SetTranslation(pos[0], pos[1], pos[2]); };
42
44 void setRotationAngles(const Double_t* ang);
45
47 void rotateX(const Double_t ang) { mTransformation->RotateX(ang); };
49 void rotateY(const Double_t ang) { mTransformation->RotateY(ang); };
51 void rotateZ(const Double_t ang) { mTransformation->RotateZ(ang); };
52
60 TGeoCombiTrans* getTransformation() const { return mTransformation; };
61
62 private:
63 TGeoCombiTrans* mTransformation;
67
68 ClassDefOverride(VSegmentation, 1);
69};
70} // namespace mft
71} // namespace o2
72
73#endif
uint16_t pos
Definition RawData.h:3
void rotateZ(const Double_t ang)
Rotate around Z axis, ang in deg.
void rotateY(const Double_t ang)
Rotate around Y axis, ang in deg.
void setRotationAngles(const Double_t *ang)
Set The rotation angles. Unit is [deg].
void rotateX(const Double_t ang)
Rotate around X axis, ang in deg.
TGeoCombiTrans * getTransformation() const
Returns the Transformation Combining a Rotation followed by a Translation.
void setPosition(const Double_t *pos)
Set Position of the Element. Unit is [cm].
~VSegmentation() override=default
a couple of static helper functions to create timestamp values for CCDB queries or override obsolete ...