Problematic variables : works with PROOF but not with ROOT!

Dear all,
Using the simple code Tree1.C and Tree1.h (see attached files in the topic : " Proof ARchive and undefined symbol: _ZTI4TH1" but I would like to load all the leaves. In the Tree1.C and change :
b_Higgs_N->GetEntry(entry);
b_Higgs_m->GetEntry(entry);

to :
fChain->GetTree()->GetEntry(entry);

There are some problematic variables and it crashed with ROOT with the following message :

root [0] .x Send_ROOT.C
Warning in TClass::TClass: no dictionary for class AttributeListLayout is available
Warning in TClass::TClass: no dictionary for class pair<string,string> is available
Starting the main code (Tree1) with process option:
Starting Init(multi tree) with process option:
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … 00001.root at byte:0, branch:passesFirstCutTable_bits, entry:389, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … 00001.root at byte:0, branch:passesFirstCutTable_bits, entry:390, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … 00001.root at byte:0, branch:passesFirstCutTable_bits, entry:391, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … 00001.root at byte:0, branch:passesFirstCutTable_bits, entry:392, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … 00001.root at byte:0, branch:passesFirstCutTable_bits, entry:393, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … 00001.root at byte:0, branch:passesFirstCutTable_bits, entry:394, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … 00001.root at byte:0, branch:passesFirstCutTable_bits, entry:395, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … 00001.root at byte:0, branch:passesFirstCutTable_bits, entry:396, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … 00001.root at byte:0, branch:passesFirstCutTable_bits, entry:397, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
file probably overwritten: stopping reporting error messages
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … 00001.root at byte:0, branch:passesFirstCutTable_bits, entry:398, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair

Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=31736404, len=12398, fNbytes
=0, fObjlen=0, trying to repair
Error: Symbol G__exception is not defined in current scope Send_ROOT.C:8:
Error: type G__exception not defined FILE:/direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C LINE:8
(int)0
*** Interpreter error recovered ***

But it works without problem with PROOF !

Now if I comment these problematic variables in Tree1.h

//Int_t passesFirstCutTable;
//Int_t passesSecondCutTable;
//vector *passesFirstCutTable_bits;
//vector *passesSecondCutTable_bits;

//TBranch *b_passesFirstCutTable; //!
//TBranch *b_passesSecondCutTable; //!
//TBranch *b_passesFirstCutTable_bits; //!
//TBranch *b_passesSecondCutTable_bits; //!

//passesFirstCutTable_bits = 0;
//passesSecondCutTable_bits = 0;

//fChain->SetBranchAddress(“passesFirstCutTable”, &passesFirstCutTable, &b_passesFirstCutTable);
//fChain->SetBranchAddress(“passesSecondCutTable”,&passesSecondCutTable, &b_passesSecondCutTable);
//fChain->SetBranchAddress(“passesFirstCutTable_bits”, &passesFirstCutTable_bits, &b_passesFirstCutTable_bits);
//fChain->SetBranchAddress(“passesSecondCutTable_bits”, &passesSecondCutTable_bits, &b_passesSecondCutTable_bits);

I still have the crash only with ROOT :
Info in TUnixSystem::ACLiC: creating shared library /direct/usatlas+u/tarrade/MacroForPROOF/./Tree1_C.so
Starting the main code (Tree1) with process option:
Starting Init(multi tree) with process option:
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … _mc12.0053
34.HerwigVBFH120tautaulh.A12.0.6.9.medium_cut_el.AAN.AANT1._00001.root at byte:0, branch:passesFirstCutTable_bits, entry:389, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … _mc12.0053
34.HerwigVBFH120tautaulh.A12.0.6.9.medium_cut_el.AAN.AANT1._00001.root at byte:0, branch:passesFirstCutTable_bits, entry:390, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … _mc12.0053
34.HerwigVBFH120tautaulh.A12.0.6.9.medium_cut_el.AAN.AANT1._00001.root at byte:0, branch:passesFirstCutTable_bits, entry:391, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … _mc12.0053
34.HerwigVBFH120tautaulh.A12.0.6.9.medium_cut_el.AAN.AANT1._00001.root at byte:0, branch:passesFirstCutTable_bits, entry:392, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … _mc12.0053
34.HerwigVBFH120tautaulh.A12.0.6.9.medium_cut_el.AAN.AANT1._00001.root at byte:0, branch:passesFirstCutTable_bits, entry:393, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … _mc12.0053
34.HerwigVBFH120tautaulh.A12.0.6.9.medium_cut_el.AAN.AANT1._00001.root at byte:0, branch:passesFirstCutTable_bits, entry:394, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … _mc12.0053
34.HerwigVBFH120tautaulh.A12.0.6.9.medium_cut_el.AAN.AANT1._00001.root at byte:0, branch:passesFirstCutTable_bits, entry:395, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … _mc12.0053
34.HerwigVBFH120tautaulh.A12.0.6.9.medium_cut_el.AAN.AANT1._00001.root at byte:0, branch:passesFirstCutTable_bits, entry:396, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … _mc12.0053
34.HerwigVBFH120tautaulh.A12.0.6.9.medium_cut_el.AAN.AANT1._00001.root at byte:0, branch:passesFirstCutTable_bits, entry:397, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
file probably overwritten: stopping reporting error messages
Error in TBranchElement::GetBasket: File: root://acas0420.usatlas.bnl.gov//data/c … _mc12.0053
34.HerwigVBFH120tautaulh.A12.0.6.9.medium_cut_el.AAN.AANT1._00001.root at byte:0, branch:passesFirstCutTable_bits, entry:398, badread=0
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair
Warning in TBasket::ReadBasketBuffers: basket: has fNevBuf=0 but fEntryOffset=0, pos=1620745, len=4437, fNbytes=0, fObjlen=0, trying to repair

Any idea about this problem ?
Thanks a lot
Cheers
Fabien

Hi,

does it work when you run your macro in compiled mode, i.e. “.x Send_ROOT.C+”?

Axel.

Hi Axel,
I tried but it crashed :
root [7] .x Send_ROOT.C+
Info in TUnixSystem::ACLiC: creating shared library /direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT_C.so
In file included from /direct/usatlas+u/tarrade/MacroForPROOF/./filetCVt3Z.h:32,
from /direct/usatlas+u/tarrade/MacroForPROOF/./filetCVt3Z.cxx:16:
/direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C: In function int Send_ROOT()': /direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C:3: error:TChain’ was not declared in this scope
/direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C:3: error: chain' was not declared in this scope /direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C:3: error:TChain’ is not a type
/direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C:4: error: gROOT' was not declared in this scope /direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C:6: error:TStopwatch’ was not declared in this scope
/direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C:6: error: expected ;' before "t" /direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C:7: error:t’ was not declared in this scope
/direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C:3: warning: unused variable ‘TChain’
/direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C:4: warning: unused variable ‘gROOT’
/direct/usatlas+u/tarrade/MacroForPROOF/./Send_ROOT.C:6: warning: unused variable 'TStopwatch’
g++: /direct/usatlas+u/tarrade/MacroForPROOF/./filetCVt3Z.o: No such file or directory
Error in : Compilation failed!
Error: Function Send_ROOT() is not defined in current scope :0:
*** Interpreter error recovered ***

If I add this :
#include <TChain.h>
or this
gROOT->ProcessLine("#include <TChain.h>");
it is worse !
Thanks
Cheers
Fabien

Hi,

To compile the code with AcliC you need to include all the required headers; from the errors that you get, this means at least:

TChain.h
TROOT.h
TStopwatch.h

You may want to try compilation with

.L Send_ROOT.C+

until all errors disappear.

If you have doubts, please post Send_ROOT.C so that we can be more precise.

Finally, this not being a PROOF problem, you may get additional help by posting it to the generic ROOT Support forum.

G. Ganis