Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

THit Class Reference

#include <THit.h>

List of all members.


Detailed Description

Event hit class.

This is the particle hit class and contains items common to both gamma-rays and heavy-ions such as time and energy.

Author:
JEP.
Version:
1.0.
Date:
June 2005.

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


Constructor & Destructor Documentation

THit const Char_t *  detName = "",
Float_t  e = 0.0,
Float_t  t = 0.0
 

Default constructor. Initializes all members to 0.

Definition at line 21 of file THit.cxx.

~THit  )  [virtual]
 

Default destructor.

Definition at line 28 of file THit.cxx.


Member Function Documentation

void Print const Char_t *  option = ""  )  const [virtual]
 

Print data held in this class.

Parameters:
[in] option The option is currently unimplemented.

Definition at line 34 of file THit.cxx.

References fDetector, fEnergy, fPosition, and fTime.

void SetDetector const Char_t *  detector  )  [inline]
 

Set the detector which this particle hit.

Parameters:
[in] detector The detector the particle hit.

Definition at line 48 of file THit.h.

References fDetector.

void SetEnergy Float_t  energy  )  [inline]
 

Set the energy of the particle.

Parameters:
[in] energy The particle energy.

Definition at line 56 of file THit.h.

References fEnergy.

void SetTime Float_t  time  )  [inline]
 

Set the time of the particle.

Parameters:
[in] time The particle time.

Definition at line 64 of file THit.h.

References fTime.

void SetPosition Float_t  x,
Float_t  y,
Float_t  z
 

Set the x,y,z position of the particle.

Parameters:
[in] x The x position.
[in] y The y position.
[in] z The z position.

Definition at line 45 of file THit.cxx.

References fPosition.

const Char_t * GetDetector  )  const [inline]
 

Get the detector this particle hit.

Returns:
The detector hit.

Definition at line 72 of file THit.h.

References fDetector.

Float_t GetEnergy  )  const [inline]
 

Get the energy associated with the particle.

Returns:
The energy of the particle.

Definition at line 80 of file THit.h.

Float_t GetTime  )  const [inline]
 

Get the time associated with the particle.

Returns:
The time of the particle.

Definition at line 88 of file THit.h.

TVector3 GetMomentum  )  const
 

Get the momentum of the particle in MeV/c.

Returns:
A TVector3 of the particle momentum.

Definition at line 55 of file THit.cxx.

References fEnergy, and fPosition.

const TVector3 & GetPosition  )  const [inline]
 

Get the position vector.

Returns:
The particle coordinates vector.
For example, to get the X coordinate do:
 THit h;
               :
      h.GetPosition().X();

Definition at line 96 of file THit.h.

Double_t DopplerCorrect Float_t  energy,
Float_t  mass
const
 

Doppler correct the gamma-ray energy, using a known recoil energy.

Parameters:
[in] energy The energy of the recoil in MeV.
[in] mass The mass of the recoil in amu.
Returns:
The Doppler corrected energy.

Definition at line 63 of file THit.cxx.

References fEnergy, and fPosition.


Member Data Documentation

TString fDetector [private]
 

The detector the hit was in.

Definition at line 32 of file THit.h.

TVector3 fPosition [private]
 

The position vector.

Definition at line 35 of file THit.h.

Float_t fEnergy [private]
 

The calibrated energy.

Definition at line 38 of file THit.h.

Float_t fTime [private]
 

The calibrated time.

Definition at line 41 of file THit.h.


The documentation for this class was generated from the following files:
Generated on Mon Jan 8 11:54:35 2007 for DragonRoot by  doxygen 1.3.9.1