CbmRoot
CbmRichMirror.h
Go to the documentation of this file.
1 #ifndef CBMRICHMIRROR_H
2 #define CBMRICHMIRROR_H
3 
4 
5 #include "CbmRichRingLight.h"
6 #include "FairTask.h"
7 #include "TVector3.h"
8 #include <fstream>
9 #include <iomanip>
10 #include <iostream>
11 #include <vector>
12 
13 using namespace std;
14 
15 class TClonesArray;
16 class TH1D;
17 class TH2D;
18 
19 
21 public:
22  /*
23  * Constructor.
24  */
26  : fMirrorId("")
27  , fMomentum()
28  , fProjHit()
29  , fExtrapHit()
30  , fRotAngles()
31  , fRingL() {}
32 
33  /*
34  * Destructor.
35  */
36  virtual ~CbmRichMirror() {}
37 
38  // Modifiers:
39  void setMirrorId(string s) { fMirrorId = s; }
40  void setMomentum(TVector3 v) { fMomentum = v; }
41  void setProjHit(Double_t xX, Double_t yY) {
42  fProjHit.push_back(xX), fProjHit.push_back(yY);
43  }
44  void setExtrapHit(Double_t xX, Double_t yY) {
45  fExtrapHit.push_back(xX), fExtrapHit.push_back(yY);
46  }
47  void setRotAngles(Double_t xX, Double_t yY) {
48  fRotAngles.push_back(xX), fRotAngles.push_back(yY);
49  }
50  void setRingLight(CbmRichRingLight ringL) { fRingL = ringL; }
51 
52  // Accessors:
53  string getMirrorId() { return fMirrorId; }
54  TVector3 getMomentum() { return fMomentum; }
55  vector<Double_t> getProjHit() { return fProjHit; }
56  vector<Double_t> getExtrapHit() { return fExtrapHit; }
57  vector<Double_t> getRotAngles() { return fRotAngles; }
58  CbmRichRingLight getRingLight() { return fRingL; }
59 
60 
61 private:
62  string fMirrorId;
63  TVector3 fMomentum;
64  vector<Double_t> fProjHit;
65  vector<Double_t> fExtrapHit;
66  vector<Double_t> fRotAngles;
68 
71 
73 };
74 
75 #endif
CbmRichMirror::setRotAngles
void setRotAngles(Double_t xX, Double_t yY)
Definition: CbmRichMirror.h:47
CbmRichMirror
Definition: CbmRichMirror.h:20
CbmRichMirror::getMirrorId
string getMirrorId()
Definition: CbmRichMirror.h:53
CbmRichMirror::getRingLight
CbmRichRingLight getRingLight()
Definition: CbmRichMirror.h:58
CbmRichMirror::getRotAngles
vector< Double_t > getRotAngles()
Definition: CbmRichMirror.h:57
CbmRichMirror::getProjHit
vector< Double_t > getProjHit()
Definition: CbmRichMirror.h:55
CbmRichMirror::ClassDef
ClassDef(CbmRichMirror, 1)
CbmRichMirror::setRingLight
void setRingLight(CbmRichRingLight ringL)
Definition: CbmRichMirror.h:50
CbmRichMirror::setExtrapHit
void setExtrapHit(Double_t xX, Double_t yY)
Definition: CbmRichMirror.h:44
CbmRichMirror::operator=
CbmRichMirror operator=(const CbmRichMirror &)
CbmRichRingLight.h
CbmRichMirror::setMirrorId
void setMirrorId(string s)
Definition: CbmRichMirror.h:39
CbmRichMirror::fRingL
CbmRichRingLight fRingL
Definition: CbmRichMirror.h:67
CbmRichMirror::setProjHit
void setProjHit(Double_t xX, Double_t yY)
Definition: CbmRichMirror.h:41
CbmRichMirror::CbmRichMirror
CbmRichMirror(const CbmRichMirror &)
v
__m128 v
Definition: L1/vectors/P4_F32vec4.h:1
CbmRichMirror::getExtrapHit
vector< Double_t > getExtrapHit()
Definition: CbmRichMirror.h:56
CbmRichMirror::fProjHit
vector< Double_t > fProjHit
Definition: CbmRichMirror.h:64
CbmRichMirror::getMomentum
TVector3 getMomentum()
Definition: CbmRichMirror.h:54
CbmRichMirror::~CbmRichMirror
virtual ~CbmRichMirror()
Definition: CbmRichMirror.h:36
CbmRichMirror::fMomentum
TVector3 fMomentum
Definition: CbmRichMirror.h:63
CbmRichRingLight
Definition: CbmRichRingLight.h:39
CbmRichMirror::setMomentum
void setMomentum(TVector3 v)
Definition: CbmRichMirror.h:40
CbmRichMirror::fMirrorId
string fMirrorId
Definition: CbmRichMirror.h:62
CbmRichMirror::fRotAngles
vector< Double_t > fRotAngles
Definition: CbmRichMirror.h:66
CbmRichMirror::CbmRichMirror
CbmRichMirror()
Definition: CbmRichMirror.h:25
CbmRichMirror::fExtrapHit
vector< Double_t > fExtrapHit
Definition: CbmRichMirror.h:65