#include "Riostream.h"
#include "Rtypes.h"
#include "AliPMDsdigit.h"
#include <stdio.h>
ClassImp(AliPMDsdigit)
AliPMDsdigit::AliPMDsdigit():
fTrNumber(0),
fTrPid(0),
fDet(0),
fSMN(0),
fRow(0),
fColumn(0),
fEdep(0.)
{
}
AliPMDsdigit::AliPMDsdigit(Int_t trnumber, Int_t trpid, Int_t det, Int_t smn,
Int_t irow, Int_t icol, Float_t edep):
fTrNumber(trnumber),
fTrPid(trpid),
fDet(det),
fSMN(smn),
fRow(irow),
fColumn(icol),
fEdep(edep)
{
}
AliPMDsdigit::AliPMDsdigit(AliPMDsdigit *pmdsdigit):
fTrNumber(0),
fTrPid(0),
fDet(0),
fSMN(0),
fRow(0),
fColumn(0),
fEdep(0.)
{
*this = *pmdsdigit;
}
AliPMDsdigit::AliPMDsdigit(const AliPMDsdigit& pmdsdigit):
TObject(pmdsdigit),
fTrNumber(pmdsdigit.fTrNumber),
fTrPid(pmdsdigit.fTrPid),
fDet(pmdsdigit.fDet),
fSMN(pmdsdigit.fSMN),
fRow(pmdsdigit.fRow),
fColumn(pmdsdigit.fColumn),
fEdep(pmdsdigit.fEdep)
{
}
AliPMDsdigit & AliPMDsdigit::operator=(const AliPMDsdigit& pmdsdigit)
{
if(this != &pmdsdigit)
{
fTrNumber = pmdsdigit.fTrNumber;
fTrPid = pmdsdigit.fTrPid;
fDet = pmdsdigit.fDet;
fSMN = pmdsdigit.fSMN;
fRow = pmdsdigit.fRow;
fColumn = pmdsdigit.fColumn;
fEdep = pmdsdigit.fEdep;
}
return *this;
}
AliPMDsdigit::~AliPMDsdigit()
{
}
Int_t AliPMDsdigit::GetTrackNumber() const
{
return fTrNumber;
}
Int_t AliPMDsdigit::GetTrackPid() const
{
return fTrPid;
}
Int_t AliPMDsdigit::GetDetector() const
{
return fDet;
}
Int_t AliPMDsdigit::GetSMNumber() const
{
return fSMN;
}
Int_t AliPMDsdigit::GetRow() const
{
return fRow;
}
Int_t AliPMDsdigit::GetColumn() const
{
return fColumn;
}
Float_t AliPMDsdigit::GetCellEdep() const
{
return fEdep;
}