Hi Rene
thanks very much for the message.
It seemed like the easiest thing to do was going back to using PyROOT under Athena, since I couldn’t find anyone locally to ask about this.
However, I’ve run into a problem that others have had when using 2D vectors with PyROOT under Athena.
(The whole output, when I try to run my PyROOT script, is at the end of my message, below)
A previous thread is here (Pointer to a 2D vector of integers),
In that case, to summarise, the problem there was solved by doing:
root [] gSystem->Load(“libCintex”);
Cintex::Enable();
Is there an equivalent PyROOT command for the Cintex::Enable()?
Hopefully if I put that at the top of my python script, all will be well!
Thanks again
Sarah
Full details of the current problem…
At the moment, my python script includes the line:
[size=85]gROOT.ProcessLine(’.L Loader.C+’)[/size]
and Loader.C contains:
[size=85]#include
#pragma link C++ class vector<vector >+;
#pragma link C++ class vector<vector >+;
#pragma link C++ class vector<vector >+;
#pragma link C++ class vector<vector >+; [/size]
This works fine using running not under Athena (ROOT 5.26)
But when I run the script under Athena (also ROOT 5.26), I get:
[size=85]Warning in TEnvRec::ChangeValue: duplicate entry <Library.vector=vector.dll> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.vector=vector.dll> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.vector=vector.dll> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.vector=vector.dll> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.vector=vector.dll> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.vector=vector.dll> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.vector=vector.dll> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.vector=vector.dll> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.vector=vector.dll> for level 0; ignored
Warning in TEnvRec::ChangeValue: duplicate entry <Library.vector=vector.dll> for level 0; ignored
Info in TUnixSystem::ACLiC: creating shared library /home/livermore/testareanew/16.0.2.6/ClusterAnalysis/./Loader_C.so
Note: Link requested for undefined class vector<vector > (ignore this message) :0:
Note: Link requested for undefined class vector<vector > (ignore this message) :0:
Note: Link requested for undefined class vector<vector > (ignore this message) :0:
Error: A dictionary has been requested for vector<vector > but there is no declaration!
Error: A dictionary has been requested for vector<vector > but there is no declaration!
Error: A dictionary has been requested for vector<vector > but there is no declaration!
[/size]