travex
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Hit.h
Go to the documentation of this file.
1 #ifndef tvx_Hit_h
2 #define tvx_Hit_h
3 
4 #ifdef __CINT__
5 #include <stdint.h>
6 #endif
7 
8 #include "TObject.h"
9 #include "TVector3.h"
10 
11 #include "GenericHit.h"
12 
13 
14 namespace tvx {
15 
16 
21 class Hit : public TObject, public GenericHit<TVector3>
22 {
23 public:
24 
25  Hit();
26 
27  const TVector3& GetPosition() const { return fPosition; }
28 
29  virtual void Print(Option_t *opt = "") const;
30 
31  friend bool operator< (const Hit& lhs, const Hit& rhs);
32 
33 private:
34 
35  TVector3 fPosition;
36  std::uint8_t fTimesUsed;
37 
38  ClassDef(Hit, 1)
39 };
40 
41 
42 bool operator< (const tvx::Hit& lhs, const tvx::Hit& rhs);
43 
44 }
45 
46 
47 #endif
std::uint8_t fTimesUsed
The number of tracks this hit was assigned to.
Definition: Hit.h:36
Hit()
Definition: Hit.cxx:5
friend bool operator<(const Hit &lhs, const Hit &rhs)
Definition: Event.h:12
A simple class to contain basic properties of a hit registered by an active material in a detector...
Definition: Hit.h:21
const TVector3 & GetPosition() const
Definition: Hit.h:27
TVector3 fPosition
Global coordinates of the hit in the STAR CS.
Definition: Hit.h:35
bool operator<(const tvx::Hit &lhs, const tvx::Hit &rhs)
Definition: Hit.cxx:18
virtual void Print(Option_t *opt="") const
Definition: Hit.cxx:12
An abstract base class interface with a basic functionality common to all reconstructed hits register...
Definition: GenericHit.h:13