travex
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TrackNode.h
Go to the documentation of this file.
1 #ifndef tvx_TrackNode_h
2 #define tvx_TrackNode_h
3 
4 #include <set>
5 
6 #include "TObject.h"
7 #include "TVector3.h"
8 
9 #include "travex/Hit.h"
11 
12 
13 namespace tvx {
14 
15 
16 
17 class TrackNode : public TObject, public GenericTrackNode<TVector3, std::set<Hit> >
18 {
19 public:
20 
21  TrackNode();
22 
23  const TVector3& GetPosition() const { return fPosition; }
24  const TVector3& GetMomentum() const { return fMomentum; }
25  const TVector3& GetError() const { return fError; }
26  const TVector3& GetProjError() const { return fProjError; }
27  const Hit* GetAcceptedHit() const { return fAcceptedHit; }
29 
30  virtual void Print(Option_t *opt = "") const;
31 
32  friend bool operator< (const TrackNode& lhs, const TrackNode& rhs);
33 
34 protected:
35 
36  TVector3 fPosition;
37  TVector3 fMomentum;
38  TVector3 fError;
39  TVector3 fProjError;
40  const Hit* fAcceptedHit;
42 
43  ClassDef(TrackNode, 1)
44 };
45 
46 
47 bool operator< (const TrackNode& lhs, const TrackNode& rhs);
48 
49 }
50 
51 
52 #endif
TVector3 fMomentum
Track momentum vector in global CS.
Definition: TrackNode.h:37
const Hit * fAcceptedHit
Pointer to the hit associated with this node by the reconstruction algorithm, if any.
Definition: TrackNode.h:40
const TVector3 & GetPosition() const
Definition: TrackNode.h:23
Definition: Event.h:12
TVector3 fError
Diagonal elements of error matrix after final fit.
Definition: TrackNode.h:38
friend bool operator<(const TrackNode &lhs, const TrackNode &rhs)
const TVector3 & GetError() const
Definition: TrackNode.h:25
virtual void Print(Option_t *opt="") const
Definition: TrackNode.cxx:17
A simple class to contain basic properties of a hit registered by an active material in a detector...
Definition: Hit.h:21
const TrackNodeHitContainer_t & GetCandidateHits() const
Definition: TrackNode.h:28
TVector3 fPosition
Coordinates of the track state/node position.
Definition: TrackNode.h:36
const TVector3 & GetMomentum() const
Definition: TrackNode.h:24
TrackNodeHitContainer_t fCandidateHits
Collection of hits in some proximity of mean track projection.
Definition: TrackNode.h:41
bool operator<(const tvx::Hit &lhs, const tvx::Hit &rhs)
Definition: Hit.cxx:18
TVector3 fProjError
The projection error to the node before the fit.
Definition: TrackNode.h:39
A templated abstract base class interface with a basic functionality common to all track nodes identi...
const Hit * GetAcceptedHit() const
Definition: TrackNode.h:27
const TVector3 & GetProjError() const
Definition: TrackNode.h:26