52G4Step* G4ParallelWorldProcess::fpHyperStep = 0;
53G4int G4ParallelWorldProcess::nParallelWorlds = 0;
54G4int G4ParallelWorldProcess::fNavIDHyp = 0;
56{
return fpHyperStep; }
62:
G4VProcess(processName,theType), fGhostNavigator(0), fNavigatorID(-1),
63 fFieldTrack(
'0'),layeredMaterialFlag(false)
65 if(!fpHyperStep) fpHyperStep =
new G4Step();
66 iParallelWorld = ++nParallelWorlds;
87 if(nParallelWorlds==0)
97 fGhostWorldName = parallelWorldName;
99 fGhostNavigator = fTransportationManager->
GetNavigator(fGhostWorld);
105 fGhostWorldName = parallelWorld->
GetName();
106 fGhostWorld = parallelWorld;
107 fGhostNavigator = fTransportationManager->
GetNavigator(fGhostWorld);
116 G4Exception(
"G4ParallelWorldProcess::StartTracking",
118 "G4ParallelWorldProcess is used for tracking without having a parallel world assigned");
124 fNewGhostTouchable = fOldGhostTouchable;
143 if(layeredMaterialFlag)
146 SwitchMaterial(realWorldPostStepPoint);
182 fNewGhostTouchable = fOldGhostTouchable;
194 aSD->
Hit(fGhostStep);
228 fNewGhostTouchable = fOldGhostTouchable;
249 if(layeredMaterialFlag)
253 SwitchMaterial(realWorldPostStepPoint);
270 if (previousStepSize > 0.)
271 { fGhostSafety -= previousStepSize; }
272 if (fGhostSafety < 0.) fGhostSafety = 0.0;
274 if (currentMinimumStep <= fGhostSafety && currentMinimumStep > 0.)
277 returnedStep = currentMinimumStep;
279 proposedSafety = fGhostSafety - currentMinimumStep;
286 = fPathFinder->
ComputeStep(fFieldTrack,currentMinimumStep,fNavigatorID,
298 proposedSafety = fGhostSafety;
303 returnedStep *= (1.0 + 1.0e-9);
308 if(iParallelWorld==nParallelWorlds) fNavIDHyp = 0;
320void G4ParallelWorldProcess::CopyStep(
const G4Step & step)
339 if(iParallelWorld==1)
359void G4ParallelWorldProcess::SwitchMaterial(
G4StepPoint* realWorldStepPoint)
374 if(ghostProdCuts) prodCuts = ghostProdCuts;
389 G4cout <<
"!!! MaterialCutsCouple is not found for "
391 <<
" Material in real world ("
393 <<
") is used." <<
G4endl;
405 if(partName==
"opticalphoton")
return false;
406 if(partName==
"geantino")
return false;
407 if(partName==
"chargedgeantino")
return false;
411 if(pdgCode==22)
return false;
412 if(pdgCode==11)
return false;
413 if(pdgCode==2212)
return false;
414 if(pdgCode==-12)
return false;
415 if(pdgCode==12)
return false;
416 if(pdgCode==-14)
return false;
417 if(pdgCode==14)
return false;
418 if(pdgCode==-16)
return false;
419 if(pdgCode==16)
return false;
G4double condition(const G4ErrorSymMatrix &m)
@ NotCandidateForSelection
G4DLLIMPORT 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
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
G4VParticleChange * AlongStepDoIt(const G4Track &, const G4Step &)
G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
static const G4Step * GetHyperStep()
G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
void StartTracking(G4Track *)
G4ParallelWorldProcess(const G4String &processName="ParaWorld", G4ProcessType theType=fParameterisation)
static G4int GetHypNavigatorID()
G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
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=0)
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 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 SetControlFlag(G4SteppingControl StepControlFlag)
void SetTotalEnergyDeposit(G4double value)
G4StepPoint * GetPostStepPoint() const
void SetTrack(G4Track *value)
G4VPhysicalVolume * GetVolume() const
const G4ThreeVector & GetPosition() const
G4int GetCurrentStepNumber() const
const G4ThreeVector & GetMomentumDirection() const
const G4Step * GetStep() const
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
static G4TransportationManager * GetTransportationManager()
G4int ActivateNavigator(G4Navigator *aNavigator)
G4Navigator * GetNavigator(const G4String &worldName)
virtual void Initialize(const G4Track &)
G4LogicalVolume * GetLogicalVolume() const
const G4String & GetName() const
G4VParticleChange * pParticleChange
const G4String & GetProcessName() const
G4bool Hit(G4Step *aStep)
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)