// LCDEDeposit.h
// Sep.10 1998 R.Shanks  Creation of EDeposit class
// Feb. 5 1999 R.Shanks  EDeposit class is remade to simplify Event structure
//                       and speed up event reconstruction.
// 

#ifndef LCDEDEPOSIT
#define LCDEDEPOSIT

#include "TMath.h"
#include "TObject.h"

class LCDEDeposit : public TObject {
 public:
  LCDEDeposit()                          : m_index(-1)   , m_EDep(0)    {}
  LCDEDeposit(Double_t EDep)             : m_index(-1)   , m_EDep(EDep) {}
  LCDEDeposit(Int_t index,Double_t EDep) : m_index(index), m_EDep(EDep) {}
  ~LCDEDeposit(){}

  Double_t GetEDeposit()              { return m_EDep; }
  void     SetEDeposit(Double_t edep) { m_EDep = edep; }

  Int_t    GetPart()           { return m_index; }
  void     SetPart(Int_t mcid) { m_index = mcid; }
  
private:
  Int_t    m_index; // Index in particle TObjArray of particle making deposit
  Float_t  m_EDep;  // Energy deposited by the particle in a single interaction
  
public:
  ClassDef(LCDEDeposit,1)// Energy deposited by a particle 
};

#endif


