Track.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////////
2 // \version $Id: Track.h,v 1.5 2012-11-20 20:26:04 brebel Exp $
3 //
4 // \brief Definition of Track object
5 //
6 // \author brebel@fnal.gov
7 //
8 ////////////////////////////////////////////////////////////////////////////
9 #ifndef NOVADDT_TRACK_H
10 #define NOVADDT_TRACK_H
11 
13 #include <stdint.h>
14 
15 namespace novaddt {
16 
17  class Track{
18 
19  public:
20 
21  Track();
22 
23  private:
24 
25  uint8_t fView; // 0: yz ; 1: xz
26  float fInverseBeta; // reversed velocity projection
27  float fStartV; // track start v
28  float fStartZ; // track start z
29  TDC fStartT; // the TDC of the "start" hit, may not be the earliest one
30  float fEndV; // track end x
31  float fEndZ; // track end z
32  TDC fEndT; // the TDC of the "start" hit, may not be the latest one
33 
34 #ifndef __GCCXML__
35  public:
36 
37  explicit Track(
38  uint8_t const& view,
39  float const& inversebeta,
40  float const& startv,
41  float const& startz,
42  TDC const& startt,
43  float const& endv,
44  float const& endz,
45  TDC const& endt
46  );
47 
48  uint8_t const& View() const;
49  float const& InverseBeta() const;
50  float const& StartV() const;
51  float const& StartZ() const;
52  TDC const& StartT() const;
53  float const& EndV() const;
54  float const& EndZ() const;
55  TDC const& EndT() const;
56 
57 #endif
58  public:
59  ~Track();
60 
61  };
62 
63 #ifndef __GCCXML__
64 
65  inline uint8_t const& Track::View() const { return fView; }
66  inline float const& Track::InverseBeta() const { return fInverseBeta; }
67  inline float const& Track::StartV() const { return fStartV; }
68  inline float const& Track::StartZ() const { return fStartZ; }
69  inline TDC const& Track::StartT() const { return fStartT; }
70  inline float const& Track::EndV() const { return fEndV; }
71  inline float const& Track::EndZ() const { return fEndZ; }
72  inline TDC const& Track::EndT() const { return fEndT; }
73 
74 #endif
75 
76 }
77 #endif //NOVADDT_TRACK_H
float fEndV
Definition: Track.h:30
float const & StartZ() const
Definition: Track.h:68
TDC fEndT
Definition: Track.h:32
float fStartV
Definition: Track.h:27
TDC fStartT
Definition: Track.h:29
uint8_t const & View() const
Definition: Track.h:65
TDC const & StartT() const
Definition: Track.h:69
float const & EndV() const
Definition: Track.h:70
float fStartZ
Definition: Track.h:28
TDC const & EndT() const
Definition: Track.h:72
uint8_t fView
Definition: Track.h:25
float const & StartV() const
Definition: Track.h:67
float fInverseBeta
Definition: Track.h:26
float const & InverseBeta() const
Definition: Track.h:66
float const & EndZ() const
Definition: Track.h:71
float fEndZ
Definition: Track.h:31