gSystem error

From: Harinder Singh Bawa <hbawa_at_csufresno.edu>
Date: Thu, 22 Jul 2010 02:30:18 -0700


Dear experts,

I am trying to setup Goo Run List cut needed for my analysis. It actually reads the xml file and apply the cut to those events which are good. The xml file and .so file is given by the package Good Run List.

But When I incorporate it to my code as follows, I am getting the error below the code. I want to specify that interactively, I can load .so file using gSystem but in code it is not recognising gSystem as well as DQ flag which I supose is after effect of no loading .so file. Could anyone help what header file or what needs to include in my code.

the code is as follows.

// Setup for Good Runs List

gSystem->Load("$TestArea/DataQuality/GoodRunsLists/i686-slc4-gcc34-opt/libGoodRunsListsLib.so"); DQ::SetXMLFile("data10_7TeV.periodD4.159041-159086_LBSUMM_DetStatus-v03-pass1-analysis-2010D_data_eg_standard_7TeV.xml"); TCut goodRunsList = "DQ::PassRunLB(RunNumber, lbn)"; Int_t nEvents;
nEvents = Chain -> Draw(">>list", goodRunsList); cout << "Number of Events after GRL:\t" << nEvents << "\n" << endl;

And I am getting following error.



[bawa_at_fresnostate DQ]$ root -l
root [0] .L test.C++
Info in <TUnixSystem::ACLiC>: creating shared library /tmp/bawa/D3PD/interactive/DQ/./test_C.so
In file included from /tmp/bawa/D3PD/interactive/DQ/./test.C:9, 
from /tmp/bawa/D3PD/interactive/DQ/./test_C_ACLiC_dict.h:33, 
from /tmp/bawa/D3PD/interactive/DQ/./test_C_ACLiC_dict.cxx:16: 

/tmp/bawa/D3PD/interactive/DQ/./test.h:4129: warning: unused parameter 'tree'
/tmp/bawa/D3PD/interactive/DQ/./test.h:7404: warning: unused parameter 'entry'
In file included from /tmp/bawa/D3PD/interactive/DQ/./test.C:28, from /tmp/bawa/D3PD/interactive/DQ/./test_C_ACLiC_dict.h:33, from /tmp/bawa/D3PD/interactive/DQ/./test_C_ACLiC_dict.cxx:16:
/tmp/bawa/D3PD/interactive/DQ/./checkOQ.C:282: warning: unused parameter 'candidate'
In file included from /tmp/bawa/D3PD/interactive/DQ/./test_C_ACLiC_dict.h:33, from /tmp/bawa/D3PD/interactive/DQ/./test_C_ACLiC_dict.cxx:16:
/tmp/bawa/D3PD/interactive/DQ/./test.C: In member function 'virtual void test::Loop()':
/tmp/bawa/D3PD/interactive/DQ/./test.C:152: error: 'gSystem' was not declared in this scope
/tmp/bawa/D3PD/interactive/DQ/./test.C:153: error: 'DQ' has not been declared
/tmp/bawa/D3PD/interactive/DQ/./test.C:154: error: variable 'TCut goodRunsList' has initializer but incomplete type
/tmp/bawa/D3PD/interactive/DQ/./test.C:194: warning: comparison between signed and unsigned integer expressions
/tmp/bawa/D3PD/interactive/DQ/./test.C:207: warning: comparison between signed and unsigned integer expressions
g++: /tmp/bawa/D3PD/interactive/DQ/./test_C_ACLiC_dict.o: No such file or directory Error in <ACLiC>: Compilation failed!

Harinder Received on Thu Jul 22 2010 - 11:30:44 CEST

This archive was generated by hypermail 2.2.0 : Thu Jul 22 2010 - 11:50:01 CEST