travex
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Track.h
Go to the documentation of this file.
1 #ifndef tvx_Track_h
2 #define tvx_Track_h
3 
4 #include <set>
5 
6 #include "TObject.h"
7 
8 #include "travex/GenericTrack.h"
9 #include "travex/TrackNode.h"
10 
11 
12 namespace tvx {
13 
14 class Event;
15 class Hit;
16 
17 
23 class Track : public TObject, public GenericTrack<Event, std::set<TrackNode> >
24 {
25 public:
26 
27  Track();
28  explicit Track(Event* event);
29 
30  virtual Event* GetParentEvent() { return fEvent; }
31  virtual const TrackNodeContainer_t& GetNodes() const { return fNodes; }
32  virtual double GetEnergyLosses() const { return fEnergyLosses; }
33  virtual AddHitResult_t AddToParentEvent(const Hit& hit);
34  virtual void Print(Option_t *opt = "") const;
35 
36 protected:
37 
40 
43 
45  double fEnergyLosses;
46 
47  ClassDef(Track, 1)
48 };
49 
50 }
51 
52 #endif
TrackNodeContainer_t fNodes
Container with all available track nodes/states.
Definition: Track.h:42
Definition: Event.h:12
virtual const TrackNodeContainer_t & GetNodes() const
Definition: Track.h:31
Track()
Constructs an orphan empty Track not associated with any Event.
Definition: Track.cxx:11
virtual AddHitResult_t AddToParentEvent(const Hit &hit)
Definition: Track.cxx:28
A simple class to contain basic properties of a hit registered by an active material in a detector...
Definition: Hit.h:21
A simple persistent class describing a reconstructed charged particle track with a collection of trac...
Definition: Track.h:23
A templated abstract base class interface with a basic functionality common to all tracks reconstruct...
Definition: GenericTrack.h:13
A simple persistent event container holding collections of tracks and hits.
Definition: Event.h:22
virtual Event * GetParentEvent()
Definition: Track.h:30
double fEnergyLosses
Total track energy lost in all volumes.
Definition: Track.h:45
virtual double GetEnergyLosses() const
Definition: Track.h:32
Event * fEvent
Pointer to mother event containing this track.
Definition: Track.h:39
virtual void Print(Option_t *opt="") const
Definition: Track.cxx:37