OPAL (Object Oriented Parallel Accelerator Library)
2024.1
OPAL
|
#include <ParticleMatterInteractionHandler.h>
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) |
ElementBase * | getElement () |
virtual bool | computeEnergyLoss (PartBunchBase< double, 3 > *bunch, Vector_t &P, const double deltat, bool includeFluctuations=true) const =0 |
Protected Attributes | |
ElementBase * | element_ref_m |
bool | allParticleInMat_m |
if all particles are in matter stay inside the particle matter interaction More... | |
const std::string | name_m |
std::unique_ptr< InsideTester > | hitTester_m |
Definition at line 38 of file ParticleMatterInteractionHandler.h.
|
inline |
Definition at line 74 of file ParticleMatterInteractionHandler.h.
|
inlinevirtual |
Definition at line 42 of file ParticleMatterInteractionHandler.h.
|
pure virtual |
Implemented in ScatteringPhysics, and BeamStrippingPhysics.
Referenced by Vacuum::checkVacuum(), and CCollimator::doFinaliseCheck().
|
pure virtual |
Implemented in BeamStrippingPhysics, and ScatteringPhysics.
Referenced by Degrader::applyToReferenceParticle().
|
inline |
Definition at line 86 of file ParticleMatterInteractionHandler.h.
References element_ref_m.
Referenced by ParticleMatterInteraction::print(), and Vacuum::print().
|
inline |
Definition at line 96 of file ParticleMatterInteractionHandler.h.
References allParticleInMat_m.
|
pure virtual |
Implemented in ScatteringPhysics, and BeamStrippingPhysics.
|
pure virtual |
Implemented in ScatteringPhysics, and BeamStrippingPhysics.
|
pure virtual |
Implemented in ScatteringPhysics, and BeamStrippingPhysics.
Referenced by CCollimator::doFinaliseCheck().
|
pure virtual |
Implemented in ScatteringPhysics, and BeamStrippingPhysics.
|
pure virtual |
Implemented in ScatteringPhysics, and BeamStrippingPhysics.
|
pure virtual |
Implemented in ScatteringPhysics, and BeamStrippingPhysics.
Implemented in ScatteringPhysics, and BeamStrippingPhysics.
Referenced by Vacuum::checkVacuum(), and CCollimator::doFinaliseCheck().
|
inline |
Definition at line 91 of file ParticleMatterInteractionHandler.h.
References allParticleInMat_m.
Referenced by ParallelTTracker::computeParticleMatterInteraction(), and CCollimator::doFinaliseCheck().
|
pure virtual |
Implemented in ScatteringPhysics, and BeamStrippingPhysics.
Referenced by CCollimator::doFinaliseCheck().
|
inline |
Definition at line 81 of file ParticleMatterInteractionHandler.h.
References element_ref_m.
Referenced by ElementBase::ElementBase(), and ParticleMatterInteraction::updateElement().
|
protected |
if all particles are in matter stay inside the particle matter interaction
Definition at line 66 of file ParticleMatterInteractionHandler.h.
Referenced by ScatteringPhysics::apply(), getFlagAllParticlesIn(), and setFlagAllParticlesIn().
|
protected |
Definition at line 64 of file ParticleMatterInteractionHandler.h.
Referenced by ScatteringPhysics::addBackToBunch(), BeamStrippingPhysics::apply(), ScatteringPhysics::copyFromBunch(), getElement(), BeamStrippingPhysics::getName(), ScatteringPhysics::getName(), BeamStrippingPhysics::print(), ScatteringPhysics::print(), ScatteringPhysics::ScatteringPhysics(), ScatteringPhysics::setTimeStepForLeavingParticles(), and updateElement().
|
protected |
Definition at line 70 of file ParticleMatterInteractionHandler.h.
Referenced by ScatteringPhysics::addBackToBunch(), BeamStrippingPhysics::apply(), ScatteringPhysics::computeInteraction(), ScatteringPhysics::copyFromBunch(), BeamStrippingPhysics::doPhysics(), and ScatteringPhysics::ScatteringPhysics().
|
protected |
Definition at line 68 of file ParticleMatterInteractionHandler.h.
Referenced by BeamStrippingPhysics::getName(), ScatteringPhysics::getName(), BeamStrippingPhysics::print(), and ScatteringPhysics::print().