Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
F04StackingAction Class Reference

#include <F04StackingAction.hh>

Inheritance diagram for F04StackingAction:
Collaboration diagram for F04StackingAction:

Public Member Functions

 F04StackingAction ()
 
virtual ~F04StackingAction ()
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *aTrack)
 
virtual void NewStage ()
 
virtual void PrepareNewEvent ()
 
- Public Member Functions inherited from G4UserStackingAction
 G4UserStackingAction ()
 
virtual ~G4UserStackingAction ()
 
void SetStackManager (G4StackManager *value)
 

Additional Inherited Members

- Protected Attributes inherited from G4UserStackingAction
G4StackManagerstackManager
 

Detailed Description

Definition at line 37 of file F04StackingAction.hh.

Constructor & Destructor Documentation

F04StackingAction::F04StackingAction ( )

Definition at line 42 of file F04StackingAction.cc.

42 {}
F04StackingAction::~F04StackingAction ( )
virtual

Definition at line 46 of file F04StackingAction.cc.

46 {}

Member Function Documentation

G4ClassificationOfNewTrack F04StackingAction::ClassifyNewTrack ( const G4Track aTrack)
virtual

Reimplemented from G4UserStackingAction.

Definition at line 51 of file F04StackingAction.cc.

52 {
53  G4ParticleDefinition* particleType = aTrack->GetDefinition();
54  const G4String name = particleType->GetParticleName();
55 
56  // keep primary particle
57  if (aTrack->GetParentID() == 0) return fUrgent;
58 
59  if (particleType != G4Proton::ProtonDefinition() &&
60  particleType != G4Neutron::NeutronDefinition() &&
61  particleType != G4KaonPlus::KaonPlusDefinition() &&
62  particleType != G4PionPlus::PionPlusDefinition() &&
63  particleType != G4MuonPlus::MuonPlusDefinition() &&
64  particleType != G4Positron::PositronDefinition()) return fKill;
65 
66  if (name != "pi+" && name != "mu+") return fKill;
67 
68 // if (name == "mu+") G4RunManager::GetRunManager()->rndmSaveThisEvent();
69 
70  return fUrgent;
71 }
G4ParticleDefinition * GetDefinition() const
const XML_Char * name
Definition: expat.h:151
G4int GetParentID() const
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
static G4MuonPlus * MuonPlusDefinition()
Definition: G4MuonPlus.cc:94
static G4Proton * ProtonDefinition()
Definition: G4Proton.cc:88
const G4String & GetParticleName() const
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Positron * PositronDefinition()
Definition: G4Positron.cc:89
static G4Neutron * NeutronDefinition()
Definition: G4Neutron.cc:99

Here is the call graph for this function:

void F04StackingAction::NewStage ( )
virtual

Reimplemented from G4UserStackingAction.

Definition at line 75 of file F04StackingAction.cc.

75 {}
void F04StackingAction::PrepareNewEvent ( )
virtual

Reimplemented from G4UserStackingAction.

Definition at line 79 of file F04StackingAction.cc.

79 {}

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