Hello,
I uploaded a testfile on
https://james.physik.uni-freiburg.de/~stoerig/testdata.root
Although with separated header, it still does not work. See errors below:
Many thanks for the help,
Kind regards,
Kathrin
Warning in <TTreePlayer::DrawScript>: TTreeProxy does not work in
interpreted mode yet. The script will be compiled.
Info in <TTreePlayer::DrawScript>: Will process tree/chain using
generatedSel.h+
Info in <TUnixSystem::ACLiC>: creating shared library
/localscratch/user/stoerig/proof/proxy/./generatedSel_h.so
Note: Link requested for already precompiled class
vector<float,allocator<float> > (ignore this message) :0:
/localscratch/user/stoerig/proof/proxy/./analyze.C: In member function
âdouble generatedSel::analyze()â:
/localscratch/user/stoerig/proof/proxy/./analyze.C:7: error: invalid cast
from type âROOT::TStlSimpleProxy<std::vector<int, std::allocator<int> > >â
to type âdoubleâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_26(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:918:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:918:
error: âG__CINT_ENDLâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:918:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_27(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:928:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:928:
error: âG__CINT_ENDSâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:928:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_28(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:938:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:938:
error: âG__CINT_FLUSHâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:938:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_29(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:948:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:948:
error: âG__CINT_SCIENTIFICâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:948:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_30(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:958:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:958:
error: âG__CINT_FIXEDâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:958:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_31(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:968:
error: âclass generatedSelâ has no member named âoperator>>â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:968:
error: âG__CINT_wsâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:968:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_32(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:978:
error: âclass generatedSelâ has no member named âoperator>>â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:978:
error: âG__CINT_WSâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:978:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_33(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:988:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:988:
error: âG__CINT_HEXâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:988:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_34(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:998:
error: âclass generatedSelâ has no member named âoperator>>â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:998:
error: âG__CINT_HEXâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:998:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_35(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1008:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1008:
error: âG__CINT_DECâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1008:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_36(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1018:
error: âclass generatedSelâ has no member named âoperator>>â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1018:
error: âG__CINT_DECâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1018:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_37(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1028:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1028:
error: âG__CINT_OCTâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1028:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_38(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1038:
error: âclass generatedSelâ has no member named âoperator>>â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1038:
error: âG__CINT_OCTâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1038:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_39(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1048:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1048:
error: âG__CINT_NOSUPPORTâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1048:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_40(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1058:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1058:
error: âG__CINT_NOSUPPORTâ was not declared in this scope
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1058:
error: expected primary-expression before â)â token
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_41(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1068:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_42(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1078:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_43(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1088:
error: âclass generatedSelâ has no member named âoperator<<â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_44(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1098:
error: âclass generatedSelâ has no member named âoperator>>â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_45(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1108:
error: âclass generatedSelâ has no member named âoperator>>â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_46(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1118:
error: âclass generatedSelâ has no member named âoperator>>â
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_47(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1127:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1127:
warning: dereferencing type-punned pointer will break strict-aliasing rules
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_48(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1133:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_49(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1139:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_50(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1145:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_51(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1151:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_52(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1157:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_53(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1163:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_54(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1169:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_55(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1175:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_56(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1181:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_57(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1187:
error: âclass generatedSelâ has no member named âG__atevalâ
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx: In
function âint G__generatedSel_h_ACLiC_dict_2755_0_58(G__value*, const char*,
G__param*, int)â:
/localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.cxx:1193:
error: âclass generatedSelâ has no member named âG__atevalâ
g++: /localscratch/user/stoerig/proof/proxy/./generatedSel_h_ACLiC_dict.o:
No such file or directory
Error in <ACLiC>: Compilation failed!
Error in <TSelector::GetSelector>: file generatedSel.h+ does not have a
valid class deriving from TSelector
-----Ursprüngliche Nachricht-----
Von: Philippe Canal [mailto:pcanal_at_fnal.gov]
Gesendet: Dienstag, 2. Februar 2010 20:37
An: Kathrin Stoerig
Cc: roottalk_at_cern.ch
Betreff: Re: [ROOT] Problem with MakeProxy and TMatrix?
Hi Kathrin,
You need to separate the header in a file named analyze.h. I.e:
analyze.h
>>>>>>>>>>>>>>>>>>> #include <vector> #include <TLorentzVector.h>
>>>>>>>>>>>>>>>>>>>
analyze.C
>>>>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>>>>>
You may also need to add #include <TMatrix.h>
Could you send me your root file so that I can verify and/or fix any problem?
Thanks,
Philippe.
On 2/2/10 1:14 PM, Kathrin Stoerig wrote:
> Hi all,
>
> I try to use "MakeProxy" on a ROOTfile (mostly containing flat data
> and some vector<TLorentzVectors>) as a first step with an simple
> analysis script which should just print the eventNumber.
>
> analyze.C
> >>>>>>>>>>>>>>>>>>>
> #include <vector>
> #include <TLorentzVector.h>
> #include <iostream>
> #include <fstream>
>
> double analyze(){
> cout<<"Event properties: "<<eventNumber<<endl;
> return (double)eventNumber;
> }
> >>>>>>>>>>>>>>>>>>>
>
> My ROOT-version is 5-26a.
> When I try to execute (as suggested in the documentation):
>
> TChain *c = new TChain("susy");
> c->Add("...")
> c.Draw("analyze.C+")
>
> I get the following error messages. Any help is very welcome.
>
> Kind regards,
> Kathrin
>
>
>
This archive was generated by hypermail 2.2.0 : Tue Feb 02 2010 - 23:50:02 CET