////////////////////////////////////////////////////////////////////////////
//
// The EDeposit class stores the energy deposited by a particular particle
// in a single interaction.
//
////////////////////////////////////////////////////////////////////////////
#include "EDeposit.h"
#include "TMath.h"
ClassImp(EDeposit)
///_________________________________________________________________________
EDeposit::EDeposit() {
// Default constructor
m_index = -1;
m_EDep=0.;
}
///_________________________________________________________________________
EDeposit::EDeposit(Int_t index,Float_t EDep) {
// Constructor to catalogue an energy deposition of EDep
m_index = index;
m_EDep = EDep;
}
///_________________________________________________________________________
Float_t EDeposit::GetEDeposit() {
// Return the energy deposited in this instance
return m_EDep;
}
///_______________________________________________________________________
Int_t EDeposit::GetPart(){
// Return the index of the particle doing the deposition.
return m_index;
}
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.