Track3D.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////
2 // \version $Id: Track3D.cxx,v 1.0 2013-06-25 tamsett
3 //
4 // \brief Definition of Track3D object
5 //
6 // \author tamsett@fnal.gov
7 //
8 ////////////////////////////////////////////////////////////////////////////
9 #ifndef NOVADDT_TRACK3D_H
10 #define NOVADDT_TRACK3D_H
11 
13 
14 #include "TVector3.h"
15 //---------------------------------------------------------------------
16 namespace novaddt {
17  class Track3D{
18  public:
19  Track3D();
20  private:
21  bool fIs3D; // true if track is in both xz & yz views
22  int fView; // 0: yz, 1: xz, 2: xyz
23  TVector3 fStart; // track start
24  TVector3 fEnd; // track end
25 #ifndef __GCCXML__
26  public:
27  explicit Track3D(
28  bool const& is3D,
29  int const& view,
30  TVector3 const& start,
31  TVector3 const& end
32  );
33  bool const& Is3D() const;
34  int const& View() const;
35  TVector3 const& Start() const;
36  TVector3 const& End() const;
37 #endif
38  public:
39  ~Track3D();
40 
41  };
42 #ifndef __GCCXML__
43  inline bool const& Track3D::Is3D() const { return fIs3D; }
44  inline int const& Track3D::View() const { return fView; }
45  inline TVector3 const& Track3D::Start() const { return fStart; }
46  inline TVector3 const& Track3D::End() const { return fEnd; }
47 #endif
48 }
49 //---------------------------------------------------------------------
50 #endif //NOVADDT_TRACK3D_H
TVector3 fStart
Definition: Track3D.h:23
TVector3 const & End() const
Definition: Track3D.h:46
TVector3 fEnd
Definition: Track3D.h:24
TVector3 const & Start() const
Definition: Track3D.h:45
int const & View() const
Definition: Track3D.h:44
bool const & Is3D() const
Definition: Track3D.h:43