GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » R3BRoot » Data Analysis » error undefined symbol TSpectrum (error undefined symbol TSpectrum)
error undefined symbol TSpectrum [message #21949] Thu, 14 December 2017 13:26 Go to previous message
EliGaliana is currently offline  EliGaliana
Messages: 4
Registered: December 2017
Location: USC
occasional visitor
From: *usc.es

Hi,
In the FinishTaks() method of class R3BCalifaMapped2CrystalCalPar.cxx (which is a FairTask) I implemented a TSpectrum call in order to find some calibration parameters, such as,

#include <TSpectrum.h>
...
TSpectrum *ss = new TSpectrum(fNumPeaks);
for (Int_t i=0;i<fNumCrystals;i++){

nfound = ss->Search(fh_raw_energy_crystal[i],fSigma,"",fThreshold);
fChannelPeaks = (Double_t*) ss->GetPositionX();
TMath::Sort(nfound, fChannelPeaks, idx, kTRUE);
...
}
When I compile everything is ok. However, when I try to run the macro using the fairtask R3BCalifaMapped2CrystalCalPar, appears the following error:

/home/fpddv1/elisabet.galiana/Escritorio/FairSoft/FairSoft_Install/bin/r oot.exe: symbol lookup error: /home/fpddv1/elisabet.galiana/Escritorio/R3BRoot/R3BRoot_build/lib/libR3 BCalifa.so.SOVERSION: undefined symbol: _ZN9TSpectrumC1Eid

I have checked for another usages of TSpectrum in R3BRoot and I found that in tof/R3BTofdCal2HitPar.cxx it is used but currently commented out.
In addition, I try to solve it by introducing the solution found in the ROOT forum: https://root-forum.cern.ch/t/undefined-symbol-with-tspectrum/24109 but it doesn't work either.

Could you give me some light about it, please?

Many thanks in advance.
 
Read Message
Read Message
Read Message
Previous Topic: UCESB multi-dimensional array
Next Topic: reading container parameter
Goto Forum:
  


Current Time: Fri Mar 29 09:34:48 CET 2024

Total time taken to generate the page: 0.01067 seconds