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

#include <G4INCLParticleEntryAvatar.hh>

+ Inheritance diagram for G4INCL::ParticleEntryAvatar:

Public Member Functions

 ParticleEntryAvatar (G4double, G4INCL::Nucleus *, G4INCL::Particle *)
 
virtual ~ParticleEntryAvatar ()
 
virtual G4INCL::IChannelgetChannel ()
 
ParticleList getParticles () const
 
virtual void preInteraction ()
 
virtual void postInteraction (FinalState *)
 
std::string dump () const
 
- Public Member Functions inherited from G4INCL::IAvatar
 IAvatar ()
 
 IAvatar (G4double time)
 
virtual ~IAvatar ()
 
virtual G4INCL::IChannelgetChannel ()=0
 
FinalStategetFinalState ()
 
void fillFinalState (FinalState *fs)
 
virtual void preInteraction ()=0
 
virtual void postInteraction (FinalState *)=0
 
G4double getTime () const
 
virtual ParticleList getParticles () const =0
 
virtual std::string dump () const =0
 
AvatarType getType () const
 
G4bool isACollision () const
 
G4bool isADecay () const
 
void setType (AvatarType t)
 
long getID () const
 
std::string toString ()
 

Additional Inherited Members

- Protected Attributes inherited from G4INCL::IAvatar
G4double theTime
 

Detailed Description

Definition at line 47 of file G4INCLParticleEntryAvatar.hh.

Constructor & Destructor Documentation

◆ ParticleEntryAvatar()

G4INCL::ParticleEntryAvatar::ParticleEntryAvatar ( G4double  time,
G4INCL::Nucleus nucleus,
G4INCL::Particle particle 
)

Definition at line 47 of file G4INCLParticleEntryAvatar.cc.

50 :IAvatar(time), theNucleus(nucleus), theParticle(particle)
51 {
53 }
void setType(AvatarType t)
@ ParticleEntryAvatarType

◆ ~ParticleEntryAvatar()

G4INCL::ParticleEntryAvatar::~ParticleEntryAvatar ( )
virtual

Definition at line 55 of file G4INCLParticleEntryAvatar.cc.

56 {}

Member Function Documentation

◆ dump()

std::string G4INCL::ParticleEntryAvatar::dump ( ) const
virtual

Implements G4INCL::IAvatar.

Definition at line 58 of file G4INCLParticleEntryAvatar.cc.

58 {
59 std::stringstream ss;
60 ss << "(avatar " << theTime <<" 'particle-entry" << '\n'
61 << "(list " << '\n'
62 << theParticle->dump()
63 << "))" << '\n';
64 return ss.str();
65 }
std::string dump() const

◆ getChannel()

IChannel * G4INCL::ParticleEntryAvatar::getChannel ( )
virtual

Implements G4INCL::IAvatar.

Definition at line 71 of file G4INCLParticleEntryAvatar.cc.

71 {
72 return new ParticleEntryChannel(theNucleus, theParticle);
73 }

◆ getParticles()

ParticleList G4INCL::ParticleEntryAvatar::getParticles ( ) const
inlinevirtual

Implements G4INCL::IAvatar.

Definition at line 52 of file G4INCLParticleEntryAvatar.hh.

52 {
53 ParticleList theParticleList;
54 theParticleList.push_back(theParticle);
55 return theParticleList;
56 };

◆ postInteraction()

void G4INCL::ParticleEntryAvatar::postInteraction ( FinalState )
virtual

Implements G4INCL::IAvatar.

Definition at line 67 of file G4INCLParticleEntryAvatar.cc.

67 {
68 theParticle->rpCorrelate();
69 }
void rpCorrelate()
Make the particle follow a strict r-p correlation.

◆ preInteraction()

virtual void G4INCL::ParticleEntryAvatar::preInteraction ( )
inlinevirtual

Implements G4INCL::IAvatar.

Definition at line 58 of file G4INCLParticleEntryAvatar.hh.

58{};

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