8 #include "ERTelescopeTrack.h" 11 const TVector3& yStationVertex,
const TVector3& xStationLocalVertex,
12 const TVector3& yStationLocalVertex,
const Int_t xChannel,
const Int_t yChannel,
13 const Double_t xEdep,
const Double_t yEdep)
14 : fTargetVertex(targetVertex), fXStationVertex(xStationVertex), fYStationVertex(yStationVertex),
15 fXStationLocalVertex(xStationLocalVertex), fYStationLocalVertex(yStationLocalVertex),
16 fXChannel(xChannel), fYChannel(yChannel), fXEdep(xEdep), fYEdep(yEdep)
20 TVector3 ERTelescopeTrack::GetDirection()
const {
21 auto direction = fXStationVertex - fTargetVertex;
26 TVector3 ERTelescopeTrack::GetVertexInZPlane(
const Double_t z)
const {
27 const auto direction = fXStationVertex - fTargetVertex;
28 return fTargetVertex + direction * ((z - fTargetVertex.Z()) / (direction.Z()));
31 Double_t ERTelescopeTrack::GetXInZPlane(Double_t z)
const {
32 return GetVertexInZPlane(z).X();
35 Double_t ERTelescopeTrack::GetYInZPlane(Double_t z)
const {
36 return GetVertexInZPlane(z).Y();
ERTelescopeTrack()=default
Default constructor.