 |
Belle II Software
release-05-01-25
|
11 #include <simulation/kernel/StackingAction.h>
12 #include <simulation/kernel/UserInfo.h>
14 #include <G4ParticleDefinition.hh>
15 #include <G4ParticleTypes.hh>
17 #include <G4VProcess.hh>
23 using namespace Simulation;
26 StackingAction::StackingAction(): m_photonFraction(1.0)
45 if (aTrack->GetDefinition() != G4OpticalPhoton::OpticalPhotonDefinition())
49 if (!aTrack->GetCreatorProcess())
return fUrgent;
52 if (aTrack->GetCreatorProcess()->GetProcessName() !=
"Cerenkov")
return fUrgent;
56 if (!info)
return fUrgent;
59 if (info->getStatus() != 0)
return fUrgent;
static Payload getInfo(Carrier &obj)
Static function to just return UserInformation attached to the obj of type Carrier.
virtual void NewStage()
Function that is called at each event when "urgent" stack is empty.
UserInfo class which is used to attach additional information to Geant4 particles and tracks.
double m_photonFraction
The fraction of Cerenkov photons which will be kept and propagated.
Abstract base class for different kinds of events.
virtual void PrepareNewEvent()
Function called at begining of event.
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *aTrack)
Function that classifies new tracks.
~StackingAction()
The StackingAction destructor.