39 #include "Analysis.hh"
40 #include "TrackerSD.hh"
86 if (edep==0.)
return false;
129 G4int nRadiusSteps = 101;
136 G4double stpRadius(std::pow(maxRadius/radius, 1./static_cast<G4double>(nRadiusSteps-1)));
145 noRadius=nRadiusSteps-
step;
161 G4double hitNrj = (*fHitsCollection)[
k]->GetEdep();
171 for (
G4int i=0; i<nofHits; i++ )
175 Einc = (*fHitsCollection)[i]->GetIncidentEnergy();
182 (localPosi.
x()-hitPos.
x()) * (localPosi.
x()-hitPos.
x()) +
183 (localPosi.
y()-hitPos.
y()) * (localPosi.
y()-hitPos.
y()) +
184 (localPosi.
z()-hitPos.
z()) * (localPosi.
z()-hitPos.
z())
185 < radius*stpRadius*radius*stpRadius
189 (localPosi.
x()-hitPos.
x()) * (localPosi.
x()-hitPos.
x()) +
190 (localPosi.
y()-hitPos.
y()) * (localPosi.
y()-hitPos.
y()) +
191 (localPosi.
z()-hitPos.
z()) * (localPosi.
z()-hitPos.
z())
197 localSum = localSum + (*fHitsCollection)[i]->GetEdep() ;
202 tNum = tNum + localSum*hitNrj;
203 tDenom = tDenom + hitNrj;
211 analysisManager->FillNtupleDColumn(0,0, radius/
nm);
212 analysisManager->FillNtupleIColumn(0,1, noRadius);
213 analysisManager->FillNtupleDColumn(0,2, nofHits);
214 analysisManager->FillNtupleDColumn(0,3, nbEdep);
215 analysisManager->FillNtupleDColumn(0,4, (tNum/tDenom)/
eV);
216 analysisManager->FillNtupleDColumn(0,5, (stpRadius*radius)/
nm);
217 analysisManager->FillNtupleDColumn(0,6, Einc/
eV);
218 analysisManager->AddNtupleRow();