LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
ConvertMCTruthToG4.h File Reference

Convert MCTruth to G4Event; Geant4 event generator. More...

#include "Geant4/G4VUserPrimaryGeneratorAction.hh"
#include "Geant4/G4ParticleTable.hh"
#include "Geant4/globals.hh"
#include "canvas/Persistency/Common/Ptr.h"
#include "canvas/Persistency/Common/PtrVector.h"

Go to the source code of this file.

Classes

class  g4b::ConvertMCTruthToG4
 

Namespaces

 simb
 Framework includes.
 
 g4b
 basic interface to Geant4 for ART-based software
 

Detailed Description

Convert MCTruth to G4Event; Geant4 event generator.

Version
Id
ConvertMCTruthToG4.h,v 1.5 2012-09-20 21:47:05 greenc Exp
Author
brebe.nosp@m.l@fn.nosp@m.al.go.nosp@m.v

Every Geant4 simulation has to have some event generator object, even if it's the default ParticleGun. This class is the event generator for G4Base. It accepts a set of simb::MCTruth objects associated with one event, converts them to Geant4's G4Event format, and makes that information available to the G4 simulation when it requests it.

Definition in file ConvertMCTruthToG4.h.