1 #include "StRHICfPoint.h"
10 StRHICfPoint::~StRHICfPoint()
14 void StRHICfPoint::clear()
19 memset(mPointPos, 0,
sizeof(mPointPos));
20 memset(mPointEnergy, 0,
sizeof(mPointEnergy));
21 memset(mTowerSumEnergy, 0,
sizeof(mTowerSumEnergy));
24 void StRHICfPoint::setTowerIdx(Int_t val){mTowerIdx = val;}
25 void StRHICfPoint::setPID(Int_t pid){mParticleID = pid;}
26 void StRHICfPoint::setPointPos(Float_t x, Float_t y)
32 void StRHICfPoint::setPointEnergy(Float_t pid1, Float_t pid2)
34 mPointEnergy[0] = pid1;
35 mPointEnergy[1] = pid2;
38 void StRHICfPoint::setTowerSumEnergy(Float_t all, Float_t part)
40 mTowerSumEnergy[0] = all;
41 mTowerSumEnergy[1] = part;
44 Int_t StRHICfPoint::getTowerIdx(){
return mTowerIdx;}
45 Int_t StRHICfPoint::getPID(){
return mParticleID;}
46 Float_t StRHICfPoint::getPointPos(Int_t xy){
return mPointPos[xy];}
47 Float_t StRHICfPoint::getPointEnergy(Int_t particle){
return mPointEnergy[particle];}
48 Float_t StRHICfPoint::getTowerSumEnergy(Int_t order){
return mTowerSumEnergy[order];}