er  dev
ERBeamDetTrack.cxx
1 #include "ERBeamDetTrack.h"
2 
3 //--------------------------------------------------------------------------------------------------
4 ERBeamDetTrack::ERBeamDetTrack(TString name) : TNamed(name, name)
5 {}
6 //--------------------------------------------------------------------------------------------------
7 ERBeamDetTrack::ERBeamDetTrack(Double_t xt, Double_t yt, Double_t zt, TVector3 v) {
8  fXt = xt;
9  fYt = yt;
10  fZt = zt;
11  fVectorOnTarget = v;
12 }
13 //--------------------------------------------------------------------------------------------------
14 TVector3 ERBeamDetTrack::GetDirection() const {
15  TVector3 direction = fVectorOnTarget;
16  direction.SetMag(1.);
17  return direction;
18 }
19 //--------------------------------------------------------------------------------------------------
20 ClassImp(ERBeamDetTrack)