RE: [ROOT] problem with branch name: "TimeInDetReco::TRT_RIO_Maker"

From: Philippe Canal (pcanal@fnal.gov)
Date: Wed Mar 31 2004 - 17:34:39 MEST


Hi,

In general you should avoid using C++ delimiters in the name of the
branches,
this will confuse both TTree::MakeClass and TTree::Draw.

Once you generated the the file MyClass.C and MyClass.h, you can fix it
up by hand by changing all the 'TimeInDetReco::' which are not withing
quotes (i.e not in a string) by (for example) TimeInDetReco__

Cheers,
Philippe.


-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Elzbieta Richter-Was
Sent: Wednesday, March 31, 2004 2:39 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] problem with branch name: "TimeInDetReco::TRT_RIO_Maker"



Hello,

  I've got for analysis rootuple where the branch name is

    Float_t         TimeInDetReco::TRT_RIO_Maker_TimeInDetReco;
    Float_t         TimeInDetReco::TRT_RIO_Maker_;
    Float_t         TimeInDetReco::TRT_RIO_Maker_TRT_RIO_Maker;


I am able to create MyClass.C and MyClass.h  using  "MakeClass" command
but it complains during compilation ( command .L MyClass.C+ )
Seems to be confused by "::" in the name of the branch.

Is the any way around this problem or we have to reproduce rootuples?

                                   thanks   Elzbieta



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:07 MET