// Tracker_Hit.h
// Sept 10,1998 Rob Shanks, Creation of Tracker_Hit class
// Feb 5,1999 Rob Shanks, Tracker_Hit class is remade to speed up 
//                        event reconstruction.
// 

#ifndef TRACHERHIT
#define TRACKERHIT

#include "McPart.h"
#include "TMath.h"
#include "TObject.h"
#include "TkID.h"

class Tracker_Hit: public TObject {
private:
  TkID  m_ID;           // Hit identifier
  Float_t m_position[3];// Particle position in the tracker at deposition
  Float_t m_Eloss;      // Energy deposited by particle in tracker
  Float_t m_time;       // Time of energy deposition
  Int_t m_index;   // Index of McPart obj responsible for energy deposition
public:
  Tracker_Hit(TkID* ID,Float_t *position, Float_t Eloss,
	      Float_t time, Int_t index);
  Tracker_Hit();
  ~Tracker_Hit() {};
  TkID GetLayer(){return m_ID;}; 
  Float_t* GetPosition(){return m_position;};
  Float_t GetEloss(){return m_Eloss;};
  Float_t GetTime(){return m_time;};
  Int_t GetParticle(){return m_index;};

  ClassDef(Tracker_Hit,1)// Instance of energy deposition in tracker 
};

#endif
