er  dev
ERTrack.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 ERTrack_H
9 #define ERTrack_H
10 
11 #include "TVector3.h"
12 
13 #include "FairMultiLinkedData.h"
14 
15 class ERTrack : public FairMultiLinkedData {
16  public:
17  ERTrack() = default;
18  ERTrack(const TVector3& detectorVertex, const TVector3& targetVertex, Double_t edep);
19  virtual void Print(const Option_t* opt = 0) const;
21  TVector3 DetectorVertex() const {return fDetectorVertex;}
22  TVector3 TargetVertex() const {return fTargetVertex;}
23  Double_t Edep() const {return fEdep;}
24  protected:
25  TVector3 fTargetVertex;
26  TVector3 fDetectorVertex;
27  Double_t fEdep = -1.;
28 
29  ClassDef(ERTrack,1)
30 };
31 
32 #endif
TVector3 DetectorVertex() const
Definition: ERTrack.h:21