AW: AW: Problem with MakeProxy and TMatrix?

From: Kathrin Stoerig <Kathrin.Stoerig_at_cern.ch>
Date: Wed, 3 Feb 2010 10:01:22 +0100


Hi Phillipe,

many thanks, now it finally works :-)

Cheers,

   Kathrin

-----Ursprüngliche Nachricht-----
Von: Philippe Canal [mailto:pcanal_at_cern.ch] Gesendet: Dienstag, 2. Februar 2010 23:28 An: Philippe Canal
Cc: Kathrin Stoerig; roottalk_at_cern.ch
Betreff: Re: AW: [ROOT] Problem with MakeProxy and TMatrix?

Hi Kathrin,

To use the branch that contains object the type 'vector<TLorentzVector>' you currently need to make
sure to generate the dictionary for it. So try with:

#ifdef __MAKECINT__
#pragma link C++ class vector<TLorentzVector>+;
#endif

Cheers,
Philippe.

On 2/2/10 3:06 PM, Philippe Canal wrote:
> Hi Kathrin,
>
> Using the TTree KAnaPhotonJetsTree (the same happens for a few others):
>
> I got only the following compilation error:
>
> root [1] KAnaPhotonJetsTree->Draw("analyze.C+")
> Info in <TTreePlayer::DrawScript>: Will process tree/chain using
> generatedSel.h+
> Info in <TUnixSystem::ACLiC>: creating shared library
> /var/tmp/./generatedSel_h.so
> Note: Link requested for already precompiled class
> vector<float,allocator<float> > (ignore this message) :0:
> In file included from /var/tmp/./generatedSel.h:222,
> from /var/tmp/./generatedSel_h_ACLiC_dict.h:33,
> from /var/tmp/./generatedSel_h_ACLiC_dict.cxx:16:
> /var/tmp/./analyze.C: In member function ‘double
> generatedSel::analyze()’:
> /var/tmp/./analyze.C:3: error: cannot convert
> ‘ROOT::TStlSimpleProxy<std::vector<int, std::allocator<int> > >’ to
> ‘double’ in return
>
> and thus I changed analyze.C (since eventNumber actually contains a
> vector of int per event rather than a single value) into:
>
> root [] KAnaPhotonJetsTree->Draw("analyze.C+")
> Info in <TTreePlayer::DrawScript>: Will process tree/chain using
> generatedSel.h+
> Info in <TUnixSystem::ACLiC>: creating shared library
> /var/tmp/./generatedSel_h.so
> Note: Link requested for already precompiled class
> vector<float,allocator<float> > (ignore this message) :0:
> <TCanvas::MakeDefCanvas>: created default TCanvas with name c1
> Event properties: 1 134826
> Event properties: 1 134827
> Event properties: 1 134828
> Event properties: 1 134829
> Event properties: 1 134830
> Event properties: 1 134831
>
> Cheers,
> Philippe.
>
> On 2/2/10 2:49 PM, Philippe Canal wrote:
>> Hi Kathrin,
>>
>> Which TTree are you using within this file? (I can not reproduce
>> your problem yet).
>>
>> Cheers,
>> Philippe.
>>
>> On 2/2/10 2:32 PM, Kathrin Stoerig wrote:
>>> 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
>>>
>>
Received on Wed Feb 03 2010 - 10:01:30 CET

This archive was generated by hypermail 2.2.0 : Wed Feb 03 2010 - 17:50:02 CET