55 :
G4VProcess(processName,theType), fGhostNavigator(0), fNavigatorID(-1), fFieldTrack(
'0')
95 fGhostWorldName = parallelWorldName;
97 fGhostNavigator = fTransportationManager->
GetNavigator(fGhostWorld);
107 fGhostWorldName = parallelWorld->
GetName();
108 fGhostWorld = parallelWorld;
109 fGhostNavigator = fTransportationManager->
GetNavigator(fGhostWorld);
120 if(partName==
"opticalphoton")
return false;
121 if(partName==
"geantino")
return false;
122 if(partName==
"chargedgeantino")
return false;
126 if(pdgCode==22)
return false;
127 if(pdgCode==11)
return false;
128 if(pdgCode==2212)
return false;
129 if(pdgCode==-12)
return false;
130 if(pdgCode==12)
return false;
131 if(pdgCode==-14)
return false;
132 if(pdgCode==14)
return false;
133 if(pdgCode==-16)
return false;
134 if(pdgCode==16)
return false;
155 G4Exception(
"G4ParallelWorldScoringProcess::StartTracking",
157 "G4ParallelWorldScoringProcess is used for tracking without having a parallel world assigned");
173 fNewGhostTouchable = fOldGhostTouchable;
214 fNewGhostTouchable = fOldGhostTouchable;
296 fNewGhostTouchable = fOldGhostTouchable;
338 if (previousStepSize > 0.)
339 { fGhostSafety -= previousStepSize; }
342 if (fGhostSafety < 0.) fGhostSafety = 0.0;
347 if (currentMinimumStep <= fGhostSafety && currentMinimumStep > 0.)
350 returnedStep = currentMinimumStep;
352 proposedSafety = fGhostSafety - currentMinimumStep;
361 = fPathFinder->
ComputeStep(fFieldTrack,currentMinimumStep,fNavigatorID,
369 fGhostSafety = fGhostNavigator->
ComputeSafety(endTrack.GetPosition());
377 proposedSafety = fGhostSafety;
381 returnedStep *= (1.0 + 1.0e-9);
404 void G4ParallelWorldScoringProcess::CopyStep(
const G4Step & step)
430 G4cout <<
"In mass geometry ------------------------------------------------" <<
G4endl;
433 G4cout <<
" PreStepPoint : "
438 {
G4cout <<
"NoProcessAssigned"; }
441 G4cout <<
" PostStepPoint : ";
445 {
G4cout <<
"OutOfWorld"; }
450 {
G4cout <<
"NoProcessAssigned"; }
454 G4cout <<
"In ghost geometry ------------------------------------------------" <<
G4endl;
456 <<
" TotalEnergyDeposit : "
458 G4cout <<
" PreStepPoint : "
465 {
G4cout <<
"NoProcessAssigned"; }
468 G4cout <<
" PostStepPoint : ";
476 {
G4cout <<
"OutOfWorld"; }
481 {
G4cout <<
"NoProcessAssigned"; }
void PrepareNewTrack(const G4ThreeVector &position, const G4ThreeVector &direction, G4VPhysicalVolume *massStartVol=0)
static G4PathFinder * GetInstance()
G4double condition(const G4ErrorSymMatrix &m)
void SetStepLength(G4double value)
virtual void Initialize(const G4Track &)
void SetTrack(G4Track *value)
G4double PostStepGetPhysicalInteractionLength(const G4Track &track, G4double previousStepSize, G4ForceCondition *condition)
static constexpr double mm
G4double GetStepLength() const
G4VParticleChange * PostStepDoIt(const G4Track &, const G4Step &)
G4VParticleChange * AtRestDoIt(const G4Track &, const G4Step &)
G4StepStatus GetStepStatus() const
G4double GetNonIonizingEnergyDeposit() const
const G4ThreeVector & GetPosition() const
G4double AlongStepGetPhysicalInteractionLength(const G4Track &, G4double, G4double, G4double &, G4GPILSelection *)
G4TouchableHandle CreateTouchableHandle(G4int navId) const
G4int GetPDGEncoding() const
G4SteppingControl GetControlFlag() const
const G4VTouchable * GetTouchable() const
G4VParticleChange * AlongStepDoIt(const G4Track &, const G4Step &)
void SetStepStatus(const G4StepStatus aValue)
const G4String & GetParticleName() const
G4ParallelWorldScoringProcess(const G4String &processName="ParaWorldScore", G4ProcessType theType=fParameterisation)
G4StepPoint * GetPreStepPoint() const
G4double AtRestGetPhysicalInteractionLength(const G4Track &, G4ForceCondition *)
void SetSensitiveDetector(G4VSensitiveDetector *)
G4GLOB_DLL std::ostream G4cout
void StartTracking(G4Track *)
G4int GetCurrentStepNumber() const
G4VPhysicalVolume * GetPhysicalVolume() const
const G4String & GetName() const
const G4ThreeVector & GetPosition() const
void SetControlFlag(G4SteppingControl StepControlFlag)
void SetParallelWorld(G4String parallelWorldName)
G4double ComputeStep(const G4FieldTrack &pFieldTrack, G4double pCurrentProposedStepLength, G4int navigatorId, G4int stepNo, G4double &pNewSafety, ELimited &limitedStep, G4FieldTrack &EndState, G4VPhysicalVolume *currentVolume)
G4bool Hit(G4Step *aStep)
const G4String & GetProcessName() const
G4bool IsAtRestRequired(G4ParticleDefinition *partDef)
G4double GetTotalEnergyDeposit() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static G4TransportationManager * GetTransportationManager()
G4VPhysicalVolume * GetParallelWorld(const G4String &worldName)
G4int ActivateNavigator(G4Navigator *aNavigator)
const G4VProcess * GetProcessDefinedStep() const
const G4ThreeVector & GetMomentumDirection() const
G4LogicalVolume * GetLogicalVolume() const
void Verbose(const G4Step &) const
G4Navigator * GetNavigator(const G4String &worldName)
virtual ~G4ParallelWorldScoringProcess()
virtual G4VPhysicalVolume * GetVolume(G4int depth=0) const
G4StepPoint * GetPostStepPoint() const
virtual G4int GetReplicaNumber(G4int depth=0) const
void SetNonIonizingEnergyDeposit(G4double value)
G4VParticleChange * pParticleChange
G4VPhysicalVolume * GetVolume() const
static constexpr double MeV
void SetTotalEnergyDeposit(G4double value)
G4VSensitiveDetector * GetSensitiveDetector() const
virtual G4double ComputeSafety(const G4ThreeVector &globalpoint, const G4double pProposedMaxLength=DBL_MAX, const G4bool keepState=true)
G4Track * GetTrack() const
void SetTouchableHandle(const G4TouchableHandle &apValue)
G4VSensitiveDetector * GetSensitiveDetector() const
const G4TouchableHandle & GetTouchableHandle() const
static void Update(G4FieldTrack *, const G4Track *)