Geant4 10.7.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 178 of file G4INCLParticle.cc.

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

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

◆ getParticleListBias()

G4double G4INCL::ParticleList::getParticleListBias ( ) const

Definition at line 184 of file G4INCLParticle.cc.

184 {
185 if(G4int((*this).size())==0) return 1.;
186 std::vector<G4int> MergedVector;
187 for(ParticleIter i = (*this).begin(), e = (*this).end(); i!=e; ++i){
188 MergedVector = Particle::MergeVectorBias(MergedVector,(*i));
189 }
190 return Particle::getBiasFromVector(MergedVector);
191 }
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 193 of file G4INCLParticle.cc.

193 {
194 std::vector<G4int> MergedVector;
195 if(G4int((*this).size())==0) return MergedVector;
196 for(ParticleIter i = (*this).begin(), e = (*this).end(); i!=e; ++i){
197 MergedVector = Particle::MergeVectorBias(MergedVector,(*i));
198 }
199 return MergedVector;
200 }

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

◆ rotateMomentum()

void G4INCL::ParticleList::rotateMomentum ( 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)->rotateMomentum(angle, axis);
175 }
176 }

◆ rotatePosition()

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

Definition at line 166 of file G4INCLParticle.cc.

166 {
167 for(const_iterator i=begin(), e=end(); i!=e; ++i) {
168 (*i)->rotatePosition(angle, axis);
169 }
170 }

◆ rotatePositionAndMomentum()

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

Definition at line 160 of file G4INCLParticle.cc.

160 {
161 for(const_iterator i=begin(), e=end(); i!=e; ++i) {
162 (*i)->rotatePositionAndMomentum(angle, axis);
163 }
164 }

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