Geant4 9.6.0
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 () const
 
ParticleList getParticles () const
 
virtual void preInteraction ()
 
virtual FinalStatepostInteraction (FinalState *)
 
std::string dump () const
 
- Public Member Functions inherited from G4INCL::IAvatar
 IAvatar ()
 
 IAvatar (G4double time)
 
virtual ~IAvatar ()
 
virtual G4INCL::IChannelgetChannel () const =0
 
G4INCL::FinalStategetFinalState ()
 
virtual void preInteraction ()=0
 
virtual FinalStatepostInteraction (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 ()
 

Static Public Attributes

static const G4double cutNN
 
static const G4double cutNNSquared
 

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 48 of file G4INCLParticleEntryAvatar.cc.

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

◆ ~ParticleEntryAvatar()

G4INCL::ParticleEntryAvatar::~ParticleEntryAvatar ( )
virtual

Definition at line 56 of file G4INCLParticleEntryAvatar.cc.

57 {}

Member Function Documentation

◆ dump()

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

Implements G4INCL::IAvatar.

Definition at line 59 of file G4INCLParticleEntryAvatar.cc.

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

◆ getChannel()

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

Implements G4INCL::IAvatar.

Definition at line 72 of file G4INCLParticleEntryAvatar.cc.

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

◆ 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 };
std::list< G4INCL::Particle * > ParticleList

◆ postInteraction()

FinalState * G4INCL::ParticleEntryAvatar::postInteraction ( FinalState fs)
virtual

Implements G4INCL::IAvatar.

Definition at line 68 of file G4INCLParticleEntryAvatar.cc.

68 {
69 return fs;
70 }

◆ preInteraction()

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

Implements G4INCL::IAvatar.

Definition at line 58 of file G4INCLParticleEntryAvatar.hh.

58{};

Member Data Documentation

◆ cutNN

const G4double G4INCL::ParticleEntryAvatar::cutNN
static

Definition at line 63 of file G4INCLParticleEntryAvatar.hh.

◆ cutNNSquared

const G4double G4INCL::ParticleEntryAvatar::cutNNSquared
static

Definition at line 64 of file G4INCLParticleEntryAvatar.hh.


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