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

#include <B3StackingAction.hh>

Inheritance diagram for B3StackingAction:
Collaboration diagram for B3StackingAction:

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from G4UserStackingAction
G4StackManagerstackManager
 

Detailed Description

Stacking action class : manage the newly generated particles

One wishes do not track secondary neutrino.Therefore one kills it immediately, before created particles will put in a stack.

Definition at line 42 of file B3StackingAction.hh.

Constructor & Destructor Documentation

B3StackingAction::B3StackingAction ( )

Definition at line 38 of file B3StackingAction.cc.

39 { }
B3StackingAction::~B3StackingAction ( )
virtual

Definition at line 43 of file B3StackingAction.cc.

44 { }
B3StackingAction::B3StackingAction ( )
virtual B3StackingAction::~B3StackingAction ( )
virtual

Member Function Documentation

G4ClassificationOfNewTrack B3StackingAction::ClassifyNewTrack ( const G4Track track)
virtual

Reimplemented from G4UserStackingAction.

Definition at line 49 of file B3StackingAction.cc.

50 {
51  //keep primary particle
52  if (track->GetParentID() == 0) return fUrgent;
53 
54  //kill secondary neutrino
55  if (track->GetDefinition() == G4NeutrinoE::NeutrinoE()) return fKill;
56  else return fUrgent;
57 }
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
static G4NeutrinoE * NeutrinoE()
Definition: G4NeutrinoE.cc:85

Here is the call graph for this function:

virtual G4ClassificationOfNewTrack B3StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.


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