|Message: Re: How to track energy of every single optical photons generated in each events.||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)|
> However here comes the problem. If I am tracking the energy of every > single photons generated, I should have 1000 energy entries for 1000 > photons generated in 10 events right?
It is unclear as to what you should be counting. First off, you are not telling us where you are talling your photons, and secondly, you are not telling us how many photons you start with in each event. If you had 10 events, each launching a 100 photons, and you counted these photons in StackingAction (or SteppingAction with the caveat that you count only during the first step) you should be counting 1000 photons in total - regardless of their energy.
> The result i got is only 100 > energy entries for 100 events
This would indicate that you start only one photon per event.
> even though the optical photon generated > number is 5640.
How do you know about the 5640?
> So am I tracking the energy of each photon or energy of > each event? How can i keep track of energy of every single photon?
In the code snippet you showed has nothing unusual or obviously wrong. You should be able to count all of the photons and get the energy of each one. Most likely, you misunderstand your initial event, or you count at a place in the code not all simulated photons will 'reach'.
Anyway, you'll have to debug your program.