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

#include <G4INCLParticle.hh>

Inheritance diagram for G4INCL::ParticleList:

Public Member Functions

void rotatePositionAndMomentum (const G4double angle, const ThreeVector &axis) const
void rotatePosition (const G4double angle, const ThreeVector &axis) const
void rotateMomentum (const G4double angle, const ThreeVector &axis) const
void boost (const ThreeVector &b) const
G4double getParticleListBias () const
std::vector< G4intgetParticleListBiasVector () const
Public Member Functions inherited from G4INCL::UnorderedVector< Particle * >
 UnorderedVector ()
void remove (const Particle *&t)
G4bool contains (const Particle *&t) const

Detailed Description

Definition at line 62 of file G4INCLParticle.hh.

Member Function Documentation

◆ boost()

void G4INCL::ParticleList::boost ( const ThreeVector & b) const

Definition at line 193 of file G4INCLParticle.cc.

193 {
194 for(const_iterator i=begin(), e=end(); i!=e; ++i) {
195 (*i)->boost(b);
196 }
197 }

◆ getParticleListBias()

G4double G4INCL::ParticleList::getParticleListBias ( ) const

Definition at line 199 of file G4INCLParticle.cc.

199 {
200 if(G4int((*this).size())==0) return 1.;
201 std::vector<G4int> MergedVector;
202 for(ParticleIter i = (*this).begin(), e = (*this).end(); i!=e; ++i){
203 MergedVector = Particle::MergeVectorBias(MergedVector,(*i));
204 }
205 return Particle::getBiasFromVector(std::move(MergedVector));
206 }
int G4int
Definition G4Types.hh:85
static std::vector< G4int > MergeVectorBias(Particle const *const p1, Particle const *const p2)
static G4double getBiasFromVector(std::vector< G4int > VectorBias)
ParticleList::const_iterator ParticleIter

◆ getParticleListBiasVector()

std::vector< G4int > G4INCL::ParticleList::getParticleListBiasVector ( ) const

Definition at line 208 of file G4INCLParticle.cc.

208 {
209 std::vector<G4int> MergedVector;
210 if(G4int((*this).size())==0) return MergedVector;
211 for(ParticleIter i = (*this).begin(), e = (*this).end(); i!=e; ++i){
212 MergedVector = Particle::MergeVectorBias(MergedVector,(*i));
213 }
214 return MergedVector;
215 }

Referenced by G4INCL::SurfaceAvatar::postInteraction().

◆ rotateMomentum()

void G4INCL::ParticleList::rotateMomentum ( const G4double angle,
const ThreeVector & axis ) const

Definition at line 187 of file G4INCLParticle.cc.

187 {
188 for(const_iterator i=begin(), e=end(); i!=e; ++i) {
189 (*i)->rotateMomentum(angle, axis);
190 }
191 }
const axis_t axis_to_type< N >::axis
Definition pugixml.cc:9668

◆ rotatePosition()

void G4INCL::ParticleList::rotatePosition ( const G4double angle,
const ThreeVector & axis ) const

Definition at line 181 of file G4INCLParticle.cc.

181 {
182 for(const_iterator i=begin(), e=end(); i!=e; ++i) {
183 (*i)->rotatePosition(angle, axis);
184 }
185 }

◆ rotatePositionAndMomentum()

void G4INCL::ParticleList::rotatePositionAndMomentum ( const G4double angle,
const ThreeVector & axis ) const

Definition at line 175 of file G4INCLParticle.cc.

175 {
176 for(const_iterator i=begin(), e=end(); i!=e; ++i) {
177 (*i)->rotatePositionAndMomentum(angle, axis);
178 }
179 }

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