BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
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
10{
11 public:
12 /** Default constructor **/
14 // BmnMilleContainer(TString);
15
16 void SetStation(Int_t stat) { fStation = stat; }
17
19
20 void SetModule(Int_t mod) { fModule = mod; }
21
22 Int_t GetModule() { return fModule; }
23
24 void SetLocDers(vector<Double_t> vecX, vector<Double_t> vecY)
25 {
26 fLocDerX = vecX;
27 fLocDerY = vecY;
28 }
29
30 vector<Double_t> GetLocDers(TString lay)
31 {
32 return lay.Contains("X") ? fLocDerX : lay.Contains("Y") ? fLocDerY : throw;
33 }
34
35 void SetGlobDers(vector<Double_t> vecX, vector<Double_t> vecY)
36 {
37 fGlobDerX = vecX;
38 fGlobDerY = vecY;
39 }
40
41 vector<Double_t> GetGlobDers(TString lay)
42 {
43 return lay.Contains("X") ? fGlobDerX : lay.Contains("Y") ? fGlobDerY : throw;
44 }
45
46 void SetMeasures(Double_t measX, Double_t measY)
47 {
48 fMeasX = measX;
49 fMeasY = measY;
50 }
51
53
54 void SetDMeasures(Double_t dMeasX, Double_t dMeasY)
55 {
56 fdMeasX = dMeasX;
57 fdMeasY = dMeasY;
58 }
59
61
62 /** Destructor **/
63 virtual ~BmnMilleContainer() {}
64
65 private:
68
69 vector<Double_t> fLocDerX;
70 vector<Double_t> fLocDerY;
71 vector<Double_t> fGlobDerX;
72 vector<Double_t> fGlobDerY;
73
78
80};
81
82#endif
int Int_t
double Double_t
#define ClassDef(name, id)
vector< Double_t > fGlobDerX
vector< Double_t > fLocDerY
virtual ~BmnMilleContainer()
Destructor.
void SetModule(Int_t mod)
BmnMilleContainer()
Default constructor.
vector< Double_t > GetGlobDers(TString lay)
vector< Double_t > fGlobDerY
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)
vector< Double_t > fLocDerX
void SetDMeasures(Double_t dMeasX, Double_t dMeasY)
void SetStation(Int_t stat)
Bool_t Contains(const char *pat, ECaseCompare cmp=kExact) const
Definition json.hpp:4446