Message: Re: Compilation Error when G4GeneralParticleSource is added in PrimaryGeneratorAction file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Compilation Error when G4GeneralParticleSource is added in PrimaryGeneratorAction file 

Forum: Documentation and Examples
Re: Question Compilation Error when G4GeneralParticleSource is added in PrimaryGeneratorAction file (satya)
Date: 13 Aug, 2012
From: Ivana Hrivnacova <Ivana Hrivnacova>

You have to change also the type of the particleGun variable in PrimaryGeneratorAction.hh:
//#include "G4ParticleGun.hh"
#include "G4GeneralParticleSource.hh"
..
    //G4ParticleGun*         particleGun;
    G4GeneralParticleSource* particleGun;

Best regards,

 Add Message Add Message
to: "Re: Compilation Error when G4GeneralParticleSource is added in PrimaryGeneratorAction 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 ]