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)
Date: 24 Feb, 2011
From: Marc Verderi <Marc Verderi>

Hello Tim,

As it is, your main program looks fine. Could you post the other parts 
of your code ?

Cheers,
Marc

Le 25/02/2011 05:33, Tim Hodson a écrit :
> *** Discussion title: Documentation and Examples
>
> Greetings friends,
>
> I have been learning c++ and GEANT4 for a while now and developing a
> prototype program for a research group in radiation oncology. It is
> absolutely basic. I have merely defined a cube filled with water inside
> some mother volume. At the centre is a source of 100keV gamma rays. I
> have declared and defined my three mandatory classes (ie Detector,
> physics and primarygeneration).
>
> My main() is very similar to that in novice example 1. However, while
> this example spits out all sorts of information in the cygwin window
> which gets written to an out file the only output I get is:
>
> *************************************************************
> Geant4 version $Name: geant4-09-03-patch-01 $   (9-April-2010)
> Copyright : Geant4 Collaboration
> Reference : NIM A 506 (2003), 250-303
>          WWW : http://cern.ch/geant4
> *************************************************************
>
> and nothing else.
>
> Is this because my simulation is more complicated (ie it has secondary
> particles/more processes)? Do I need a G4event(Action) or tracking or
> stacking object? Do I just need to make my geometry a sensitive
> detector?
>
> I would like the sort of output that is spat out with novice example 2
> and this program has eventaction/runaction objects and a stacking
> mechanism. Do I need these for the simulation described above? But if
> that is the case why doesn't novice example 1 need them to produce an
> output? Basically I want to know
>
> 1)why nothing is being output by my program? 2)what more do I have to
> add to my program so it does produce an output?
>
> I will attach a copy of my main.
>
> I have been using all the online resources for teaching myself but
> mostly they seem to start from a higher starting point and don't address
> these basic questions. So I have to annoy all of you lovely people who
> have been so helpful. Thanking all you excellent persons in advance. Tim
>
>     Attachment:
>        http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2011/02/24/20.30-34728-istrator_Desktop_main.txt
>
> -------------------------------------------------------------
> Visit this GEANT4 at hypernews.slac.stanford.edu message (to reply or unsubscribe) at:
> http://hypernews.slac.stanford.edu/HyperNews/geant4/get/docsexamples/496.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 - 25 Feb, 2011)
(_ None: Re: My program doesn't output anything   (Marc Verderi - 25 Feb, 2011)
(_ 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 ]