er  dev
ERNDTrack.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 ERNDTrack_H
9 #define ERNDTrack_H
10 
11 #include "TVector3.h"
12 
13 class ERNDTrack : public TObject {
14  public:
15  ERNDTrack() = default;
16  ERNDTrack(const TVector3& detectorVertex, const TVector3& targetVertex,
17  float edep, float time, float tac);
19  TVector3 DetectorVertex() const {return fDetectorVertex;}
20  TVector3 TargetVertex() const {return fTargetVertex;}
21  TVector3 Direction() const;
22  float Edep() const {return fEdep;}
23  float Time() const {return fTime;}
24  float TAC() const {return fTAC;}
25  protected:
26  TVector3 fTargetVertex;
27  TVector3 fDetectorVertex;
28  float fEdep = -1.;
29  float fTime = -1.;
30  float fTAC = -1.;
31  ClassDef(ERNDTrack,1)
32 };
33 
34 #endif
TVector3 DetectorVertex() const
Definition: ERNDTrack.h:19