er  dev
ERTelescopeTrack.h
1 /********************************************************************************
2  * Copyright (C) Joint Institute for Nuclear Research *
3  * *
4  * This software is distributed under the terms of the *
5  * GNU Lesser General Public Licence version 3 (LGPL) version 3, *
6  * copied verbatim in the file "LICENSE" *
7  ********************************************************************************/
8 #ifndef ERTelescopeTrack_H
9 #define ERTelescopeTrack_H
10 
11 #include "TNamed.h"
12 #include "TVector3.h"
13 
14 #include "FairMultiLinkedData.h"
15 
22 class ERTelescopeTrack : public FairMultiLinkedData{
23 
24 public:
26  ERTelescopeTrack() = default;
38  ERTelescopeTrack(const TVector3& targetVertex, const TVector3& xStationVertex, const TVector3& yStationVertex,
39  const TVector3& xStationLocalVertex, const TVector3& yStationLocalVertex,
40  Int_t xChannel, Int_t yChannel, Double_t xEdep, Double_t yEdep);
41  /* Accessors */
42  TVector3 GetTargetVertex() const {return fTargetVertex;}
43  TVector3 GetXStationVertex() const {return fXStationVertex;}
44  TVector3 GetYStationVertex() const {return fYStationVertex;}
45  TVector3 GetXStationLocalVertex() const {return fXStationLocalVertex;}
46  TVector3 GetYStationLocalVertex() const {return fYStationLocalVertex;}
47  TVector3 GetVertexInZPlane(Double_t z) const;
48  Double_t GetXInZPlane(Double_t z) const;
49  Double_t GetYInZPlane(Double_t z) const;
50  TVector3 GetDirection() const;
51  TVector3 GetBackDirection() const {return (-1.) * GetDirection();}
52  Int_t GetXChannel() const {return fXChannel;}
53  Int_t GetYChannel() const {return fYChannel;}
54  Double_t GetXEdep() const {return fXEdep;}
55  Double_t GetYEdep() const {return fYEdep;}
56 private:
57  TVector3 fTargetVertex;
58  TVector3 fXStationVertex;
59  TVector3 fYStationVertex;
60  TVector3 fXStationLocalVertex;
61  TVector3 fYStationLocalVertex;
62  Int_t fXChannel = -1;
63  Int_t fYChannel = -1;
64  Double_t fXEdep = -1.;
65  Double_t fYEdep = -1.;
66 
67  ClassDef(ERTelescopeTrack, 1)
68 };
69 
70 #endif
ERTelescopeTrack()=default
Default constructor.