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

#include <StackingAction.hh>

Inheritance diagram for StackingAction:
Collaboration diagram for StackingAction:

Public Member Functions

 StackingAction ()
 
 ~StackingAction ()
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
 StackingAction ()
 
 ~StackingAction ()
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
 StackingAction ()
 
 ~StackingAction ()
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
 StackingAction (RunAction *, EventAction *)
 
 ~StackingAction ()
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
 StackingAction (EventAction *)
 
 ~StackingAction ()
 
void SetKillStatus (G4int value)
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
 StackingAction ()
 
 ~StackingAction ()
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
 StackingAction ()
 
 ~StackingAction ()
 
void SetKillStatus (G4bool value)
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
 StackingAction ()
 
virtual ~StackingAction ()
 
void SetKillStatus (G4bool value)
 
void SetKill (const G4String &name)
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
 StackingAction ()
 
virtual ~StackingAction ()
 
void SetKillAll (G4bool value)
 
void SetKillEM (G4bool value)
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
 StackingAction ()
 
 ~StackingAction ()
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
 StackingAction ()
 
virtual ~StackingAction ()
 
virtual void NewStage ()
 
 StackingAction ()
 
virtual ~StackingAction ()
 
virtual void NewStage ()
 
 StackingAction ()
 
virtual ~StackingAction ()
 
virtual void NewStage ()
 
 StackingAction ()
 
virtual ~StackingAction ()
 
virtual void NewStage ()
 
 StackingAction (DetectorConstruction *)
 
 ~StackingAction ()
 
virtual void SetKillStatus (G4bool value)
 
virtual G4ClassificationOfNewTrack ClassifyNewTrack (const G4Track *)
 
- Public Member Functions inherited from G4UserStackingAction
 G4UserStackingAction ()
 
virtual ~G4UserStackingAction ()
 
void SetStackManager (G4StackManager *value)
 
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 StackingAction.hh.

Constructor & Destructor Documentation

StackingAction::StackingAction ( )

Definition at line 41 of file StackingAction.cc.

StackingAction::~StackingAction ( )

Definition at line 47 of file StackingAction.cc.

48 { }
StackingAction::StackingAction ( )
StackingAction::~StackingAction ( )
StackingAction::StackingAction ( )
StackingAction::~StackingAction ( )
StackingAction::StackingAction ( RunAction RA,
EventAction EA 
)

Definition at line 44 of file StackingAction.cc.

45 :G4UserStackingAction(),fRunaction(RA), fEventaction(EA)
46 {}
StackingAction::~StackingAction ( )
StackingAction::StackingAction ( EventAction EA)

Definition at line 46 of file StackingAction.cc.

47  : G4UserStackingAction(), fEventAction(EA),
48  fKillSecondary(0),fStackMessenger(0),fPhotoGamma(-1),fComptGamma(-1),
49  fPhotoAuger(-1),fComptAuger(-1),fPixeGamma(-1),fPixeAuger(-1),
50  fIDdefined(false)
51 {
52  fStackMessenger = new StackingMessenger(this);
53 }
StackingAction::~StackingAction ( )
StackingAction::StackingAction ( )
StackingAction::~StackingAction ( )
StackingAction::StackingAction ( )
StackingAction::~StackingAction ( )
StackingAction::StackingAction ( )
virtual StackingAction::~StackingAction ( )
virtual
StackingAction::StackingAction ( )
virtual StackingAction::~StackingAction ( )
virtual
StackingAction::StackingAction ( )
StackingAction::~StackingAction ( )
StackingAction::StackingAction ( )
virtual StackingAction::~StackingAction ( )
inlinevirtual

Definition at line 49 of file StackingAction.hh.

49 {;}
StackingAction::StackingAction ( )
virtual StackingAction::~StackingAction ( )
inlinevirtual

Definition at line 49 of file StackingAction.hh.

49 {;}
StackingAction::StackingAction ( )
virtual StackingAction::~StackingAction ( )
inlinevirtual

Definition at line 49 of file StackingAction.hh.

49 {;}
StackingAction::StackingAction ( )
virtual StackingAction::~StackingAction ( )
virtual
StackingAction::StackingAction ( DetectorConstruction det)

