Belle II Software  release-05-02-19
ExtStepLengthLimitProcess.cc
1 /**************************************************************************
2  * BASF2 (Belle Analysis Framework 2) *
3  * Copyright(C) 2010-2011 Belle II Collaboration *
4  * *
5  * Author: The Belle II Collaboration *
6  * Contributors: Leo Piilonen *
7  * Derived from: G4ErrorStepLengthLimitProcess.cc *
8  * *
9  * This software is provided "as is" without any warranty. *
10  **************************************************************************/
11 
12 #include <simulation/kernel/ExtStepLengthLimitProcess.h>
13 #include <G4Track.hh>
14 
15 using namespace std;
16 using namespace Belle2;
17 using namespace Belle2::Simulation;
18 
19 ExtStepLengthLimitProcess::ExtStepLengthLimitProcess(const G4String& processName) :
20  G4VDiscreteProcess(processName),
21  m_stepLimit(kInfinity) // user may change this with a geant4 UI command
22 {
23 }
24 
26 {
27 }
28 
29 G4VParticleChange* ExtStepLengthLimitProcess::PostStepDoIt(const G4Track& track, const G4Step&)
30 {
31  aParticleChange.Initialize(track);
32  aParticleChange.ProposeSteppingControl(AvoidHitInvocation);
33  return &aParticleChange;
34 }
35 
Belle2::Simulation::ExtStepLengthLimitProcess::PostStepDoIt
G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
See if the particle has left the geant4e "target" volume.
Definition: ExtStepLengthLimitProcess.cc:29
Belle2
Abstract base class for different kinds of events.
Definition: MillepedeAlgorithm.h:19
Belle2::Simulation::ExtStepLengthLimitProcess::~ExtStepLengthLimitProcess
~ExtStepLengthLimitProcess()
destructor
Definition: ExtStepLengthLimitProcess.cc:25