Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4INCL::AvatarAction Class Reference

#include <G4INCLAvatarAction.hh>

Public Member Functions

 AvatarAction ()
 
 ~AvatarAction ()
 
void beforeAvatarAction (IAvatar *a, Nucleus *n)
 
void afterAvatarAction (IAvatar *a, Nucleus *n, FinalState *fs)
 

Detailed Description

Definition at line 47 of file G4INCLAvatarAction.hh.

Constructor & Destructor Documentation

◆ AvatarAction()

G4INCL::AvatarAction::AvatarAction ( )

Definition at line 44 of file G4INCLAvatarAction.cc.

44 {
45
46 }

◆ ~AvatarAction()

G4INCL::AvatarAction::~AvatarAction ( )

Definition at line 48 of file G4INCLAvatarAction.cc.

48 {
49
50 }

Member Function Documentation

◆ afterAvatarAction()

void G4INCL::AvatarAction::afterAvatarAction ( IAvatar a,
Nucleus n,
FinalState fs 
)

Definition at line 57 of file G4INCLAvatarAction.cc.

57 {
58
59 ParticleList modified = fs->getModifiedParticles();
60 for( ParticleIter p = modified.begin(); p != modified.end(); ++p )
61 if(a->isACollision())
62 (*p)->incrementNumberOfCollisions();
63 else if(a->isADecay())
64 (*p)->incrementNumberOfDecays();
65
66 ParticleList created = fs->getCreatedParticles();
67 for( ParticleIter p = created.begin(); p != created.end(); ++p )
68 if(a->isACollision())
69 (*p)->incrementNumberOfCollisions();
70 else if(a->isADecay())
71 (*p)->incrementNumberOfDecays();
72
73 }
std::list< G4INCL::Particle * > ParticleList
std::list< G4INCL::Particle * >::const_iterator ParticleIter

◆ beforeAvatarAction()

void G4INCL::AvatarAction::beforeAvatarAction ( IAvatar a,
Nucleus n 
)

Definition at line 52 of file G4INCLAvatarAction.cc.

52 {
53 n->getStore()->getBook()->incrementAvatars(a->getType());
54 DEBUG("Next avatar:" << std::endl << a->dump() << std::endl);
55 }
#define DEBUG(x)

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