36 #include "Analysis.hh"
37 #include "TrackerSD.hh"
83 if (edep==0.)
return false;
144 G4ThreeVector hitPos = (*fHitsCollection)[randHit]->GetPos();
172 randRad = std::sqrt( xRand*xRand+yRand*yRand+zRand*zRand );
174 while (randRad>radius);
177 randCenterPos(xRand+hitPos.
x(),yRand+hitPos.
y(),zRand+hitPos.
z());
184 for (
G4int i=0; i<nofHits; i++ )
196 (localPos.
x()-randCenterPos.x()) * (localPos.
x()-randCenterPos.x()) +
197 (localPos.
y()-randCenterPos.y()) * (localPos.
y()-randCenterPos.y()) +
198 (localPos.
z()-randCenterPos.z()) * (localPos.
z()-randCenterPos.z())
203 epsilon = epsilon + (*fHitsCollection)[i]->GetEdep() ;