// ---------------------------------------------------------------------------- // $Id: LCDEDeposit.h,v 1.3 2001/06/19 16:54:36 toshi Exp $ // ---------------------------------------------------------------------------- // // $Log: LCDEDeposit.h,v $ // Revision 1.3 2001/06/19 16:54:36 toshi // Just add $ID: $ in the top of this file. // // Revision 1.2 2001/04/28 21:52:42 toshi // Start to use CVS. // // // 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