Import Geant4 10.5.0.beta source tree
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
/// \file electromagnetic/TestEm11/src/SteppingAction.cc
|
||||
/// \brief Implementation of the SteppingAction class
|
||||
//
|
||||
// $Id: SteppingAction.cc 98749 2016-08-09 13:43:36Z gcosmo $
|
||||
// $Id: SteppingAction.cc 110644 2018-06-04 16:51:03Z gcosmo $
|
||||
//
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
@@ -69,8 +69,9 @@ void SteppingAction::UserSteppingAction(const G4Step* step)
|
||||
G4ThreeVector P1 = prePoint ->GetPosition();
|
||||
G4ThreeVector P2 = postPoint->GetPosition();
|
||||
G4ThreeVector point = P1 + G4UniformRand()*(P2 - P1);
|
||||
if (step->GetTrack()->GetDefinition()->GetPDGCharge() == 0.) point = P2;
|
||||
G4double x = point.x();
|
||||
G4double xshifted = x + 0.5*fDetector->GetAbsorSizeX();
|
||||
G4double xshifted = x + 0.5*fDetector->GetAbsorSizeX();
|
||||
analysisManager->FillH1(1, xshifted, edep);
|
||||
|
||||
//"normalized" histogram
|
||||
@@ -98,7 +99,7 @@ void SteppingAction::UserSteppingAction(const G4Step* step)
|
||||
const G4Track* track = step->GetTrack();
|
||||
if (track->GetTrackID() == 1) analysisManager->FillH1(4, steplen);
|
||||
else if (track->GetDefinition()->GetPDGCharge() != 0.)
|
||||
analysisManager->FillH1(7, steplen);
|
||||
analysisManager->FillH1(7, steplen);
|
||||
}
|
||||
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
|
||||
|
||||
Reference in New Issue
Block a user