Geant4 11.2.2
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 190 of file G4INCLParticle.cc.

190 {
191 for(const_iterator i=begin(), e=end(); i!=e; ++i) {
192 (*i)->boost(b);
193 }
194 }

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

◆ getParticleListBias()

G4double G4INCL::ParticleList::getParticleListBias ( ) const

Definition at line 196 of file G4INCLParticle.cc.

196 {
197 if(G4int((*this).size())==0) return 1.;
198 std::vector<G4int> MergedVector;
199 for(ParticleIter i = (*this).begin(), e = (*this).end(); i!=e; ++i){
200 MergedVector = Particle::MergeVectorBias(MergedVector,(*i));
201 }
202 return Particle::getBiasFromVector(MergedVector);
203 }
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 205 of file G4INCLParticle.cc.

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

Referenced by G4INCL::DecayAvatar::postInteraction(), G4INCL::InteractionAvatar::postInteraction(), and G4INCL::SurfaceAvatar::postInteraction().

◆ rotateMomentum()

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

Definition at line 184 of file G4INCLParticle.cc.

184 {
185 for(const_iterator i=begin(), e=end(); i!=e; ++i) {
186 (*i)->rotateMomentum(angle, axis);
187 }
188 }

◆ rotatePosition()

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

Definition at line 178 of file G4INCLParticle.cc.

178 {
179 for(const_iterator i=begin(), e=end(); i!=e; ++i) {
180 (*i)->rotatePosition(angle, axis);
181 }
182 }

◆ rotatePositionAndMomentum()

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

Definition at line 172 of file G4INCLParticle.cc.

172 {
173 for(const_iterator i=begin(), e=end(); i!=e; ++i) {
174 (*i)->rotatePositionAndMomentum(angle, axis);
175 }
176 }

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