<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<font face="Helvetica, Arial, sans-serif">Hi All,<br>
<br>
I use the DSelector to analyze some trees.<br>
The trees are put into a TChain object for every tree like this:<br>
chain.Add(f.c_str());<br>
in my script where f is the tree file.<br>
<br>
In my DSelector Init() method I open a file stream like this:<br>
OUTF.open("eta_event_list.dat", ios::out);<br>
<br>
And in DSelector Process() method at the end of the method I write
a string to the file <br>
OUTF<<ofline<<endl;<br>
<br>
and In DSelector Finalize() method I close the file.<br>
<br>
the issue I see is that only my first Tree ends up in the output
file OUTF all other trees/files<br>
do not. In other words writing to the output stream OUTF stops
after the end of the first tree.<br>
<br>
Any idea what I do wrong?<br>
PS: The code is on the work disk at
/w/halld-scifs17exp/halld2/home/zihlmann/HallD/work/tmp<br>
The script that creates the chain and launches the DSelector is
doanal.C <br>
the DSelector files *.h and *.C are there too.<br>
<br>
cheers,<br>
Beni<br>
</font>
</body>
</html>