Definition at line 48 of file StackingAction.cc.

49 :fDetector(det),fStackMessenger(0)
50 {
51  fMatWall = 0;
52  fZcav = 0.;
53  fEmCal = 0;
54  first = true;
55  fKillTrack = true;
56 
57  //create a messenger for this class
58  fStackMessenger = new StackingMessenger(this);
59 }
StackingAction::~StackingAction ( )

Member Function Documentation

G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track track)
virtual

Reimplemented from G4UserStackingAction.

Definition at line 53 of file StackingAction.cc.

54 {
55  //keep primary particle
56  if (track->GetParentID() == 0) return fUrgent;
57 
58  //
59  //energy spectrum of secondaries
60  //
61  G4double energy = track->GetKineticEnergy();
62  G4double charge = track->GetDefinition()->GetPDGCharge();
63 
64  G4AnalysisManager* analysisManager = G4AnalysisManager::Instance();
65 
66  if (charge != 0.) analysisManager->FillH1(5,energy);
67  else analysisManager->FillH1(6,energy);
68  return fUrgent;
69 }
G4ParticleDefinition * GetDefinition() const
G4int GetParentID() const
G4double GetKineticEnergy() const
G4double energy(const ThreeVector &p, const G4double m)
double G4double
Definition: G4Types.hh:76
G4double GetPDGCharge() const
G4CsvAnalysisManager G4AnalysisManager
Definition: g4csv_defs.hh:77

Here is the call graph for this function:

virtual G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.

virtual G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.

virtual G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.

virtual G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.

virtual G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.

virtual G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.

virtual G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.

virtual G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.

virtual G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.

virtual G4ClassificationOfNewTrack StackingAction::ClassifyNewTrack ( const G4Track )
virtual

Reimplemented from G4UserStackingAction.

void StackingAction::NewStage ( )
virtual

Reimplemented from G4UserStackingAction.

Definition at line 50 of file StackingAction.cc.

51 {
52  if(stackManager->GetNTotalTrack() == 0)
53  {
54  G4cout << "Physics stage ends" << G4endl;
55  G4DNAChemistryManager::Instance()->Run(); // starts chemistry
56  }
57 }
G4int GetNTotalTrack() const
G4GLOB_DLL std::ostream G4cout
static G4DNAChemistryManager * Instance()
#define G4endl
Definition: G4ios.hh:61
G4StackManager * stackManager

Here is the call graph for this function:

virtual void StackingAction::NewStage ( )
virtual

Reimplemented from G4UserStackingAction.

virtual void StackingAction::NewStage ( )
virtual

Reimplemented from G4UserStackingAction.

virtual void StackingAction::NewStage ( )
virtual

Reimplemented from G4UserStackingAction.

void StackingAction::SetKill ( const G4String name)

Definition at line 107 of file StackingAction.cc.

108 {
109  fParticle = G4ParticleTable::GetParticleTable()->FindParticle(name);
110 }
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
static G4ParticleTable * GetParticleTable()

Here is the call graph for this function:

void StackingAction::SetKillAll ( G4bool  value)
inline

Definition at line 61 of file StackingAction.hh.

61 {fKillAll = value;};
const XML_Char int const XML_Char * value
Definition: expat.h:331
void StackingAction::SetKillEM ( G4bool  value)
inline

Definition at line 62 of file StackingAction.hh.

62 {fKillEM = value;};
const XML_Char int const XML_Char * value
Definition: expat.h:331
void StackingAction::SetKillStatus ( G4bool  value)
inline

Definition at line 51 of file StackingAction.hh.

51 { fKillSecondary = value; };
const XML_Char int const XML_Char * value
Definition: expat.h:331
void StackingAction::SetKillStatus ( G4int  value)
inline

Definition at line 51 of file StackingAction.hh.

51 { fKillSecondary = value;};
const XML_Char int const XML_Char * value
Definition: expat.h:331

Here is the caller graph for this function:

virtual void StackingAction::SetKillStatus ( G4bool  value)
inlinevirtual

Definition at line 53 of file StackingAction.hh.

53 {fKillTrack = value;};
const XML_Char int const XML_Char * value
Definition: expat.h:331
void StackingAction::SetKillStatus ( G4bool  value)

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