Message: Energy deposit in each copyNo Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Energy deposit in each copyNo 

Forum: Analysis
Date: 31 Mar, 2016
From: <Nicolas78>

Dear G4experts,

I'm simulating e- interactions in 10.000 cells and each of them has a copyNo.
In my output.root, I have the copyNo and the energy deposit by each step.
Now i'd like to use a root file to get the energy deposit in each copyNo (so from 1 to 10.000).
I know how to do it for 1 copyNo with something like:
for(int i=0;i<n;i++){
     ntuple->GetEntry(i);
          if(copyNo==1){
            sum+=edep;
            }

Any advices on how to get it for all the copyNo in a simple way ?

Thanks, Nicolas

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

1 None: Re: Energy deposit in each copyNo   (Ivana Hrivnacova - 27 Jun, 2016)
 Add Message Add Message
to: "Energy deposit in each copyNo"

 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 ]