Re: string cutted in cuts

From: Ilka Antcheva <Ilka.Antcheva_at_cern.ch>
Date: Thu, 28 Jun 2007 15:39:26 +0200


Hi Luca,

If your string good_signal_cut contains more than 1000 characters, the problem seems to be related with the hard coded string capacity in the tree viewer. It is set to 1000 and you may check this in your ROOT session by: root [9] TString::GetInitialCapacity() If my guess is correct, I will fix the code.

Best regards, Ilka

Luca Grandi wrote:
> Dear Rooties,
>
> I have a problem with the cuts I use to insert into my Treeviewer.
> To perform the cuts on some variable of a tree i use to save this cut
> directly in the treeviewer by the means of
>
> treeview_null->ExpressionItem(8)->SetExpression(good_signal_cut,
> "~good_signal_cut", kTRUE);
>
> where good_signal_cut is a string containing all my cuts.
> When this string becomes too long the cut saved in the treeviewer is missing
> the last part. Any suggestion?
> thanks
>
> luca
>
>
Received on Thu Jun 28 2007 - 15:40:17 CEST

This archive was generated by hypermail 2.2.0 : Fri Jun 29 2007 - 05:50:02 CEST