Import Geant4 4.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:39:52 +02:00
parent 921d3b1cda
commit 330b82b769
4524 changed files with 178689 additions and 43575 deletions
@@ -33,6 +33,9 @@
// by A. Howard and H. Araujo
// (27th November 2001)
//
// History:
// 21 Feb 2002 AH: Added Analysis
//
// SteppingAction program
// --------------------------------------------------------------
@@ -41,6 +44,10 @@
#include "DMXEventAction.hh"
#ifdef G4ANALYSIS_USE
#include "DMXAnalysisManager.hh"
#endif
#include "G4Track.hh"
#include "G4Step.hh"
#include "G4StepPoint.hh"
@@ -85,13 +92,25 @@ DMXSteppingAction::~DMXSteppingAction()
void DMXSteppingAction::UserSteppingAction(const G4Step* fStep)
{
// removed 28/11/01 - unnecessary unless program "hangs"
// removed 28/11/01 - unnecessary unless program "freezes"
// kill track if too many steps
// NB: This is set to DBL_MAX - therefore may cause program to "hang"
// G4int MaxNoSteps = DBL_MAX;
// G4int StepNo = fStep->GetTrack()->GetCurrentStepNumber();
// if(StepNo >= MaxNoSteps) fStep->GetTrack()->SetTrackStatus(fStopAndKill);
#ifdef G4ANALYSIS_USE
G4int StepNo = fStep->GetTrack()->GetCurrentStepNumber();
if(StepNo == 1)
{
G4double partEnergy = fStep->GetPreStepPoint()->GetKineticEnergy();
G4ParticleDefinition* particleType = fStep->GetTrack()->GetDefinition();
G4String particleName = particleType->GetParticleName();
DMXAnalysisManager* analysis = DMXAnalysisManager::getInstance();
analysis->analyseParticleSource(partEnergy, particleName);
}
#endif
// check what is to be drawn from EventAction/EventActionMessenger
G4String drawColsFlag = evtAction->GetDrawColsFlag();
G4String drawTrksFlag = evtAction->GetDrawTrksFlag();