Message: Re: Print energy per particle per detector Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Print energy per particle per detector 

Forum: Event and Track Management
Re: Question Print energy per particle per detector (Alonso Perez Lona)
Date: 16 May, 2018
From: Makoto Asai <Makoto Asai>

Hi,

> However what I want to do is to print the energy deposit per each
> particle that I fire, in the form x y z E1 E2 E3 ... En, where n is the
> number of primary particles that I fire. What is the best way to do
> this?

You may shoot one primary particle per each event. I presume the number of primary particles "n" is not huge. Then, you may use ntuple to fill the energy deposit of each event. If "n" is large, you may want to printout the deposit of an event at your EndOfEventAction.

Hope this helps, Makoto

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

1 None: Re: Print energy per particle per detector   (Alonso Perez Lona - 16 May, 2018)
 Add Message Add Message
to: "Re: Print energy per particle per detector"

 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 ]