BmnRoot
Loading...
Searching...
No Matches
BmnAlignCorrections.h
Go to the documentation of this file.
1#ifndef BMNALIGNCORRECTIONS_H
2#define BMNALIGNCORRECTIONS_H 1
3
4#include <iostream>
5#include <TNamed.h>
6#include <TVector3.h>
7
8using namespace std;
9
10class BmnAlignCorrections : public TNamed {
11public:
12
15
16 BmnAlignCorrections(TVector3);
17
19
20 void SetCorrections(Double_t x, Double_t y, Double_t z) {
21 fX = x;
22 fY = y;
23 fZ = z;
24 }
25
26 void SetCorrections(Double_t* corrs) {
27 fX = corrs[0];
28 fY = corrs[1];
29 fZ = corrs[2];
30 }
31
32 void SetX(Double_t x) {
33 fX = x;
34 }
35
36 void SetY(Double_t y) {
37 fY = y;
38 }
39
40 void SetZ(Double_t z) {
41 fZ = z;
42 }
43
44 TVector3 GetCorrections() {
45 return TVector3(fX, fY, fZ);
46 }
47
48private:
49 Double_t fX;
50 Double_t fY;
51 Double_t fZ;
52
53 ClassDef(BmnAlignCorrections, 1)
54};
55
56#endif
void SetCorrections(Double_t *corrs)
void SetCorrections(Double_t x, Double_t y, Double_t z)
STL namespace.