Message: Re: why the simulated efficiency is 5tilmes higher Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: why the simulated efficiency is 5tilmes higher 

Forum: Particles
Re: Question why the simulated efficiency is 5tilmes higher (Dziri)
Date: 26 Oct, 2011
From: Gumplinger Peter <Gumplinger Peter>

Your logic how you decide when to 'AddEdep' is very peculiar. All you should concern yourself with is whether or not any energy was deposited in your volume of interest during a simulation step (by any particle):

if (aStep->GetTotalEnergyDeposit() > 0.)

I suggest you look at examples/extended/electromagnetic/TestEm3 example how to collect and eventually histogram energy with Stepping, Event and RunActions. Your efficiency should simply be the number of events with energy seen in your volume divided by the number of 'beamOn' you've specified.

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

1 None: Re: why the simulated efficiency is 5tilmes higher   (Dziri - 27 Oct, 2011)
 Add Message Add Message
to: "Re: why the simulated efficiency is 5tilmes higher"

 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 ]