BmnRoot
Loading...
Searching...
No Matches
BmnMilleContainer.h
Go to the documentation of this file.
1#ifndef BMNMILLECONTAINER_H
2#define BMNMILLECONTAINER_H
3
4#include <TNamed.h>
5#include <TVector2.h>
6
7using namespace std;
8
9class BmnMilleContainer : public TNamed {
10public:
11
14 // BmnMilleContainer(TString);
15
16 void SetStation(Int_t stat) {
17 fStation = stat;
18 }
19
20 Int_t GetStation() {
21 return fStation;
22 }
23
24 void SetModule(Int_t mod) {
25 fModule = mod;
26 }
27
28 Int_t GetModule() {
29 return fModule;
30 }
31
32 void SetLocDers(vector <Double_t> vecX, vector <Double_t> vecY) {
33 fLocDerX = vecX;
34 fLocDerY = vecY;
35 }
36
37 vector <Double_t> GetLocDers(TString lay) {
38 return lay.Contains("X") ? fLocDerX : lay.Contains("Y") ? fLocDerY : throw;
39 }
40
41 void SetGlobDers(vector <Double_t> vecX, vector <Double_t> vecY) {
42 fGlobDerX = vecX;
43 fGlobDerY = vecY;
44 }
45
46 vector <Double_t> GetGlobDers(TString lay) {
47 return lay.Contains("X") ? fGlobDerX : lay.Contains("Y") ? fGlobDerY : throw;
48 }
49
50 void SetMeasures(Double_t measX, Double_t measY) {
51 fMeasX = measX;
52 fMeasY = measY;
53 }
54
55 TVector2 GetMeasures() {
56 return TVector2(fMeasX, fMeasY);
57 }
58
59 void SetDMeasures(Double_t dMeasX, Double_t dMeasY) {
60 fdMeasX = dMeasX;
61 fdMeasY = dMeasY;
62 }
63
64 TVector2 GetDMeasures() {
65 return TVector2(fdMeasX, fdMeasY);
66 }
67
70 }
71
72private:
73 Int_t fStation;
74 Int_t fModule;
75
76 vector <Double_t> fLocDerX;
77 vector <Double_t> fLocDerY;
78 vector <Double_t> fGlobDerX;
79 vector <Double_t> fGlobDerY;
80
81 Double_t fMeasX;
82 Double_t fMeasY;
83 Double_t fdMeasX;
84 Double_t fdMeasY;
85
86 ClassDef(BmnMilleContainer, 1);
87};
88
89#endif
void SetModule(Int_t mod)
vector< Double_t > GetGlobDers(TString lay)
void SetMeasures(Double_t measX, Double_t measY)
void SetLocDers(vector< Double_t > vecX, vector< Double_t > vecY)
vector< Double_t > GetLocDers(TString lay)
void SetGlobDers(vector< Double_t > vecX, vector< Double_t > vecY)
void SetDMeasures(Double_t dMeasX, Double_t dMeasY)
void SetStation(Int_t stat)
STL namespace.