Re: std::vector<TLorentzVector> in cint/ROOT macro

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Fri, 30 Oct 2009 15:07:02 +0100


Hi Stephan,

you need a dictionary for vector<TLorentzVector>. See e.g. http://root.cern.ch/phpBB2/viewtopic.php?t=8878

Cheers, Axel.

Stephan Zimmer wrote on 10/30/2009 02:17 PM:
> Hey ROOTers,
> the help to my previous question did not really help therefore I am
> treating my problem from a different perspective. I want to create
> std::vectors<Objects> within a root macro (no compiled c-file) not only
> numbers. As long as I use double, float or other genuine C-classes,
> everything works fine, but as soon as I start declaring things like
> vector<TH1D> or in my case vector<TLorentzVector> ROOT doesn't recognize
> it and complains about undefined Symbols in current scope. However,
> using the same approach in c-files which I load in compiled form
> (gROOT->ProcessLine(".L myCfile.C++"), this error does not occur. Has
> anyone an idea to work around this problem?
> Thank you very much,
> Cheers,
> Stephan
>
>
Received on Fri Oct 30 2009 - 15:06:29 CET

This archive was generated by hypermail 2.2.0 : Mon Nov 02 2009 - 11:50:03 CET