Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
OpNoviceSteppingAction Class Reference

#include <Doxymodules_optical.h>

Inheritance diagram for OpNoviceSteppingAction:
G4UserSteppingAction

Public Member Functions

 OpNoviceSteppingAction (OpNoviceEventAction *)
 
 ~OpNoviceSteppingAction () override=default
 
void UserSteppingAction (const G4Step *) override
 

Private Attributes

OpNoviceEventActionfEventAction = nullptr
 

Detailed Description

Definition at line 26 of file Doxymodules_optical.h.

Constructor & Destructor Documentation

◆ OpNoviceSteppingAction()

OpNoviceSteppingAction::OpNoviceSteppingAction ( OpNoviceEventAction event)

Definition at line 41 of file OpNoviceSteppingAction.cc.

◆ ~OpNoviceSteppingAction()

OpNoviceSteppingAction::~OpNoviceSteppingAction ( )
overridedefault

Member Function Documentation

◆ UserSteppingAction()

void OpNoviceSteppingAction::UserSteppingAction ( const G4Step step)
override

Definition at line 47 of file OpNoviceSteppingAction.cc.

48{
49 static G4ParticleDefinition* opticalphoton =
50 G4OpticalPhoton::OpticalPhotonDefinition();
51
52 const G4ParticleDefinition* particleDef =
53 step->GetTrack()->GetDynamicParticle()->GetParticleDefinition();
54
55 if(particleDef == opticalphoton)
56 {
57 G4StepPoint* endPoint = step->GetPostStepPoint();
58 const G4VProcess* pds = endPoint->GetProcessDefinedStep();
59 G4String procname = pds->GetProcessName();
60 if(procname == "OpRayleigh")
62 else if(procname == "OpAbsorption")
64 else if(procname == "OpMieHG")
66
67 // for boundary scattering, process name in 'transportation'.
68 // Need to check differently:
69 if(endPoint->GetStepStatus() == fGeomBoundary)
70 {
71 G4OpBoundaryProcessStatus theStatus = Undefined;
72 G4ProcessManager* opManager = opticalphoton->GetProcessManager();
73 G4int n_proc = opManager->GetPostStepProcessVector(typeDoIt)->entries();
74 G4ProcessVector* postStepDoItVector =
75 opManager->GetPostStepProcessVector(typeDoIt);
76 for(G4int i = 0; i < n_proc; ++i)
77 {
78 G4VProcess* currentProcess = (*postStepDoItVector)[i];
79
80 auto opProc = dynamic_cast<G4OpBoundaryProcess*>(currentProcess);
81 if(opProc)
82 theStatus = opProc->GetStatus();
83 }
84 if(theStatus != Undefined && theStatus != NotAtBoundary &&
85 theStatus != StepTooSmall)
86 {
88 }
89 }
90 }
91}

Member Data Documentation

◆ fEventAction

OpNoviceEventAction* OpNoviceSteppingAction::fEventAction = nullptr
private

Definition at line 46 of file OpNoviceSteppingAction.hh.


The documentation for this class was generated from the following files:

Applications | User Support | Publications | Collaboration