54:
G4VProcess(processName,theType), fGhostNavigator(0), fNavigatorID(-1), fFieldTrack(
'0')
94 fGhostWorldName = parallelWorldName;
96 fGhostNavigator = fTransportationManager->
GetNavigator(fGhostWorld);
106 fGhostWorldName = parallelWorld->
GetName();
107 fGhostWorld = parallelWorld;
108 fGhostNavigator = fTransportationManager->
GetNavigator(fGhostWorld);
119 if(partName==
"geantino")
return false;
120 if(partName==
"chargedgeantino")
return false;
124 if(pdgCode==11 || pdgCode==2212)
return false;
125 pdgCode = std::abs(pdgCode);
126 if(pdgCode==22)
return false;
127 if(pdgCode==12 || pdgCode==14 || pdgCode==16)
return false;
148 G4Exception(
"G4ParallelWorldScoringProcess::StartTracking",
150 "G4ParallelWorldScoringProcess is used for tracking without having a parallel world assigned");
166 fNewGhostTouchable = fOldGhostTouchable;
207 fNewGhostTouchable = fOldGhostTouchable;
289 fNewGhostTouchable = fOldGhostTouchable;
331 if (previousStepSize > 0.)
332 { fGhostSafety -= previousStepSize; }
335 if (fGhostSafety < 0.) fGhostSafety = 0.0;
340 if (currentMinimumStep <= fGhostSafety && currentMinimumStep > 0.)
343 returnedStep = currentMinimumStep;
345 proposedSafety = fGhostSafety - currentMinimumStep;
354 = fPathFinder->
ComputeStep(fFieldTrack,currentMinimumStep,fNavigatorID,
370 proposedSafety = fGhostSafety;
374 returnedStep *= (1.0 + 1.0e-9);
397void G4ParallelWorldScoringProcess::CopyStep(
const G4Step & step)
423 G4cout <<
"In mass geometry ------------------------------------------------" <<
G4endl;
426 G4cout <<
" PreStepPoint : "
431 {
G4cout <<
"NoProcessAssigned"; }
434 G4cout <<
" PostStepPoint : ";
438 {
G4cout <<
"OutOfWorld"; }
443 {
G4cout <<
"NoProcessAssigned"; }
447 G4cout <<
"In ghost geometry ------------------------------------------------" <<
G4endl;
449 <<
" TotalEnergyDeposit : "
451 G4cout <<
" PreStepPoint : "
458 {
G4cout <<
"NoProcessAssigned"; }
461 G4cout <<
" PostStepPoint : ";
469 {
G4cout <<
"OutOfWorld"; }
474 {
G4cout <<
"NoProcessAssigned"; }
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
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
G4bool IsAtRestRequired(G4ParticleDefinition *partDef)
void SetParallelWorld(G4String parallelWorldName)
G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
G4ParallelWorldScoringProcess(const G4String &processName="ParaWorldScore", G4ProcessType theType=fParameterisation)
G4VParticleChange * AtRestDoIt(const G4Track &, const G4Step &)
virtual ~G4ParallelWorldScoringProcess()
G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
void StartTracking(G4Track *)
void Verbose(const G4Step &) const
G4VParticleChange * AlongStepDoIt(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
void SetSensitiveDetector(G4VSensitiveDetector *)
G4StepStatus GetStepStatus() const
const G4VTouchable * GetTouchable() const
void SetStepStatus(const G4StepStatus aValue)
const G4VProcess * GetProcessDefinedStep() const
void SetTouchableHandle(const G4TouchableHandle &apValue)
const G4ThreeVector & GetPosition() const
const G4TouchableHandle & GetTouchableHandle() const
G4VSensitiveDetector * GetSensitiveDetector() const
G4VPhysicalVolume * GetPhysicalVolume() 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
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
virtual G4int GetReplicaNumber(G4int depth=0) const