34 #include "StSvtGeantHits.hh"
35 #include "StDbUtilities/StGlobalCoordinate.hh"
36 #include "StDbUtilities/StSvtWaferCoordinate.hh"
37 #include "StDbUtilities/StSvtLocalCoordinate.hh"
44 mPeak =
new float[MAX_HITS];
48 mIdTrack =
new int[MAX_HITS];
50 memset(mPeak ,0,
sizeof(mPeak [0])*MAX_HITS);
51 memset(mIdTrack,0,
sizeof(mIdTrack[0])*MAX_HITS);
55 StSvtGeantHits::~StSvtGeantHits()
57 delete [] mWaferCoord;
58 delete [] mGlobalCoord;
59 delete [] mLocalCoord;
63 void StSvtGeantHits::setNumOfHits(
int nhits)
68 void StSvtGeantHits::setPeak(
int index ,
float peak)
73 void StSvtGeantHits::setGeantHit(
int index ,
int* svtAtt,
float* AnTime)
78 mWaferCoord[index].setLayer(svtAtt[1]);
79 mWaferCoord[index].setLadder(svtAtt[2]);
80 mWaferCoord[index].setWafer(svtAtt[3]);
81 mWaferCoord[index].setHybrid(svtAtt[4]);
82 mWaferCoord[index].setAnode(AnTime[0]);
83 mWaferCoord[index].setTimeBucket(AnTime[1]);
91 mWaferCoord[index].setLayer(waferCoord->layer());
92 mWaferCoord[index].setLadder(waferCoord->ladder());
93 mWaferCoord[index].setWafer(waferCoord->wafer());
94 mWaferCoord[index].setHybrid(waferCoord->hybrid());
95 mWaferCoord[index].setAnode(waferCoord->anode());
96 mWaferCoord[index].setTimeBucket(waferCoord->timebucket());
98 void StSvtGeantHits::setTrackId(
int index ,
int idtrk)
100 mIdTrack[index] = idtrk;
103 int StSvtGeantHits::getTrackId(
int index)
105 return mIdTrack[index];
110 mGlobalCoord[index].setPosition(*x);
115 mLocalCoord[index].setPosition(*x);