G4INCL::ClusterUtils Class Reference

#include <G4INCLClusterUtils.hh>


Static Public Member Functions

static G4int getZ (const ParticleList &)
static G4int getZ (const ParticleList &, Particle *)
static G4int getA (const ParticleList &)
static G4int getA (const ParticleList &, Particle *)
static G4double getKineticEnergy (const ParticleList &pl)
static G4double getTotalEnergy (const ParticleList &)
static G4double getTotalEnergy (const ParticleList &, Particle *)
static ThreeVector getNewPositionVector (const ParticleList &pl, Particle *p)
static ThreeVector getNewPositionVector (const ParticleList &pl)
static ThreeVector getNewPositionVector (const ThreeVector &, const ParticleList &, Particle *)
static G4double getPhaseSpace (const ThreeVector &clusterPosition, const ThreeVector &clusterMomentum, G4int clusterA, Particle *p)
static G4double getPhaseSpace (const ParticleList &)
static G4double getPhaseSpace (const ParticleList &, Particle *)
static G4bool isBetterCluster (ParticleList *newCluster, ParticleList *originalCluster)

Protected Member Functions

 ClusterUtils ()
 ~ClusterUtils ()


Detailed Description

Definition at line 45 of file G4INCLClusterUtils.hh.


Constructor & Destructor Documentation

G4INCL::ClusterUtils::ClusterUtils (  )  [protected]

G4INCL::ClusterUtils::~ClusterUtils (  )  [protected]


Member Function Documentation

G4int G4INCL::ClusterUtils::getA ( const ParticleList ,
Particle  
) [static]

Definition at line 77 of file G4INCLClusterUtils.cc.

References G4INCL::Particle::getA(), and getA().

00077                                                               {
00078     return (ClusterUtils::getA(pl) + p->getA());
00079   }

G4int G4INCL::ClusterUtils::getA ( const ParticleList  )  [static]

Definition at line 69 of file G4INCLClusterUtils.cc.

Referenced by getA().

00069                                                  {
00070     G4int A = 0;
00071     for(ParticleIter i = pl.begin(); i != pl.end(); ++i) {
00072       A += (*i)->getA();
00073     }
00074     return A;
00075   }

G4double G4INCL::ClusterUtils::getKineticEnergy ( const ParticleList pl  )  [static]

Definition at line 49 of file G4INCLClusterUtils.cc.

00049                                                                 {
00050     G4double Ekin = 0.0;
00051     for(ParticleIter i = pl.begin(); i != pl.end(); ++i) {
00052       Ekin += std::sqrt(std::pow((*i)->getEnergy(), 2) - std::pow((*i)->getMass(), 2));;
00053     }
00054     return Ekin;
00055   }

ThreeVector G4INCL::ClusterUtils::getNewPositionVector ( const ThreeVector ,
const ParticleList ,
Particle  
) [static]

Definition at line 98 of file G4INCLClusterUtils.cc.

References G4INCL::ParticleTable::clusterPosFact, and G4INCL::Particle::getPosition().

00098                                                                                                                     {
00099     ThreeVector newPosition = oldPosition;
00100     newPosition *= pl.size();
00101     newPosition += p->getPosition();
00102     newPosition *= ParticleTable::clusterPosFact[pl.size() + 1];
00103     return newPosition;
00104   }

ThreeVector G4INCL::ClusterUtils::getNewPositionVector ( const ParticleList pl  )  [static]

Definition at line 81 of file G4INCLClusterUtils.cc.

References G4INCL::ParticleTable::clusterPosFact.

00082   {
00083     ThreeVector pos(0.0, 0.0, 0.0);
00084     G4int A = 1;
00085     for(ParticleIter i = pl.begin(); i != pl.end(); ++i) {
00086       pos += (pos * A)*ParticleTable::clusterPosFact[A];
00087       ++A;
00088     }
00089     return pos;
00090   }

ThreeVector G4INCL::ClusterUtils::getNewPositionVector ( const ParticleList pl,
Particle p 
) [static]

Definition at line 92 of file G4INCLClusterUtils.cc.

References G4INCL::ParticleTable::clusterPosFact, and G4INCL::Particle::getPosition().

00093   {
00094     ThreeVector pos = ClusterUtils::getNewPositionVector(pl);
00095     return ((pos * pl.size()) + p->getPosition()) * ParticleTable::clusterPosFact[pl.size() + 1];
00096   }

static G4double G4INCL::ClusterUtils::getPhaseSpace ( const ParticleList ,
Particle  
) [static]

static G4double G4INCL::ClusterUtils::getPhaseSpace ( const ParticleList  )  [static]

G4double G4INCL::ClusterUtils::getPhaseSpace ( const ThreeVector clusterPosition,
const ThreeVector clusterMomentum,
G4int  clusterA,
Particle p 
) [static]

Definition at line 106 of file G4INCLClusterUtils.cc.

References G4INCL::ParticleTable::clusterPosFact2, G4INCL::Particle::getA(), G4INCL::Particle::getMomentum(), and G4INCL::Particle::getPosition().

00109                                                   {
00110     G4double psSpace = (p->getPosition() - clusterPosition).mag2();
00111     G4double psMomentum = (p->getMomentum() - clusterMomentum).mag2();
00112     return psSpace * psMomentum * ParticleTable::clusterPosFact2[clusterA + p->getA()];
00113   }

static G4double G4INCL::ClusterUtils::getTotalEnergy ( const ParticleList ,
Particle  
) [static]

G4double G4INCL::ClusterUtils::getTotalEnergy ( const ParticleList  )  [static]

Definition at line 41 of file G4INCLClusterUtils.cc.

00041                                                               {
00042     G4double E = 0.0;
00043     for(ParticleIter i = pl.begin(); i != pl.end(); ++i) {
00044       E += (*i)->getEnergy();
00045     }
00046     return E;
00047   }

G4int G4INCL::ClusterUtils::getZ ( const ParticleList ,
Particle  
) [static]

Definition at line 65 of file G4INCLClusterUtils.cc.

References G4INCL::Particle::getZ(), and getZ().

00065                                                               {
00066     return (ClusterUtils::getZ(pl) + p->getZ());
00067   }

G4int G4INCL::ClusterUtils::getZ ( const ParticleList  )  [static]

Definition at line 57 of file G4INCLClusterUtils.cc.

Referenced by getZ().

00057                                                  {
00058     G4int Z = 0;
00059     for(ParticleIter i = pl.begin(); i != pl.end(); ++i) {
00060       Z += (*i)->getZ();
00061     }
00062     return Z;
00063   }

G4bool G4INCL::ClusterUtils::isBetterCluster ( ParticleList newCluster,
ParticleList originalCluster 
) [static]

Definition at line 115 of file G4INCLClusterUtils.cc.

00115                                                                      {
00116     return true;
00117   }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:54:06 2013 for Geant4 by  doxygen 1.4.7