BmnRoot
Loading...
Searching...
No Matches
BmnGemAlignmentCorrections.h
Go to the documentation of this file.
1#ifndef BMNGEMALIGNMENTCORRECTIONS_H
2#define BMNGEMALIGNMENTCORRECTIONS_H 1
3
4#include <iostream>
5#include <TNamed.h>
6#include <TVector3.h>
7
8using namespace std;
9
10class BmnGemAlignmentCorrections : public TNamed {
11public:
12
15
16 BmnGemAlignmentCorrections(Int_t, Int_t, TVector3);
17
19 };
20
21 void SetStation(Int_t num) {
22 fStation = num;
23 }
24
25 void SetModule(Int_t num) {
26 fModule = num;
27 }
28
29 void SetCorrections(Double_t x, Double_t y, Double_t z) {
30 fX = x;
31 fY = y;
32 fZ = z;
33 }
34
35 void SetX(Double_t x) {
36 fX = x;
37 }
38
39 void SetY(Double_t y) {
40 fY = y;
41 }
42
43 void SetZ(Double_t z) {
44 fZ = z;
45 }
46
47 Int_t GetStation() {
48 return fStation;
49 }
50
51 Int_t GetModule() {
52 return fModule;
53 }
54
55 TVector3 GetCorrections() {
56 return TVector3(fX, fY, fZ);
57 }
58
59
60private:
61 Int_t fStation;
62 Int_t fModule;
63 Double_t fX;
64 Double_t fY;
65 Double_t fZ;
66
67
69};
70
71#endif
void SetCorrections(Double_t x, Double_t y, Double_t z)
STL namespace.