Message: Re: How to track energy of every single optical photons generated in each events. Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: How to track energy of every single optical photons generated in each events.  

Forum: Processes Involving Optical Photons
Re: None How to track energy of every single optical photons generated in each events. (Dat Vu)
Date: 19 Feb, 2013
From: Gumplinger Peter <Gumplinger Peter>

> 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.

 Add Message Add Message
to: "Re: How to track energy of every single optical photons generated in each events. "

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews