// LCDVXD_Hit.h
// Feb 05,1999 Rob Shanks, VXD_Hit class is remade to speed up 
//                        event reconstruction.
// Sep 10,1998 Rob Shanks, Creation of VXD_Hit class 
// 

#ifndef LCDVXDHIT_H
#define LCDVXDHIT_H

#include "TObject.h"
#include "LCDTkID.h"

class LCDVXD_Hit: public TObject {
public:
  LCDVXD_Hit(LCDTkID* ID, 
	     Double_t *position, 
	     Double_t Eloss, 
	     Double_t time,
	     Int_t index);
  LCDVXD_Hit(){m_index = -1;};
  ~LCDVXD_Hit() {};
  
  LCDTkID   GetLayer()    {return m_ID;}; 
  Double_t* GetPosition() {return m_position;};
  Double_t  GetEloss()    {return m_Eloss;};
  Double_t  GetTime()     {return m_time;};
  Int_t     GetParticle() {return m_index;};
  
private:
  LCDTkID  m_ID;      // Binary descriptor for the hit
  Double_t m_position[3];// Hit position in the vertex detector
  Float_t  m_Eloss;   // Energy deposited by particle in vertex detector
  Float_t  m_time;    // Time of energy deposition
  Int_t    m_index;   // Index of McPart obj responsible for energy deposition

public:  
  ClassDef(LCDVXD_Hit,2)// Instance of energy deposition in vertex detector
};

#endif

