Message: Re: Output data as root file Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: Output data as root file 

Forum: Analysis
Re: Question Output data as root file (Zack Snyder)
Re: Question Re: Output data as root file (Zack Snyder)
Re: None Re: Output data as root file (Ivana Hrivnacova)
Date: 11 Jun, 2013
From: Zack Snyder <Zack Snyder>

Thank you for your reply.

First, let me state that I am still learning geant4 and am by no means proficient or experienced.

I have implemented this code and I am currently trying to tailor it to what I need. I was curious if there is a way to simply output all data in the form of ntuples.

For example, if I wanted to plot a histogram of the length traveled by many electrons manually using root, is there a way of gaining access to the data required in the form that geant is currently printing in.

*********************************************************************************************************
* G4Track Information:   Particle = e-,   Track ID = 255,   Parent ID = 131
*********************************************************************************************************

Step#    X(mm)    Y(mm)    Z(mm) KinE(MeV)  dE(MeV) StepLeng TrackLeng  NextVolume ProcName
    0      231     -150     -547       1.9        0        0         0      Shape1 initStep
    1      228     -148     -546       1.4    0.496     3.45      3.45      Shape1 eIoni
    2      227     -147     -544     0.968    0.437     2.84      6.29      Shape1 eIoni
    3      227     -147     -542     0.524    0.444     2.27      8.56      Shape1 eIoni
    4      228     -146     -541     0.204    0.319     1.56      10.1      Shape1 eIoni
    5      228     -146     -541         0    0.204    0.467      10.6      Shape1 eIoni

Best, Zack

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

1 Question: Re: Output data as root file   (Zack Snyder - 14 Jun, 2013)
(_ None: Re: Output data as root file   (Ivana Hrivnacova - 14 Jun, 2013)
1 Question: Re: Output data as root file   (Zack Snyder - 18 Jun, 2013)
2 None: Re: Output data as root file   (Ivana Hrivnacova - 19 Jun, 2013)
 Add Message Add Message
to: "Re: Output data as root file"

 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 ]