Re: [ROOT] compiling a MakeSelector generated file

From: Rene Brun (Rene.Brun@cern.ch)
Date: Fri Oct 26 2001 - 23:32:03 MEST


Hi Luiz,

All your problems come your illegal C++ statement in
Wpolarization::ProcessCut

if (Pne[i][3] >= 40 && Ipne[i]!=8 ) return kFALSE;

Ipne is a 2-d array 
   Int_t           Ipne[400][2];

This statement should be changed to something like:
if (Pne[i][3] >= 40 && Ipne[i][0] != 8) return kFALSE;
or
if (Pne[i][3] >= 40 && Ipne[i][1] != 8) return kFALSE;


Rene Brun


On Fri, 26 Oct 2001, Luiz Martins Mundim Filho wrote:

> Hello
> 
> I'm trying to run an analisys program created by h1->MakeSelector(file)
> command, but I'm having the error messages below. I now about the error
> at the line 167 (by the way, how can I compare this quantities?). I
> tried to include all the header files I found reasonable, but I guess
> I'm doing the wrong way.
> 
> I'm sending the Wpolarization.{C,h} in attachement.
> 
> Thanks a lot.
> 
> 
> Luiz
> 
> 
> 
> root [21] h1->Process("Wpolarization.C++")
> Creating shared library /data/delphi/data/ww/dat/./Wpolarization_C.so
> Class Wpolarization: Streamer() not declared
> Class Wpolarization: ShowMembers() not declared
> In file included from /data/delphi/data/ww/dat/fileec9sYV.h:29,
>                  from /data/delphi/data/ww/dat/./fileec9sYV.C:5:
> /data/delphi/data/ww/dat/./Wpolarization.C: In method `Bool_t
> Wpolarization::ProcessCut (int)':
> /data/delphi/data/ww/dat/./Wpolarization.C:167: ISO C++ forbids
> comparison between pointer and integer
> g++: /data/delphi/data/ww/dat/./fileec9sYV.o: No such file or directory
> Error in <TROOT::GetSelector>: file:Wpolarization.C++ does not have a
> valid class deriving from TSelector
> (Int_t)(-1)
> 



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:04 MET