Geant4  10.02.p03
examples/extended/medical/dna/microdosimetry/src/RunAction.cc File Reference
#include "RunAction.hh"
#include "G4Run.hh"
#include "TrackingAction.hh"
#include "G4ParticleDefinition.hh"
#include "G4RunManager.hh"
#include "Analysis.hh"
#include "G4Threading.hh"
#include "CommandLineParser.hh"
Include dependency graph for examples/extended/medical/dna/microdosimetry/src/RunAction.cc:

Go to the source code of this file.

Functions

void PrintNParticles (std::map< const G4ParticleDefinition *, int > &container)
 

Function Documentation

◆ PrintNParticles()

void PrintNParticles ( std::map< const G4ParticleDefinition *, int > &  container)

Definition at line 312 of file examples/extended/medical/dna/microdosimetry/src/RunAction.cc.

313 {
314  std::map<const G4ParticleDefinition*, int>::iterator it;
315  for(it = container.begin() ;
316  it != container.end(); it ++)
317  {
318  G4cout << "N " << it->first->GetParticleName() << " : "
319  << it->second << G4endl;
320  }
321 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61