[Gate-users] Merging root files without gjm
Park MinJae
MJ at ToTi.us
Thu Apr 3 06:39:48 CEST 2008
Dear Karthik,
I posted following March 13...
In these days, I've been working on ROOT file merging with sourceID
selection using root script, not FileMerger...
My code reads every events in gate, singles, hits chain... and fills into
new trees respectively...then write into new root file...
Hits, singles and gate tree in the merged file by my script are the same as
them in merged file by filemerger...
however, the root files processed by digigate are quite different...
the result root file by digigate using merged file by filemerger is exact
same as the merged file by filemerger...
the result root file by digigate using merged file by my script is quite
different from the merged file by my script...from increased event count to
different energy shape...
you can take a look at http://ftp.toti.us/gate/root_merging/
=============
I guess there is important information to merge exactly except gate, hits
and singles tree...
GoodLuck,
MJ
//=================================================
// Park MinJae
// SNU BME Ph.D. Candidate
//
// DialTo:+82-17-711-7809
// MailTo:MJ at ToTi.us
//
// Make the Dream True...
//=================================================
-----Original Message-----
From: gate-users-bounces at lists.healthgrid.org
[mailto:gate-users-bounces at lists.healthgrid.org] On Behalf Of KB
Sent: Thursday, April 03, 2008 2:00 AM
To: gate-users at lists.healthgrid.org
Subject: [Gate-users] Merging root files without gjm
Hello All,
For various reasons, gjm does not work on some root files (last event id
problems), but my problem is more than just fixing gjm. I have a more
general question.
I would like to extract some values from several root files and make a new
files. There seems to be so many trees of information in the root file
(singles, hits, positron energy, coincidences, ...) but I would like to open
the coincidences tree, extract just the energy, detection position and the
time info and write it to a root file. My other analysis programmes hinge on
reading a root file, so I would like make a root file instead of a binary
file.
Has anyone done this? Any pointers about making a customised root file?
It seems that it may be faster to look at someone template and write my own
code than pouring through the bulky root manual.
Thanks,
Karthik.
_______________________________________________
Gate-users mailing list
Gate-users at lists.healthgrid.org
http://lists.healthgrid.org/mailman/listinfo/gate-users
More information about the Gate-users
mailing list