Message: Re: Generating particles based on information stored in root file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Generating particles based on information stored in root file 

Forum: Particles
Re: Question Generating particles based on information stored in root file (SAKIB RAHMAN)
Date: 11 May, 2016
From: Ivana Hrivnacova <Ivana Hrivnacova>

Hello,

Please, have a look in the extended/eventgenerator/userPrimaryGenerator example (available since Geant4 10.2) how to implement your own generator. In your case, you need to implement reading your Root file in

 void PrimaryGenerator::GeneratePrimaryVertex(G4Event* event)

Best regards,

 Add Message Add Message
to: "Re: Generating particles based on information stored in root file"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]