StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StMuRHICfPoint.cxx
1 #include "StMuRHICfPoint.h"
2 
3 ClassImp(StMuRHICfPoint)
4 
6 {
7  clear();
8 }
9 
10 StMuRHICfPoint::~StMuRHICfPoint()
11 {
12 }
13 
14 void StMuRHICfPoint::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 StMuRHICfPoint::setTowerIdx(Int_t val){mTowerIdx = val;}
25 void StMuRHICfPoint::setPID(Int_t pid){mParticleID = pid;}
26 void StMuRHICfPoint::setPointPos(Float_t x, Float_t y)
27 {
28  mPointPos[0] = x;
29  mPointPos[1] = y;
30 }
31 
32 void StMuRHICfPoint::setPointEnergy(Float_t pid1, Float_t pid2)
33 {
34  mPointEnergy[0] = pid1;
35  mPointEnergy[1] = pid2;
36 }
37 
38 void StMuRHICfPoint::setTowerSumEnergy(Float_t all, Float_t part)
39 {
40  mTowerSumEnergy[0] = all;
41  mTowerSumEnergy[1] = part;
42 }
43 
44 Int_t StMuRHICfPoint::getTowerIdx(){return mTowerIdx;}
45 Int_t StMuRHICfPoint::getPID(){return mParticleID;}
46 Float_t StMuRHICfPoint::getPointPos(Int_t xy){return mPointPos[xy];}
47 Float_t StMuRHICfPoint::getPointEnergy(Int_t particle){return mPointEnergy[particle];}
48 Float_t StMuRHICfPoint::getTowerSumEnergy(Int_t order){return mTowerSumEnergy[order];}