|Message: Re: Other questions through TestEm7||Not Logged In (login)|
Click on the Forum title, e.g. on the "Forums by Category" page, to read a sequence of postings to the Forum and its threads all in one page. If you are only interested in one thread or the thread following a specific posting, click the thread or the posting, which takes you to a smaller page, which contains only the part you are interested in and may be easier to navigate.
Messages are "chained" if there are only replies at the first level, i.e. 1/1.html, 1/1/1.html etc. In case of "chained" messages the message number is replaced by the icon and there is no indentation.
Inline: Display the subject line only or also the text of the posting(s); for the choice "All" the "Outline" choices are switched off.
|1||0||1||no text / full text of posting|
|2||1||All||text for level 1 only / text for All postings|
Outline: Choose the depth of the posting thread, successive toggle controls provide increasing detail.
|1||2||1||2 levels / 1 level (original posting)|
|2||3||2||3 levels / 2 levels|
|3||3||All||3 levels / all levels (all postings)|
User Shahrokh wrote:
>> Thanks a lot for leading me. I did your suggestion and I runned >> successfully the code. Now, I have other questions. >> >> 1- If you runned the code with n_particle=10000 at >> PrimaryGeneratorAction.cc file and the command /run/beamOn 1 at >> run.mac file, the absorbed dose in all tallies would be equal to zero!? >> Then, if you run again the code with n_particle=1 and >> the command /run/beamOn 10000, the absorbed dose in all tallies will >> take correctly values. Why???
I runned your program dose in both conditions and got the same behaviour: the tally are filled correctly. (for the computation of the ratio, be care of EbeamCumul) >> >> 2- How can I restrict the momentum of primary particles within >> a solid angle about x-axis or a cone? >> In other words, how can I restrict the emission of primary particles >> into a diverging channel in similar to a collimator?
See example in TestEm4. In fact I see that you already did in your PrimaryGeneratorAction. >> >> 3- I don't know how I define photons or electrons that >> their energy spectrum follows specific distribution >> (for example Gaussian distribution).
It is similar to the position and direction. You will find examples in advanced examples (I do not remember exactly which one). >> >> 4- How can I provide or define a mathematical phantom of human?
I have no competence in this field.
>> >> 5- How can I take the ratio of absorbed dose in each tally divided by >> the absorbed dose in a specific tally?
If I understand well your question, it is enough in EndOfRun to normalise tallyEdep, i.e. tallyEdep[j]/tallyEdep
>> >> Sincerely yours, >> Shahrokh. >>
|Inline Depth:||Outline Depth:||Add message:|