Hi everyone,
Hopefully this problem is straightforward and I’m just silly but I’m running into a few issues while trying the load my file into ROOT (my file is named run_1348.root):
$root -l run_1348.root
To which I get the following warnings:
_root [0]_
**Attaching file run_1348.root as _file0...**
**Warning in <TClass::Init>: no dictionary for class GalileoEvent is available**
**Warning in <TClass::Init>: no dictionary for class EuclidesEvent is available**
**Warning in <TClass::Init>: no dictionary for class AncillaryEvent is available**
**Warning in <TClass::Init>: no dictionary for class anAncillaryData is available**
**Warning in <TClass::Init>: no dictionary for class DetectorPresent is available**
And then I call my selector file to process the run_1348.root file (selector file called GalileoSelector.C and is in the same directory as run_1348.root file) as follows:
$GalileoTree->Process("GalileoSelector.C","beta, beta_compound,A,Z,1348_output", 50000000)
Where beta is the average doppler correction calculated using the energy of the peaks of the alpha data, and beta_compound is the doppler correction calculated using PACE4 and the compound nucleus information. The 1348_output is the output file created after the process is run which is a root file (i.e. run_1348_output.root) and that 50000000 is the number of events in the run_1348.root file (rounded up mind you).
I have a Makefile that is in the same directory as the other files that creates the needed dictionaries (which is why I don’t understand those warnings above about dictionaries) and then creates the associated libraries which runs fine and does what it’s supposed to.
The errors that I get are:
Error in <TBufferFile::ReadObject>: trying to read an emulated class (DetectorPresent) to store in a compiled pointer (TObject)
IncrementalExecutor::executeFunction: symbol '_ZN24EvapKinematicsCalculator11getCosThetaE8TVector3' unresolved while linking function '_GLOBAL__sub_I_cling_module_82'!
You are probably missing the definition of EvapKinematicsCalculator::getCosTheta(TVector3)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN24EvapKinematicsCalculator15getBetaResidualEv' unresolved while linking function '_GLOBAL__sub_I_cling_module_82'!
You are probably missing the definition of EvapKinematicsCalculator::getBetaResidual()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN24EvapKinematicsCalculator21addChargedParticleRadEiifff' unresolved while linking function '_GLOBAL__sub_I_cling_module_82'!
You are probably missing the definition of EvapKinematicsCalculator::addChargedParticleRad(int, int, float, float, float)
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN24EvapKinematicsCalculator8newEventEv' unresolved while linking function '_GLOBAL__sub_I_cling_module_82'!
You are probably missing the definition of EvapKinematicsCalculator::newEvent()
Maybe you need to load the corresponding shared library?
IncrementalExecutor::executeFunction: symbol '_ZN24EvapKinematicsCalculatorC1Eiif' unresolved while linking function '_GLOBAL__sub_I_cling_module_82'!
You are probably missing the definition of EvapKinematicsCalculator::EvapKinematicsCalculator(int, int, float)
Maybe you need to load the corresponding shared library?
Starting the GalileoSelector with the compound nucleus 0n
Done
Initialization done
Checking the detectors present in the data:
**#0 0x00007f282dfac27c in waitpid () from /lib64/libc.so.6**
**#1 0x00007f282df2fc72 in do_system () from /lib64/libc.so.6**
**#2 0x00007f282efad699 in TUnixSystem::StackTrace() () from /home/shawnna/root_v6.08.06/root/lib/libCore.so**
**#3 0x00007f282b587b15 in cling::MultiplexInterpreterCallbacks::PrintStackTrace() () from /home/shawnna/root_v6.08.06/root/lib/libCling.so**
**#4 0x00007f282b587488 in cling_runtime_internal_throwIfInvalidPointer () from /home/shawnna/root_v6.08.06/root/lib/libCling.so**
**#5 0x00007f2815b9b312 in ?? ()**
**#6 0x00000000095a0270 in ?? ()**
**#7 0x00007f28130ea000 in ?? ()**
**#8 0x00007f282ecd1238 in ?? () from /lib64/libstdc++.so.6**
**#9 0x00007f282ecd19b0 in vtable for std::basic_streambuf<char, std::char_traits<char> > () from /lib64/libstdc++.so.6**
**#10 0x00000000095deb19 in ?? ()**
**#11 0x00000000095deb19 in ?? ()**
**#12 0x00000000095deb19 in ?? ()**
**#13 0x00000000095deb18 in ?? ()**
**#14 0x00000000095decdd in ?? ()**
**#15 0x00000000095ded18 in ?? ()**
**#16 0x00007f282eceae00 in ?? () from /lib64/libstdc++.so.6**
**#17 0x0000000000000010 in ?? ()**
**#18 0x00000000095deb18 in ?? ()**
**#19 0x00007f282eccef50 in vtable for std::ios_base () from /lib64/libstdc++.so.6**
**#20 0x0000000000000006 in ?? ()**
**#21 0x0000000000000000 in ?? ()**
Error in <HandleInterpreterException>: Trying to dereference null pointer or trying to call routine taking non-null arguments.
Execution of your code was aborted.
In file included from input_line_46:1:
In file included from /home/shawnna/RootFiles/SortCodes/GalileoSoftware/rootselectors/FullGalileo/GalileoSelector.C:25:
**/home/shawnna/RootFiles/SortCodes/GalileoSoftware/rootselectors/FullGalileo/GalileoSelector.h:333:49: warning: **
** null passed to a callee that requires a non-null argument [-Wnonnull]**
** DetectorPresent *det_pres = (DetectorPresent*)lnk->GetObject();**
** ^~~**
_root [2]_ .q
I’m not completely fluent with ROOT or C coding in general so I was hoping for some guidance with the errors listed above (like say the dereference null pointer? the warnings dealing with the dictionaries? ). All the files (run_1348.root, GalileoSelector.C, Makefile, dictionaries, libraries, etc. run properly on the computer where they originated from but I’m using a different machine trying to run the same code). That’s why I think it has to deal with the way I’m trying to run it and not the code itself but I’m not sure.
My computer:
ROOT version 6.08.06
CENT OS 7
gcc 4.8.5
Virtual Machine: VMware - Fusion - 8.5.8 (which is running on a macOS Sierra version 10.12.6)
The original computer:
gcc 4.8.5
operating system: Ubuntu 16.04.2
pretty sure the same ROOT version
Any help is beyond appreciated, thanks!
-Shawnna M