Geant4 11.4.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 *, EntryType=Default)
virtual ~ParticleEntryAvatar ()
virtual G4INCL::IChannelgetChannel ()
ParticleList getParticles () const
virtual void preInteraction ()
virtual void postInteraction (FinalState *)
std::string dump () const
EntryType getEntryType () const
Public Member Functions inherited from G4INCL::IAvatar
 IAvatar ()
 IAvatar (G4double time)
virtual ~IAvatar ()
FinalStategetFinalState ()
void fillFinalState (FinalState *fs)
G4double getTime () const
G4double setTime (G4double t) const
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 50 of file G4INCLParticleEntryAvatar.hh.

Constructor & Destructor Documentation

◆ ParticleEntryAvatar()

G4INCL::ParticleEntryAvatar::ParticleEntryAvatar ( G4double time,
G4INCL::Nucleus * nucleus,
G4INCL::Particle * particle,
EntryType EType = Default )

Definition at line 52 of file G4INCLParticleEntryAvatar.cc.

56 :IAvatar(time), theNucleus(nucleus), theParticle(particle), theEType(EType)
57 {
59 }
void setType(AvatarType t)
@ ParticleEntryAvatarType

◆ ~ParticleEntryAvatar()

G4INCL::ParticleEntryAvatar::~ParticleEntryAvatar ( )
virtual

Definition at line 61 of file G4INCLParticleEntryAvatar.cc.

62 {}

Member Function Documentation

◆ dump()

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

Implements G4INCL::IAvatar.

Definition at line 64 of file G4INCLParticleEntryAvatar.cc.

64 {
65 std::stringstream ss;
66 ss << "(avatar " << theTime <<" 'particle-entry" << '\n'
67 << "(list " << '\n'
68 << theParticle->dump()
69 << "))" << '\n';
70 return ss.str();
71 }

◆ getChannel()

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

Implements G4INCL::IAvatar.

Definition at line 77 of file G4INCLParticleEntryAvatar.cc.

77 {
78 if(theEType == APAR){
79 return new PbarAtrestEntryChannel(theNucleus, theParticle);
80 INCL_DEBUG("Particle " << theParticle->getID() << " is trying to enter at rest" << '\n');
81 }
82 else if(theEType == ANAR){
83 return new NbarAtrestEntryChannel(theNucleus, theParticle);
84 INCL_DEBUG("Particle " << theParticle->getID() << "is trying to enter at rest " << '\n');
85
86 }
87 else if(theEType == ADAR){
88 return new AntinucleiAtrestEntryChannel(theNucleus, theParticle);
89 INCL_DEBUG("Particle " << theParticle->getID() << "is trying to enter at rest " << '\n');
90 }
91 else {
92 return new ParticleEntryChannel(theNucleus, theParticle);
93 }
94 }
#define INCL_DEBUG(x)

◆ getEntryType()

EntryType G4INCL::ParticleEntryAvatar::getEntryType ( ) const
inline

Definition at line 66 of file G4INCLParticleEntryAvatar.hh.

66{ return theEType; }; //D

◆ getParticles()

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

Implements G4INCL::IAvatar.

Definition at line 55 of file G4INCLParticleEntryAvatar.hh.

55 {
56 ParticleList theParticleList;
57 theParticleList.push_back(theParticle);
58 return theParticleList;
59 };
std::vector< Base * > ParticleList
Definition PoPI.hpp:186

◆ postInteraction()

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

Implements G4INCL::IAvatar.

Definition at line 73 of file G4INCLParticleEntryAvatar.cc.

73 {
74 theParticle->rpCorrelate();
75 }

◆ preInteraction()

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

Implements G4INCL::IAvatar.

Definition at line 61 of file G4INCLParticleEntryAvatar.hh.

61{};

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