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