er  dev
ERBeamDetTrack.h
1 // -------------------------------------------------------------------------
2 // ----- ERBeamDetTrack header file -----
3 // ----- Created by -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef ERBeamDetTrack_H
7 #define ERBeamDetTrack_H
8 
9 #include "TString.h"
10 #include "TNamed.h"
11 #include "TVector3.h"
12 
13 class ERBeamDetTrack : public TNamed {
14 private:
15  Double_t fXt, fYt, fZt; // point coordinates on target
16  TVector3 fVectorOnTarget;
17 public:
18  ERBeamDetTrack() = default;
19  ERBeamDetTrack(TString name);
20  ERBeamDetTrack(Double_t xt, Double_t yt, Double_t zt, TVector3 v);
21  TVector3 GetVector(void) const {return fVectorOnTarget;}
22  TVector3 GetDirection() const;
23  Double_t GetTargetX(void) const {return fXt;}
24  Double_t GetTargetY(void) const {return fYt;}
25  Double_t GetTargetZ(void) const {return fZt;}
26  TVector3 GetTargetVertex() const {return TVector3(fXt,fYt,fZt);}
27  ClassDef(ERBeamDetTrack, 1)
28 };
29 
30 #endif