<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div style="word-wrap:break-word">Hi Jerome,
<div><br>
</div>
<div>How about you try the following Root script? It's for extracting lines of response from a coincidences Root file, but it should be easy to adapt it to whatever output you want.</div>
<div><br>
</div>
<div>Cheers,<br>
<div><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium">
<div style="word-wrap:break-word">
<div>Marc</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>__________________________</div>
<div><br>
</div>
<div>Marc Chamberland, MSc</div>
PhD candidate<br>
Department of Physics<br>
Carleton University<br>
Ottawa (ON)</div>
<div style="word-wrap:break-word"><br>
</div>
<div style="word-wrap:break-word"></div>
</span></div>
</div>
</div>
<div style="word-wrap:break-word">
<div>
<div><span class="x_Apple-style-span" style="border-collapse:separate; color:rgb(0,0,0); font-family:Helvetica; font-style:normal; font-variant:normal; font-weight:normal; letter-spacing:normal; line-height:normal; orphans:2; text-indent:0px; text-transform:none; white-space:normal; widows:2; word-spacing:0px; border-spacing:0px; font-size:medium">
<div style="word-wrap:break-word"></div>
</span></div>
<br>
<div>
<div>On 2013-07-25, at 7:05 AM, Jerome Crocco <<a href="mailto:jerome.crocco@gmail.com">jerome.crocco@gmail.com</a>></div>
<div> wrote:</div>
<br class="x_Apple-interchange-newline">
<blockquote type="cite">Hello friendly gate folks,
<div>
<div><br>
</div>
<div>I have some data from a Gate simulation which I am running on vGate. To shift the data over to matlab for some post processing, I'm having to use this nifty program to convert the root output to .txt file, which I can subsequently text scan into matlab.</div>
<div><br>
</div>
<div><a href="http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=16590">http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=16590</a><br>
</div>
<div><br>
</div>
<div>Problem is, the text file is not entirely clear to me how it corresponds to root structure. </div>
<div>1) the data output has 10 almost completely identical lines, except for a column called 'instance' why is this? I checked documentation but could not find instance defined.<span></span></div>
<div>2) I must guess that this data represents 'hits' . But sometimes there are more than one hits folder. Does this combine folders together into one txt file?</div>
<div>3) this only begs the question of what happens to singles data.</div>
<div><br>
</div>
<div>If anyone has any other ideas for exporting root data to matlab, or txt etc, would appreciate.</div>
<div><br>
</div>
<div>Jerome</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
_______________________________________________<br>
Gate-users mailing list<br>
<a href="mailto:Gate-users@lists.opengatecollaboration.org">Gate-users@lists.opengatecollaboration.org</a><br>
http://lists.opengatecollaboration.org/mailman/listinfo/gate-users</blockquote>
</div>
<br>
</div>
</div>
</body>
</html>