[Brahms-dev-l] EfficiencyCalculator problem on rcas

From: Stephen Sanders <ssanders_at_ku.edu>
Date: Sat, 1 Sep 2007 16:26:46 -0500
Hi:  I am unable to get the EfficiencyCalculator working on the new  
rcas system.
I have downloaded the latest banapp.    To show the failure I've  
written a
minimal test program DebugEff.C:

	#include <TROOT.h>
	#inc	lude <TSystem.h>
	#include "/brahms/u/sanders/include/banapp/EfficiencyCalculator.h"

	void DebugEff() {
	  Int_t iAngle = 4;
	  Int_t field = 861;
	  Char_t * Polarity = "B";
	  gSystem->Load("/brahms/u/sanders/lib/banapp/libEfficiency.so");
	  TString effFileDir = "/brahms/u/sanders/analysis/efficiency/ 
receffnew/efficdb/";
	  EfficiencyCalculator *effCal = new EfficiencyCalculator 
(effFileDir, iAngle, field, Polarity);
	}

This results in a load failure:
brat [0]
Processing DebugEff.C+...
Info in <TUnixSystem::ACLiC>: creating shared library /direct/brahms 
+u/sanders/analysis/spectra/./DebugEff_C.so
In file included from /direct/brahms+u/sanders/analysis/spectra/./ 
filetrfbjP.h:32,
                  from /direct/brahms+u/sanders/analysis/spectra/./ 
filetrfbjP.cxx:16:
/direct/brahms+u/sanders/analysis/spectra/./DebugEff.C: In function  
`void DebugEff()':
/direct/brahms+u/sanders/analysis/spectra/./DebugEff.C:12: warning:  
unused variable 'effCal'
dlopen error: /direct/brahms+u/sanders/analysis/spectra/./ 
DebugEff_C.so: undefined symbol:  
_ZN20EfficiencyCalculatorC1E7TStringiiS0_
Load Error: Failed to load Dynamic link library /direct/brahms+u/ 
sanders/analysis/spectra/./DebugEff_C.so
In file included from /direct/brahms+u/sanders/analysis/spectra/./ 
DebugEff.C:3,
                  from /direct/brahms+u/sanders/analysis/spectra/./ 
filetrfbjP.h:32,
                  from /direct/brahms+u/sanders/analysis/spectra/./ 
filetrfbjP.cxx:16:
/brahms/u/sanders/include/banapp/EfficiencyCalculator.h:73: warning:  
unused parameter 'nhist'
/brahms/u/sanders/include/banapp/EfficiencyCalculator.h:73: warning:  
unused parameter 'p'
/brahms/u/sanders/include/banapp/EfficiencyCalculator.h:74: warning:  
unused parameter 'p'
In file included from /direct/brahms+u/sanders/analysis/spectra/./ 
filetrfbjP.h:32,
                  from /direct/brahms+u/sanders/analysis/spectra/./ 
filetrfbjP.cxx:16:
/direct/brahms+u/sanders/analysis/spectra/./DebugEff.C: In function  
`void DebugEff()':
/direct/brahms+u/sanders/analysis/spectra/./DebugEff.C:12: warning:  
unused variable 'effCal'
/usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o(.text+0x18): In  
function `_start':
: undefined reference to `main'
/direct/brahms+u/sanders/analysis/spectra/./filetrfbjP.o(.text+0xdd):  
In function `DebugEff()':
: undefined reference to `EfficiencyCalculator::EfficiencyCalculator 
(TString, int, int, TString)'
collect2: ld returned 1 exit status
*** Interpreter error recovered ***
brat [1]


Any suggestions?
...steve
_______________________________________________
Brahms-dev-l mailing list
Brahms-dev-l_at_lists.bnl.gov
https://lists.bnl.gov/mailman/listinfo/brahms-dev-l
Received on Sat Sep 01 2007 - 17:28:03 EDT

This archive was generated by hypermail 2.2.0 : Sat Sep 01 2007 - 17:28:29 EDT