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

#include <Doxymodules_optical.h>

Inheritance diagram for OpNoviceStackingAction:
G4UserStackingAction

Public Member Functions

 OpNoviceStackingAction ()=default
 
 ~OpNoviceStackingAction () override=default
 
G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *aTrack) override
 
void NewStage () override
 
void PrepareNewEvent () override
 

Private Attributes

G4int fScintillationCounter = 0
 
G4int fCerenkovCounter = 0
 

Detailed Description

Definition at line 25 of file Doxymodules_optical.h.

Constructor & Destructor Documentation

◆ OpNoviceStackingAction()

OpNoviceStackingAction::OpNoviceStackingAction ( )
default

◆ ~OpNoviceStackingAction()

OpNoviceStackingAction::~OpNoviceStackingAction ( )
overridedefault

Member Function Documentation

◆ ClassifyNewTrack()

G4ClassificationOfNewTrack OpNoviceStackingAction::ClassifyNewTrack ( const G4Track aTrack)
override

Definition at line 42 of file OpNoviceStackingAction.cc.

44{
45 if(aTrack->GetDefinition() == G4OpticalPhoton::OpticalPhotonDefinition())
46 { // particle is optical photon
47 if(aTrack->GetParentID() > 0)
48 { // particle is secondary
49 if(aTrack->GetCreatorProcess()->GetProcessName() == "Scintillation")
51 else if(aTrack->GetCreatorProcess()->GetProcessName() == "Cerenkov")
53 }
54 }
55 return fUrgent;
56}

◆ NewStage()

void OpNoviceStackingAction::NewStage ( )
override

Definition at line 59 of file OpNoviceStackingAction.cc.

60{
61 // G4cout << "Number of Scintillation photons produced in this event : "
62 // << fScintillationCounter << G4endl;
63 // G4cout << "Number of Cerenkov photons produced in this event : "
64 // << fCerenkovCounter << G4endl;
65
66 auto run = static_cast<OpNoviceRun*>(
67 G4RunManager::GetRunManager()->GetNonConstCurrentRun());
69 run->AddCerenkov((G4double) fCerenkovCounter);
70}
void AddScintillation(G4double n)

◆ PrepareNewEvent()

void OpNoviceStackingAction::PrepareNewEvent ( )
override

Definition at line 73 of file OpNoviceStackingAction.cc.

74{
77}

Member Data Documentation

◆ fScintillationCounter

G4int OpNoviceStackingAction::fScintillationCounter = 0
private

Definition at line 52 of file OpNoviceStackingAction.hh.

◆ fCerenkovCounter

G4int OpNoviceStackingAction::fCerenkovCounter = 0
private

Definition at line 53 of file OpNoviceStackingAction.hh.


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

Applications | User Support | Publications | Collaboration