Message: Re: My program doesn't output anything Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: My program doesn't output anything 

Forum: Documentation and Examples
Re: Question My program doesn't output anything (Tim Hodson)
Re: None Re: My program doesn't output anything (Marc Verderi)
Re: More Re: My program doesn't output anything (Tim Hodson)
Date: 25 Feb, 2011
From: Marc Verderi <Marc Verderi>

Hi Tim,

Thank you... still puzzling...

I just noticed, but I guess this is just a mistake in copy/paste, in the 
main, there is:
     runManager->beamOn(1);
which should be:
     runManager->BeamOn(1); (capital B)
but this would not have compiled anyway...

Could you try commenting out:
   G4int numberOfEvent = 1;
   runManager->beamOn(1);

and put instead:
UI->ApplyCommand("/run/beamOn 1");

Just to see...

Cheers,
Marc




Le 25/02/2011 16:13, Tim Hodson a écrit :
> *** Discussion title: Documentation and Examples
>
> no worries, with regards to primary generation, I have another version
> of this which uses a gps with a macro which does the exact same thing. I
> posted this version in the hope that it is simpler to understand and the
> solution is the same
>
>     Attachment:
>        http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/02/25/07.12-87701-yPrimaryGeneratorAction.h
>        http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/02/25/07.12-21123-MyDetectorConstruction.cc
>        http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/02/25/07.12-11450-MyPhysicsList.cc
>        http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/02/25/07.12-34427-PrimaryGeneratorAction.cc
>        http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/02/25/07.12-29173-MyPhysicsList.h
>        http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/02/25/07.12-26712-MyDetectorConstruction.h
>
> The three mandatory headers and their .cc files. Simple as you like
>
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at:
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/docsexamples/496/1/1.html

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 More: Re: My program doesn't output anything   (Tim Hodson - 26 Feb, 2011)
(_ Sad: Re: My program doesn't output anything   (Tim Hodson - 09 Mar, 2011)
 Add Message Add Message
to: "Re: My program doesn't output anything"

 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 ]