55{
return fpHyperStep; }
61:
G4VProcess(processName,theType),fGhostWorld(nullptr),fGhostNavigator(nullptr),
62 fNavigatorID(-1),fFieldTrack(
'0'),fGhostSafety(0.),fOnBoundary(false),
63 layeredMaterialFlag(false)
66 if(!fpHyperStep) fpHyperStep =
new G4Step();
67 iParallelWorld = ++nParallelWorlds;
92 if(nParallelWorlds==0)
123 G4Exception(
"G4ParallelWorldProcess::StartTracking",
125 "G4ParallelWorldProcess is used for tracking without having a parallel world assigned");
281 if (previousStepSize > 0.)
285 if (currentMinimumStep <= fGhostSafety && currentMinimumStep > 0.)
288 returnedStep = currentMinimumStep;
297#ifdef G4DEBUG_PARALLEL_WORLD_PROCESS
301 if( localVerb == 1 ) {
303 }
else if( localVerb > 1 ) {
304 G4cout <<
"----------------------------------------------" <<
G4endl;
305 G4cout <<
" ParallelWorldProcess: field Track set to : " <<
G4endl;
306 G4cout <<
"----------------------------------------------" <<
G4endl;
308 G4cout <<
"----------------------------------------------" <<
G4endl;
332 returnedStep *= (1.0 + 1.0e-9);
337 if(iParallelWorld==nParallelWorlds) fNavIDHyp = 0;
369 if(iParallelWorld==1)
404 if(ghostProdCuts) prodCuts = ghostProdCuts;
419 G4cout <<
"!!! MaterialCutsCouple is not found for "
421 <<
" Material in real world ("
423 <<
") is used." <<
G4endl;
435 if(partName==
"geantino")
return false;
436 if(partName==
"chargedgeantino")
return false;
440 if(pdgCode==11 || pdgCode==2212)
return false;
441 pdgCode = std::abs(pdgCode);
442 if(pdgCode==22)
return false;
443 if(pdgCode==12 || pdgCode==14 || pdgCode==16)
return false;
G4double condition(const G4ErrorSymMatrix &m)
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
@ NotCandidateForSelection
G4GLOB_DLL std::ostream G4cout
static void Update(G4FieldTrack *, const G4Track *)
G4ThreeVector GetPosition() const
G4VSensitiveDetector * GetSensitiveDetector() const
G4Region * GetRegion() const
G4Material * GetMaterial() const
G4ProductionCuts * GetProductionCuts() const
const G4String & GetName() const
void SetPushVerbosity(G4bool mode)
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
static G4ParallelWorldProcessStore * GetInstance()
void SetParallelWorld(G4ParallelWorldProcess *proc, G4String parallelWorldName)
G4TouchableHandle fNewGhostTouchable
G4bool layeredMaterialFlag
G4VParticleChange * AlongStepDoIt(const G4Track &, const G4Step &)
G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
G4VParticleChange aDummyParticleChange
static const G4Step * GetHyperStep()
G4PathFinder * fPathFinder
G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
G4TransportationManager * fTransportationManager
void CopyStep(const G4Step &step)
G4VPhysicalVolume * fGhostWorld
void StartTracking(G4Track *)
G4TouchableHandle fOldGhostTouchable
G4StepPoint * fGhostPreStepPoint
static G4int GetHypNavigatorID()
G4StepPoint * fGhostPostStepPoint
void SwitchMaterial(G4StepPoint *)
G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
G4ParallelWorldProcess(const G4String &processName="ParaWorld", G4ProcessType theType=fParallel)
G4Navigator * fGhostNavigator
void SetParallelWorld(G4String parallelWorldName)
G4double PostStepGetPhysicalInteractionLength(const G4Track &, G4double, G4ForceCondition *)
virtual ~G4ParallelWorldProcess()
G4bool IsAtRestRequired(G4ParticleDefinition *)
G4VParticleChange * AtRestDoIt(const G4Track &, const G4Step &)
G4int GetPDGEncoding() const
const G4String & GetParticleName() const
G4double ComputeStep(const G4FieldTrack &pFieldTrack, G4double pCurrentProposedStepLength, G4int navigatorId, G4int stepNo, G4double &pNewSafety, ELimited &limitedStep, G4FieldTrack &EndState, G4VPhysicalVolume *currentVolume)
void PrepareNewTrack(const G4ThreeVector &position, const G4ThreeVector &direction, G4VPhysicalVolume *massStartVol=nullptr)
static G4PathFinder * GetInstance()
G4TouchableHandle CreateTouchableHandle(G4int navId) const
const G4MaterialCutsCouple * GetMaterialCutsCouple(G4int i) const
static G4ProductionCutsTable * GetProductionCutsTable()
G4ProductionCuts * GetProductionCuts() const
void SetSensitiveDetector(G4VSensitiveDetector *)
void SetMaterial(G4Material *)
G4StepStatus GetStepStatus() const
void SetStepStatus(const G4StepStatus aValue)
void SetVelocity(G4double v)
void SetTouchableHandle(const G4TouchableHandle &apValue)
G4Material * GetMaterial() const
const G4TouchableHandle & GetTouchableHandle() const
void SetMaterialCutsCouple(const G4MaterialCutsCouple *)
const G4MaterialCutsCouple * GetMaterialCutsCouple() const
G4VSensitiveDetector * GetSensitiveDetector() const
G4SteppingControl GetControlFlag() const
G4Track * GetTrack() const
void SetStepLength(G4double value)
void SetNonIonizingEnergyDeposit(G4double value)
G4StepPoint * GetPreStepPoint() const
G4double GetNonIonizingEnergyDeposit() const
G4double GetStepLength() const
G4double GetTotalEnergyDeposit() const
void SetSecondary(G4TrackVector *value)
void SetControlFlag(G4SteppingControl StepControlFlag)
void SetTotalEnergyDeposit(G4double value)
G4StepPoint * GetPostStepPoint() const
void SetTrack(G4Track *value)
void SetVelocity(G4double val)
G4VPhysicalVolume * GetVolume() const
const G4ThreeVector & GetPosition() const
G4int GetCurrentStepNumber() const
const G4ThreeVector & GetMomentumDirection() const
G4double CalculateVelocity() const
const G4Step * GetStep() const
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
static G4TransportationManager * GetTransportationManager()
G4Navigator * GetNavigatorForTracking() const
G4int ActivateNavigator(G4Navigator *aNavigator)
G4Navigator * GetNavigator(const G4String &worldName)
virtual void Initialize(const G4Track &)
G4LogicalVolume * GetLogicalVolume() const
const G4String & GetName() const
void SetProcessSubType(G4int)
G4VParticleChange * pParticleChange
const G4String & GetProcessName() const
G4bool Hit(G4Step *aStep)
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const