StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StRHICfPoint.cxx
1 #include "StRHICfPoint.h"
2 
3 ClassImp(StRHICfPoint)
4 
6 {
7  clear();
8 }
9 
10 StRHICfPoint::~StRHICfPoint()
11 {
12 }
13 
14 void StRHICfPoint::clear()
15 {
16  mTowerIdx = -999;
17  mParticleID = -999;
18 
19  memset(mPointPos, 0, sizeof(mPointPos));
20  memset(mPointEnergy, 0, sizeof(mPointEnergy));
21  memset(mTowerSumEnergy, 0, sizeof(mTowerSumEnergy));
22 }
23 
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)
27 {
28  mPointPos[0] = x;
29  mPointPos[1] = y;
30 }
31 
32 void StRHICfPoint::setPointEnergy(Float_t pid1, Float_t pid2)
33 {
34  mPointEnergy[0] = pid1;
35  mPointEnergy[1] = pid2;
36 }
37 
38 void StRHICfPoint::setTowerSumEnergy(Float_t all, Float_t part)
39 {
40  mTowerSumEnergy[0] = all;
41  mTowerSumEnergy[1] = part;
42 }
43 
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];}