Skip to content
Snippets Groups Projects
Commit 60dc996e authored by Stewart Martin-Haugh's avatar Stewart Martin-Haugh
Browse files

Remove ROOT version checks from APR Tests

parent e2345e81
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,6 @@
#pragma link off all classes;
#pragma link off all functions;
#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)
#pragma link C++ class std::pair< std::string, std::string >+;
#pragma link C++ class std::vector< std::pair< std::string, std::string > >+;
#endif
#pragma link C++ class AttributeListLayout+;
#endif
......@@ -90,13 +90,6 @@ namespace pool {
}
m_poolOut << coral::Info << "File " << m_fileName << " opened in " << method << coral::MessageStream::endmsg;
// if the collection is read via "rootd" a cache might be useful
if(dynamic_cast<TNetFile*>(m_file)) {
#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)
m_file->UseCache();
#endif
}
m_tree->SetDirectory(gDirectory);
m_schemaEditor->writeSchema();
}
......
......@@ -200,15 +200,6 @@ pool::RootCollection::RootCollectionQuery::execute()
eventList = new TEventList("preselected","");
eventList->SetDirectory(0);
#if ROOT_VERSION_CODE < ROOT_VERSION(6,3,0)
size_t maxoper = m_whereClause.length()/3;
if( maxoper > 1000 ) {
// increase number of operators ROOT can handle for complex queries
coral::MessageStream log("APR::RootCollectionQuery");
log << coral::Info << "Setting TFormula::SetMaxima(" << maxoper << ")" << coral::MessageStream::endmsg;
TFormula::SetMaxima( maxoper );
}
#endif
APRTreeFormula formula(m_whereClause, m_tree);
if( !formula.GetNdim() ) {
std::string errorMsg = "Could not construct TTreeFormula object, probably because of incorrect ROOT predicate syntax in expression `" + m_whereClause + "'";
......
......@@ -9,23 +9,7 @@
*/
#include "DataModelRoot/RootType.h"
#include "RVersion.h"
#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)
#include "Reflex/SharedLibrary.h"
std::string libname (const std::string &name)
{
#ifdef _WIN32
return name + ".dll";
#elif defined __hpux
return "lib" + name + ".sl";
#else
return "lib" + name + ".so";
#endif
}
#else
#include "GaudiKernel/System.h"
#endif
namespace pool {}
......@@ -37,16 +21,9 @@ void TestDriver::loadLibraries( const std::vector<std::string>& libraries )
const std::string& library = *iLibrary;
std::cout << "Loading library " << library << std::endl;
#if ROOT_VERSION_CODE < ROOT_VERSION(5,99,0)
Reflex::SharedLibrary libloader( libname(library) );
if(!libloader.Load()){
std::cout << libloader.Error() << std::endl;
}
#else
System::ImageHandle libhandle;
if( System::loadDynamicLib(library, &libhandle) != 1 ) {
std::cout << "Error! library loading failed" << std::endl;
}
#endif
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment