Rene Brun | 1 Apr 09:55 2006
Picon
Picon

Re: [ROOT] Cycles

Hi,

The two Trees have the same name. Simply change the name of your Trees
when reading as illustrated in the session below:

Rene Brun

root [0] TFile f("tree1.root")
root [1] .ls
TFile**         tree1.root
  TFile*         tree1.root
   KEY: TTree    t1;3    a simple Tree with simple variables
   KEY: TTree    t1;2    a simple Tree with simple variables
root [2] t2 = (TTree*)f->Get("t1;2")
(class TTree*)0x6305230
root [3] t2->SetName("t2")
root [4] t3 = (TTree*)f->Get("t1;3")
(class TTree*)0x6301900
root [5] t3->SetName("t3")
root [6] t2->GetEntries()
(const Long64_t)8318286
root [7] t3->GetEntries()
(const Long64_t)10000000
root [8]

On 
Fri, 31 Mar 2006, Vassili Maroussov wrote:

> Dear ROOTers,
>
(Continue reading)

Fine, Valeri | 1 Apr 16:41 2006

RE: [ROOT] Problem drawing a geometry

Hello Jochen,
 
Can you explain which version of ROOT you applied to create your file and which version was used to read it back.
 
I tried it with ROOT 5.10.00 and got
 
root [0] TFile fff("C:\\Downloads\\Alice\\alice.geom")
Error in <TFile::Init>: cannot read directory info of file C:\Downloads\Alice\al
ice.geom
root [1] fff.GetVersion()
(const Int_t)30006
 
That indicates that your file was created by ROOT 3.00.06. Very likely ROOT 5.10 can not read back the files created by ROOT 3.00.06.
This _is_ the problem I see. Since I could not read your file I can not reproduce the problem you complained about yet.
 
                    Best regards, Valeri
From: Jochen Thaeder
Sent: Fri 3/31/2006 6:48 AM
To: roottalk
Cc: Fine, Valeri
Subject: RE: [ROOT] Problem drawing a geometry

Hi Valeri, I hope this one works better. Thanks for trying... Jochen Quoting "Fine, Valeri" <fine <at> bnl.gov>: > Hello Jochen, > > It seems to me your attachment "alice.geom" file is corrupted. > Error in <TFile::Init>: cannot read directory info of file alice.geom > > Can you upload the correct one to check? > > Thank you > > Best Regards > Valeri Fine > --------------- > Brookhaven National Laboratory > Upton, NY 11973, USA > Phone: +1 631 344 7806 > Fax: +1 631 344 4206 > E-mail: fine <at> bnl.gov > >> -----Original Message----- >> From: owner-roottalk <at> pcroot.cern.ch [mailto:owner-roottalk <at> pcroot.cern.ch] >> On Behalf Of Jochen Thaeder >> Sent: Thursday, March 30, 2006 9:46 AM >> To: roottalk >> Subject: [ROOT] Problem drawing a geometry >> >> Hi, >> >> I have some problems in drawing a geometry. I have geometry file (not >> written by >> me) with several Nodes inside. The point is that i want to draw only some >> of >> these nodes. >> >> The drawing works, but I get an error output... >> >> Error in <TCanvas::TPad::CreateViewer3D>: Cannot create 3D viewer of type: >> same >> >> I 'produce' it like this: (in a short version) >> >> ... >> TFile *file = TFile::Open("alice.geom"); >> TGeometry *fGeom = (TGeometry*)file->Get("AliceGeom"); >> >> fGeom->GetNode(LS00)->Draw("same"); >> fGeom->GetNode(LS01)->Draw("same"); >> fGeom->GetNode(LS03)->Draw("same"); >> ... >> >> >> Can someone please tell me what I'm doing wrong?? >> >> Cheers >> Jochen >> >> -- >> Jochen Thäder thaeder <at> kip.uni-heidelberg.de >> >> Computer Science/Computer Engineering >> Kirchhoff Institute of Physics - Ruprecht-Karls-University Heidelberg >> >> ICQ UIN: 84840251 >> >> > >
Luka Hoette | 1 Apr 12:36 2006
Picon

Lerrne heissee Singles aus Deiner Umgebung kkennen (dabei russischen )


Hier bist Du genau richtig! Dies ist die Seite auf der Du findest was Du suchst: GEILEN UND UNKOMPLIZIERTEN SEX, ohne irgendwelche Verplichtungen einzugehen!

In unserer Datenbank findest Du mehr als 250,000 Profile fickgeiler Schlampen, die es mal wieder so richtig besorgt bekommen wollen (aus Deutschland, Osterreich und Die Schweiz).

Nie was es einfacher, das nachste Date und den nachsten Betthasen klar zu machen! Sie Dich einfach in der riesigen Datenbank um und such Dir das Madel aus, das Dir gefallt und tritt mit ihr in Kontakt!

Jetzt Mitglied werden: http://voe.newsgalaxy.cc/de/index.html




Wenn Du diesen Newsletter nicht mehr erhalten möchtest, klicke einfach auf diesen Link: http://voe.newsgalaxy.cc/revoke.php

(Bundes- wären vor wenn sagte Bremen Eine sicher vorbei ist was Rußland ihres Dann heißt Kultur einer einmal Tochter Hilfe Ländern Verhandlungen Westen Seiten hieß darunter Sie politische Samstag Sein Hamburg einen eben Situation ihres Juli die Musik Allerdings GmbH Jahre uns Stadt handelt Konzept Februar wissen Verein Gesellschaft zwei wissen Rede Selbst Während )
Olivier Couet | 3 Apr 10:08 2006
Picon
Picon

Re: [ROOT] SVG preamble


Hi Jerome,

 I have nothing adding this in TSVG, but seems to me it is useless. I 
generated a svg file using the latest ROOT version. It starts with:

<svg viewBox="0 0 567 384" xmlns="http://www.w3.org/2000/svg">

and I have no problem to visualize it using FireFox on Linux. Very likely 
we are using FireFox in different contexts. Can you tell me what is your ?
As soon have I'll have understand why this is needed, I'll add it. 

Thanks in advance for you help.

 Cheers,  Olivier

On Fri, 31 Mar 2006, Jerome LAURET wrote:

> 
>        For Mozilla/Firefox to display properly SVG files,
> it appears the following preamble is needed:
> 
> <?xml version="1.0"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
>          "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
> <svg ....
> 
> </svg>
>        Could this be added to TSVG, svg generation?? This
> does not afffect Adobe SVG plugin.
> 
>        Thank you,
> 
> 

--

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet <at> cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300

Hajo Molegraaf | 3 Apr 14:57 2006
Picon

[ROOT] Problem with TGraph

Hi,
The following macro gets my root to hang:

TVectorD v1,v2;
v1.ResizeTo(2);
v2.ResizeTo(2);
for( int i = 0; i < v1.GetNrows(); ++i )
{
    v1[i] = i;
    v2[i] = 2.0001e8;
}
TGraph* gr = new TGraph(v1,v2);
gr->Draw("A*");

If I change the '2.0001e8' into '2e8' or smaller, it works. Any larger value 
gives this problem.

root version:
Version   5.11/01      3 March 2006
Compiled on 3 April 2006 for linux with thread support.
CINT/ROOT C/C++ Interpreter version 5.16.10, March 30, 2006

What am I doing wrong?

Hajo Molegraaf.

_________________________________________________________________
Nieuw op MSN Messenger 7.5: Dynamische achtergronden 
http://www1.imagine-msn.com/Messenger/Audio.aspx

Olivier Couet | 3 Apr 15:26 2006
Picon
Picon

Re: [ROOT] Problem with TGraph


Hi,

I do not see such problem on my linux machine:

=================================================================
pcepsft15.cern.ch> root -n
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   5.11/01      3 March 2006   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

FreeType Engine v2.1.9 used to render TrueType fonts.
Compiled on 3 April 2006 for linux with thread support.

CINT/ROOT C/C++ Interpreter version 5.16.10, March 30, 2006
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] .! cat tv.C
{
  TVectorD v1,v2;
  v1.ResizeTo(2);
  v2.ResizeTo(2);
  for( int i = 0; i < v1.GetNrows(); ++i ) {
    v1[i] = i;
    v2[i] = 2.0001e8;
  }
  TGraph* gr = new TGraph(v1,v2);
  gr->Draw("A*");
}
root [1] .x tv.C
<TCanvas::MakeDefCanvas>: created default TCanvas with name c1
root [2]
=================================================================

 It doesn't hang and I get the plot.

 Cheers,      O.Couet

On Mon, 3 Apr 2006, Hajo Molegraaf wrote:

> Hi,
> The following macro gets my root to hang:
> 
> TVectorD v1,v2;
> v1.ResizeTo(2);
> v2.ResizeTo(2);
> for( int i = 0; i < v1.GetNrows(); ++i )
> {
>    v1[i] = i;
>    v2[i] = 2.0001e8;
> }
> TGraph* gr = new TGraph(v1,v2);
> gr->Draw("A*");
> 
> If I change the '2.0001e8' into '2e8' or smaller, it works. Any larger value
> gives this problem.
> 
> root version:
> Version   5.11/01      3 March 2006
> Compiled on 3 April 2006 for linux with thread support.
> CINT/ROOT C/C++ Interpreter version 5.16.10, March 30, 2006
> 
> What am I doing wrong?
> 
> Hajo Molegraaf.
> 
> _________________________________________________________________
> Nieuw op MSN Messenger 7.5: Dynamische achtergronden
> http://www1.imagine-msn.com/Messenger/Audio.aspx
> 
> 

--

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet <at> cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7670300

Fechner Maximilien | 3 Apr 16:45 2006
Picon

[ROOT] problem with ROOT 5.08 on SolarisCC5

Dear ROOT-ers,

I've come across the following strange behaviour.

I stored 500 'events' in a tree.
This is the relevant part :

   for (int i = 0 ; i< 500 ; i++) {
     count = ((float)i)*1.02;
     tree->Fill();
   }

Then I select events with count>200. :

const float qcut = 200.0;
  for( int i = 0; i < nevts; i++) {
    t1->GetEntry(i);
    nall++;
    if (count > qcut){
     nselected++;
    }
  }

On an intel machine (normal behaviour) the output is :
  Total number of events = 500
Selected events: 303
(ROOT v4.04/f

Using ROOT Version 5.08/00, 13 December 2005,
on a SUN machine running SunOS 5.8,
SUN CC compiler version 5.3
Compiled on 19 December 2005 for solarisCC5, the result is :
  Total number of events = 501
Selected events: 477
--> meaning events for which count is obviously <200. still get selected 
(+ ROOT apparently sees an extra event...).

Strangely enough I also noticed that variable "bool a = (count>qcut);" 
is correctly filled (ie 1 when count>200.).
Replacing the if statement with "if (a) {..." solves the problem.
e.g.

const float qcut = 200.0;
  for( int i = 0; i < nevts; i++) {
    t1->GetEntry(i);
    bool a = (count>qcut);
    if (a){
      cout << "*" << count << endl;
    }
  }

However in a more complicated version of this macro (attached to this 
message), in which I fill histograms in the loop, this still gives me 
the wrong answer unless I add a statement between the declaration of 'a' 
and the 'if' statement (apparently any statement will do).

I've attached a simple program to build the tree and the macro to read 
it (2 versions). I'd greatly appreciate your help.

Thanking you in advance,
Maximilien Fechner

Attachment (x.tar.gz): application/x-gzip, 1245 bytes
Hajo Molegraaf | 3 Apr 18:42 2006
Picon

Re: [ROOT] Problem with TGraph

Wow, I tried it again but nope: it hangs. My processor is (according to top) 
99% busy with root.exe and I see no plot. It does say
<TCanvas::MakeDefCanvas>: created default TCanvas with name c1
but only an empty canvas is shown. If I press CTRL-C twice the canvas shows 
only the x-axis (from 0 to 1.2) and I get the messages:

*** Break *** keyboard interrupt :0:

*** Break *** keyboard interrupt
Root >

Hajo.

>From: Olivier Couet <Olivier.Couet <at> cern.ch>
>To: Hajo Molegraaf <hjausenet <at> hotmail.com>
>CC: roottalk <at> pcroot.cern.ch
>Subject: Re: [ROOT] Problem with TGraph
>Date: Mon, 3 Apr 2006 15:26:49 +0200 (CEST)
>
>
>Hi,
>
>I do not see such problem on my linux machine:
>
>=================================================================
>pcepsft15.cern.ch> root -n
>   *******************************************
>   *                                         *
>   *        W E L C O M E  to  R O O T       *
>   *                                         *
>   *   Version   5.11/01      3 March 2006   *
>   *                                         *
>   *  You are welcome to visit our Web site  *
>   *          http://root.cern.ch            *
>   *                                         *
>   *******************************************
>
>FreeType Engine v2.1.9 used to render TrueType fonts.
>Compiled on 3 April 2006 for linux with thread support.
>
>CINT/ROOT C/C++ Interpreter version 5.16.10, March 30, 2006
>Type ? for help. Commands must be C++ statements.
>Enclose multiple statements between { }.
>root [0] .! cat tv.C
>{
>   TVectorD v1,v2;
>   v1.ResizeTo(2);
>   v2.ResizeTo(2);
>   for( int i = 0; i < v1.GetNrows(); ++i ) {
>     v1[i] = i;
>     v2[i] = 2.0001e8;
>   }
>   TGraph* gr = new TGraph(v1,v2);
>   gr->Draw("A*");
>}
>root [1] .x tv.C
><TCanvas::MakeDefCanvas>: created default TCanvas with name c1
>root [2]
>=================================================================
>
>  It doesn't hang and I get the plot.
>
>  Cheers,      O.Couet
>
>On Mon, 3 Apr 2006, Hajo Molegraaf wrote:
>
> > Hi,
> > The following macro gets my root to hang:
> >
> > TVectorD v1,v2;
> > v1.ResizeTo(2);
> > v2.ResizeTo(2);
> > for( int i = 0; i < v1.GetNrows(); ++i )
> > {
> >    v1[i] = i;
> >    v2[i] = 2.0001e8;
> > }
> > TGraph* gr = new TGraph(v1,v2);
> > gr->Draw("A*");
> >
> > If I change the '2.0001e8' into '2e8' or smaller, it works. Any larger 
>value
> > gives this problem.
> >
> > root version:
> > Version   5.11/01      3 March 2006
> > Compiled on 3 April 2006 for linux with thread support.
> > CINT/ROOT C/C++ Interpreter version 5.16.10, March 30, 2006
> >
> > What am I doing wrong?
> >
> > Hajo Molegraaf.
> >
> > _________________________________________________________________
> > Nieuw op MSN Messenger 7.5: Dynamische achtergronden
> > http://www1.imagine-msn.com/Messenger/Audio.aspx
> >
> >
>
>--
>Org:    CERN - European Laboratory for Particle Physics.
>Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910
>E-Mail: Olivier.Couet <at> cern.ch                            Phone:   +41 22 
>7676522
>WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 
>7670300
>

_________________________________________________________________
Een audiogesprek? Pak Messenger, niet de telefoon 
http://www1.imagine-msn.com/Messenger/Video.aspx

Hajo Molegraaf | 3 Apr 18:56 2006
Picon

[ROOT] TTree::CopyTree problem

Hi,
Sorry to bug you again, but I get errors with the following macro:

{
    TFile* f = new TFile("test.root","RECREATE");
    TTree* tree = new TTree("tree","some tree");
    double line;
    tree->Branch("line",&line,"line/D");
    for( int i = 0; i < 10000; ++i )
    {
        line = i;
        tree->Fill();
    }
    tree->Write();  // *
    f->Close();  // *
    f = new TFile("test.root"); // *
    tree = (TTree*)(f->FindObjectAny("tree"));  // *
    TTree* tr = tree->CopyTree("");
}

Several times I get the message:
Error in <TTree::Fill>: Failed filling branch:tree.line, nbytes=-1

If I fill the tree with fewer points (say 1000), there is no problem. With 
more points the error shows more often.
If I delete the lines marked with // *, then there is no problem for any 
tree size.

I'm using root Version   5.11/01      3 March 2006
CINT/ROOT C/C++ Interpreter version 5.16.10, March 30, 2006

Thanks,
Hajo Molegraaf.

_________________________________________________________________
Speel online games via MSN Messenger 
http://www1.imagine-msn.com/Messenger/Default2.aspx

Philippe Canal | 3 Apr 19:31 2006

RE: [ROOT] TTree::CopyTree problem

Hi,

Where do you find the copied Tree to be written?
If you want is loaded in memory do: 
    f = new TFile("test.root"); // This opens a read-only file
    tree = (TTree*)(f->FindObjectAny("tree"));  // *
    gROOT->cd();
    TTree* tr = tree->CopyTree("");
Otherwise do:
    f = new TFile("test.root"); // *
    tree = (TTree*)(f->FindObjectAny("tree"));  // *
    TFile *output = new TFile("copy.root","RECREATE");
    TTree* tr = tree->CopyTree("");   

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk <at> pcroot.cern.ch [mailto:owner-roottalk <at> pcroot.cern.ch]
On Behalf Of Hajo Molegraaf
Sent: Monday, April 03, 2006 11:56 AM
To: roottalk <at> pcroot.cern.ch
Subject: [ROOT] TTree::CopyTree problem

Hi,
Sorry to bug you again, but I get errors with the following macro:

{
    TFile* f = new TFile("test.root","RECREATE");
    TTree* tree = new TTree("tree","some tree");
    double line;
    tree->Branch("line",&line,"line/D");
    for( int i = 0; i < 10000; ++i )
    {
        line = i;
        tree->Fill();
    }
    tree->Write();  // *
    f->Close();  // *
    f = new TFile("test.root"); // *
    tree = (TTree*)(f->FindObjectAny("tree"));  // *
    TTree* tr = tree->CopyTree("");
}

Several times I get the message:
Error in <TTree::Fill>: Failed filling branch:tree.line, nbytes=-1

If I fill the tree with fewer points (say 1000), there is no problem. With 
more points the error shows more often.
If I delete the lines marked with // *, then there is no problem for any 
tree size.

I'm using root Version   5.11/01      3 March 2006
CINT/ROOT C/C++ Interpreter version 5.16.10, March 30, 2006

Thanks,
Hajo Molegraaf.

_________________________________________________________________
Speel online games via MSN Messenger 
http://www1.imagine-msn.com/Messenger/Default2.aspx


Gmane