OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Protected Attributes | List of all members
ParticleMatterInteractionHandler Class Referenceabstract

#include <ParticleMatterInteractionHandler.h>

Inheritance diagram for ParticleMatterInteractionHandler:
Inheritance graph
[legend]
Collaboration diagram for ParticleMatterInteractionHandler:
Collaboration graph
[legend]

Public Member Functions

 ParticleMatterInteractionHandler (std::string name, ElementBase *elref)
 
virtual ~ParticleMatterInteractionHandler ()
 
virtual void apply (PartBunchBase< double, 3 > *bunch, const std::pair< Vector_t, double > &boundingSphere)=0
 
virtual const std::string getType () const =0
 
virtual void print (Inform &os)=0
 
virtual bool stillActive ()=0
 
virtual double getTime ()=0
 
virtual std::string getName ()=0
 
virtual size_t getParticlesInMat ()=0
 
virtual unsigned getRediffused ()=0
 
virtual unsigned int getNumEntered ()=0
 
void setFlagAllParticlesIn (bool p)
 
bool getFlagAllParticlesIn () const
 
void updateElement (ElementBase *newref)
 
ElementBasegetElement ()
 
virtual bool computeEnergyLoss (PartBunchBase< double, 3 > *bunch, Vector_t &P, const double deltat, bool includeFluctuations=true) const =0
 

Protected Attributes

ElementBaseelement_ref_m
 
bool allParticleInMat_m
 if all particles are in matter stay inside the particle matter interaction More...
 
const std::string name_m
 

Detailed Description

Definition at line 30 of file ParticleMatterInteractionHandler.h.

Constructor & Destructor Documentation

◆ ParticleMatterInteractionHandler()

ParticleMatterInteractionHandler::ParticleMatterInteractionHandler ( std::string  name,
ElementBase elref 
)
inline

Definition at line 62 of file ParticleMatterInteractionHandler.h.

◆ ~ParticleMatterInteractionHandler()

virtual ParticleMatterInteractionHandler::~ParticleMatterInteractionHandler ( )
inlinevirtual

Definition at line 34 of file ParticleMatterInteractionHandler.h.

Member Function Documentation

◆ apply()

virtual void ParticleMatterInteractionHandler::apply ( PartBunchBase< double, 3 > *  bunch,
const std::pair< Vector_t, double > &  boundingSphere 
)
pure virtual

◆ computeEnergyLoss()

virtual bool ParticleMatterInteractionHandler::computeEnergyLoss ( PartBunchBase< double, 3 > *  bunch,
Vector_t P,
const double  deltat,
bool  includeFluctuations = true 
) const
pure virtual

◆ getElement()

ElementBase * ParticleMatterInteractionHandler::getElement ( )
inline

◆ getFlagAllParticlesIn()

bool ParticleMatterInteractionHandler::getFlagAllParticlesIn ( ) const
inline

Definition at line 84 of file ParticleMatterInteractionHandler.h.

References allParticleInMat_m.

◆ getName()

virtual std::string ParticleMatterInteractionHandler::getName ( )
pure virtual

◆ getNumEntered()

virtual unsigned int ParticleMatterInteractionHandler::getNumEntered ( )
pure virtual

◆ getParticlesInMat()

virtual size_t ParticleMatterInteractionHandler::getParticlesInMat ( )
pure virtual

◆ getRediffused()

virtual unsigned ParticleMatterInteractionHandler::getRediffused ( )
pure virtual

◆ getTime()

virtual double ParticleMatterInteractionHandler::getTime ( )
pure virtual

◆ getType()

virtual const std::string ParticleMatterInteractionHandler::getType ( ) const
pure virtual

◆ print()

virtual void ParticleMatterInteractionHandler::print ( Inform os)
pure virtual

◆ setFlagAllParticlesIn()

void ParticleMatterInteractionHandler::setFlagAllParticlesIn ( bool  p)
inline

◆ stillActive()

virtual bool ParticleMatterInteractionHandler::stillActive ( )
pure virtual

◆ updateElement()

void ParticleMatterInteractionHandler::updateElement ( ElementBase newref)
inline

Member Data Documentation

◆ allParticleInMat_m

bool ParticleMatterInteractionHandler::allParticleInMat_m
protected

if all particles are in matter stay inside the particle matter interaction

Definition at line 57 of file ParticleMatterInteractionHandler.h.

Referenced by ScatteringPhysics::apply(), getFlagAllParticlesIn(), and setFlagAllParticlesIn().

◆ element_ref_m

ElementBase* ParticleMatterInteractionHandler::element_ref_m
protected

◆ name_m

const std::string ParticleMatterInteractionHandler::name_m
protected

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