#include <THit.h>
This is the particle hit class and contains items common to both gamma-rays and heavy-ions such as time and energy.
Definition at line 13 of file THit.h.
Public Member Functions | |
| THit (const Char_t *="", Float_t=0.0, Float_t=0.0) | |
| virtual | ~THit () |
| virtual void | Print (const Char_t *="") const |
| void | SetDetector (const Char_t *) |
| void | SetEnergy (Float_t) |
| void | SetTime (Float_t) |
| void | SetPosition (Float_t, Float_t, Float_t) |
| const Char_t * | GetDetector () const |
| Float_t | GetEnergy () const |
| Float_t | GetTime () const |
| TVector3 | GetMomentum () const |
| const TVector3 & | GetPosition () const |
| Double_t | DopplerCorrect (Float_t, Float_t) const |
Private Attributes | |
| TString | fDetector |
| TVector3 | fPosition |
| Float_t | fEnergy |
| Float_t | fTime |
|
||||||||||||||||
|
Default constructor. Initializes all members to 0. |
|
|
Default destructor. |
|
|
Print data held in this class.
|
|
|
Set the detector which this particle hit.
Definition at line 48 of file THit.h. References fDetector. |
|
|
Set the energy of the particle.
Definition at line 56 of file THit.h. References fEnergy. |
|
|
Set the time of the particle.
Definition at line 64 of file THit.h. References fTime. |
|
||||||||||||||||
|
Set the x,y,z position of the particle.
Definition at line 45 of file THit.cxx. References fPosition. |
|
|
Get the detector this particle hit.
Definition at line 72 of file THit.h. References fDetector. |
|
|
Get the energy associated with the particle.
|
|
|
Get the time associated with the particle.
|
|
|
Get the momentum of the particle in MeV/c.
|
|
|
Get the position vector.
THit h; : h.GetPosition().X(); |
|
||||||||||||
|
Doppler correct the gamma-ray energy, using a known recoil energy.
|
|
|
The detector the hit was in. |
|
|
The position vector. |
|
|
The calibrated energy. |
|
|
The calibrated time. |
1.3.9.1