Version: SMASH-2.0
density.cc File Reference
#include "smash/density.h"
#include "smash/constants.h"
#include "smash/logging.h"

Go to the source code of this file.

Namespaces

 smash
 

Functions

double smash::density_factor (const ParticleType &type, DensityType dens_type)
 Get the factor that determines how much a particle contributes to the density type that is computed. More...
 
std::pair< double, ThreeVector > smash::unnormalized_smearing_factor (const ThreeVector &r, const FourVector &p, const double m_inv, const DensityParameters &dens_par, const bool compute_gradient=false)
 Implements gaussian smearing for any quantity. More...
 
template<typename T >
std::tuple< double, FourVector, ThreeVector, ThreeVector, ThreeVector > smash::current_eckart_impl (const ThreeVector &r, const T &plist, const DensityParameters &par, DensityType dens_type, bool compute_gradient, bool smearing)
 Calculates Eckart rest frame density and 4-current of a given density type and optionally the gradient of the density in an arbitary frame, the curl of the 3-current and the time derivative of the 3-current. More...
 
std::tuple< double, FourVector, ThreeVector, ThreeVector, ThreeVector > smash::current_eckart (const ThreeVector &r, const ParticleList &plist, const DensityParameters &par, DensityType dens_type, bool compute_gradient, bool smearing)
 Calculates Eckart rest frame density and 4-current of a given density type and optionally the gradient of the density in an arbitary frame, the curl of the 3-current and the time derivative of the 3-current. More...
 
std::tuple< double, FourVector, ThreeVector, ThreeVector, ThreeVector > smash::current_eckart (const ThreeVector &r, const Particles &plist, const DensityParameters &par, DensityType dens_type, bool compute_gradient, bool smearing)
 convenience overload of the above (ParticleList -> Particles) More...
 
std::ostream & smash::operator<< (std::ostream &os, DensityType dt)
 Create the output operator for the densities. More...