forked from AliceO2Group/AliceO2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathg3libs.C
More file actions
33 lines (27 loc) · 1.12 KB
/
Copy pathg3libs.C
File metadata and controls
33 lines (27 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/********************************************************************************
* Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH *
* *
* This software is distributed under the terms of the *
* GNU Lesser General Public Licence version 3 (LGPL) version 3, *
* copied verbatim in the file "LICENSE" *
********************************************************************************/
#if !defined(__CLING__) || defined(__ROOTCLING__)
#include <iostream>
#include "TSystem.h"
#endif
Bool_t isLibrary(const char* libName)
{
if (TString(gSystem->DynamicPathName(libName, kTRUE)) != TString(""))
return kTRUE;
else
return kFALSE;
}
void g3libs()
{
cout << "Loading Geant3 libraries ..." << endl;
if (isLibrary("libdummies"))
gSystem->Load("libdummies.so");
// libdummies.so needed from geant3_+vmc version 0.5
gSystem->Load("libgeant321");
cout << "Loading Geant3 libraries ... finished" << endl;
}