Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4GeometryCellImportance.hh File Reference
#include <map>
#include "globals.hh"
#include "G4GeometryCell.hh"
#include "G4GeometryCellComp.hh"

Go to the source code of this file.

Typedefs

using G4GeometryCellImportance
 G4GeometryCellImportance is a map used internually by importance sampling. It is a container for "cell" importance value pairs.

Functions

std::ostream & operator<< (std::ostream &out, const G4GeometryCellImportance &gCelli)

Typedef Documentation

◆ G4GeometryCellImportance

Initial value:
std::map<G4GeometryCell,
double G4double
Definition G4Types.hh:83
G4GeometryCellComp is a class needed for comparing G4GeometryCell objects, e.g. in STL containers.
G4GeometryCell is used for scoring and importance sampling. It defines a "cell", which,...

G4GeometryCellImportance is a map used internually by importance sampling. It is a container for "cell" importance value pairs.

Definition at line 48 of file G4GeometryCellImportance.hh.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream & out,
const G4GeometryCellImportance & gCelli )

Definition at line 34 of file G4GeometryCellImportance.cc.

36{
37 for (const auto & it : gCelli)
38 {
39 out << it.first << ", importance = ";
40 out << it.second << "\n";
41 }
42 return out;
43}