CbmRoot
CbmLitTofTrack.h
Go to the documentation of this file.
1 /*
2  * CbmLitTofTrack.h
3  *
4  * Created on: Nov 4, 2013
5  * Author: andrey
6  */
7 
8 #ifndef CBMLITTOFTRACK_H_
9 #define CBMLITTOFTRACK_H_
10 
11 #include "data/CbmLitTrackParam.h"
12 class CbmLitHit;
13 class CbmLitTrack;
14 
22 public:
26  CbmLitTofTrack() : fTrack(NULL), fHit(NULL), fTrackParam(), fDistance(0.) {}
27 
28  CbmLitTofTrack(const CbmLitTofTrack&) = delete;
33  virtual ~CbmLitTofTrack() {}
34 
35  /* Getters */
36  const CbmLitTrack* GetTrack() const { return fTrack; }
37  const CbmLitHit* GetHit() const { return fHit; }
38  const CbmLitTrackParam* GetTrackParam() const { return &fTrackParam; }
39  litfloat GetDistance() const { return fDistance; }
40 
41  /* Setters */
42  void SetTrack(const CbmLitTrack* track) { fTrack = track; }
43  void SetHit(const CbmLitHit* hit) { fHit = hit; }
44  void SetTrackParam(const CbmLitTrackParam* par) { fTrackParam = *par; }
45  void SetDistance(litfloat distance) { fDistance = distance; }
46 
47 private:
48  const CbmLitTrack* fTrack; // Pointer to track
49  const CbmLitHit* fHit; // Pointer to TOF hit
50  CbmLitTrackParam fTrackParam; // Track parameters.
51  litfloat
52  fDistance; // Contribution to chi-square of updated track parameters and hit.
53 };
54 
55 #endif /* CBMLITTOFTRACK_H_ */
CbmLitTrackParam.h
Data class for track parameters.
CbmLitTofTrack::SetTrack
void SetTrack(const CbmLitTrack *track)
Definition: CbmLitTofTrack.h:42
litfloat
double litfloat
Definition: CbmLitFloat.h:15
CbmLitTofTrack::fDistance
litfloat fDistance
Definition: CbmLitTofTrack.h:52
CbmLitTrackParam
Data class for track parameters.
Definition: CbmLitTrackParam.h:29
CbmLitTofTrack::GetHit
const CbmLitHit * GetHit() const
Definition: CbmLitTofTrack.h:37
CbmLitTofTrack::fTrack
const CbmLitTrack * fTrack
Definition: CbmLitTofTrack.h:48
CbmLitTofTrack::GetDistance
litfloat GetDistance() const
Definition: CbmLitTofTrack.h:39
CbmLitTofTrack::GetTrack
const CbmLitTrack * GetTrack() const
Definition: CbmLitTofTrack.h:36
CbmLitHit
Base data class for hits.
Definition: CbmLitHit.h:26
CbmLitTofTrack
Definition: CbmLitTofTrack.h:21
CbmLitTrack
Base data class for track.
Definition: CbmLitTrack.h:30
CbmLitTofTrack::SetHit
void SetHit(const CbmLitHit *hit)
Definition: CbmLitTofTrack.h:43
CbmLitTofTrack::SetDistance
void SetDistance(litfloat distance)
Definition: CbmLitTofTrack.h:45
CbmLitTofTrack::CbmLitTofTrack
CbmLitTofTrack(const CbmLitTofTrack &)=delete
CbmLitTofTrack::GetTrackParam
const CbmLitTrackParam * GetTrackParam() const
Definition: CbmLitTofTrack.h:38
CbmLitTofTrack::CbmLitTofTrack
CbmLitTofTrack()
Constructor.
Definition: CbmLitTofTrack.h:26
CbmLitTofTrack::~CbmLitTofTrack
virtual ~CbmLitTofTrack()
Destructor.
Definition: CbmLitTofTrack.h:33
CbmLitTofTrack::fHit
const CbmLitHit * fHit
Definition: CbmLitTofTrack.h:49
CbmLitTofTrack::SetTrackParam
void SetTrackParam(const CbmLitTrackParam *par)
Definition: CbmLitTofTrack.h:44
CbmLitTofTrack::operator=
CbmLitTofTrack & operator=(const CbmLitTofTrack &)=delete
CbmLitTofTrack::fTrackParam
CbmLitTrackParam fTrackParam
Definition: CbmLitTofTrack.h:50