1 | // ROOT script for automatic documentation |
---|
2 | // $Id: loadlibs.C 3000 2011-10-27 10:35:53Z naumov $ |
---|
3 | // A.Thea, D.Naumov created Jun 17 2004 |
---|
4 | // loadlibs: loads libraries needed by ESAF documents generation |
---|
5 | |
---|
6 | void loadlibs() |
---|
7 | { |
---|
8 | // ROOT libs |
---|
9 | cout << "Loading ROOT libraries: \n" << flush; |
---|
10 | cout << " "; |
---|
11 | gSystem->Load("libPhysics"); cout << "Physics, "; |
---|
12 | gSystem->Load("libGeom"); cout << "Geom, "; |
---|
13 | gSystem->Load("libMinuit"); cout << "Minuit, "; |
---|
14 | // gSystem->Load("libesaf_Gui"); |
---|
15 | gSystem->Load("libThread"); cout<< "libThread, "; |
---|
16 | gSystem->Load("libGed"); cout << "Ged.\n"; |
---|
17 | // common libs |
---|
18 | cout << "Loading ESAF libraries: \n" << flush; |
---|
19 | cout << " "; |
---|
20 | |
---|
21 | gSystem->Load("libesaf_base.so"); cout << "base, "; |
---|
22 | gSystem->Load("libesaf_SimuEvent.so"); cout << "SimuEvent, "; |
---|
23 | gSystem->Load("libesaf_gui.so"); cout << "gui, "; |
---|
24 | |
---|
25 | // Simu libs |
---|
26 | gSystem->Load("libesaf_tools.so"); cout << "tools, "; |
---|
27 | gSystem->Load("libesaf_electronics.so"); cout << "electronics, "; |
---|
28 | const char* load_g4 = gSystem->Getenv("G4INSTALL"); |
---|
29 | gSystem->Load("libesaf_optics.so"); cout << "optics, "; |
---|
30 | gSystem->Load("libesaf_atmosphere.so"); cout << "atmosphere, "; |
---|
31 | gSystem->Load("libesaf_genbase.so"); cout << "genbase, "; |
---|
32 | gSystem->Load("libesaf_showers.so"); cout << "showers, "; |
---|
33 | gSystem->Load("libesaf_lightsources.so"); cout << "lightsources, "; |
---|
34 | gSystem->Load("libesaf_simuframework.so"); cout << "simuframework, "; |
---|
35 | gSystem->Load("libesaf_lowtran.so"); cout << "lowtran, "; |
---|
36 | gSystem->Load("libesaf_cfortran.so"); cout << "cfortran, \n"; |
---|
37 | cout << " "; |
---|
38 | const char* load_slast = gSystem->Getenv("USE_SLAST77"); |
---|
39 | if (!TString(load_slast).IsNull()) { |
---|
40 | gSystem->Load("libesaf_slast.so"); cout << "slast, ";} |
---|
41 | gSystem->Load("libesaf_radiativetransfer.so"); cout << "radiativetransfer, "; |
---|
42 | gSystem->Load("libesaf_lighttoeuso.so"); cout << "lighttoeuso, "; |
---|
43 | gSystem->Load("libesaf_dettools.so"); cout << "dettools, "; |
---|
44 | if (!TString(load_g4).IsNull()) { |
---|
45 | gROOT->LoadMacro("g4libs.C"); |
---|
46 | g4libs(); |
---|
47 | gSystem->Load("libesaf_G4Detector.so"); cout << "G4Detector, "; |
---|
48 | gSystem->Load("libesaf_G4fresnellens"); cout << "G4fresnellens, "; |
---|
49 | } |
---|
50 | |
---|
51 | // Reco libs |
---|
52 | gSystem->Load("libesaf_RecoRootEvent.so"); cout << "RecoRootEvent, "; |
---|
53 | gSystem->Load("libesaf_RecoViewer.so"); cout << "RecoViewer, "; |
---|
54 | gSystem->Load("libesaf_recoframework.so"); cout << "recoframework, "; |
---|
55 | gSystem->Load("libesaf_event.so"); cout << "event, "; |
---|
56 | gSystem->Load("libesaf_input.so"); cout << "input, "; |
---|
57 | gSystem->Load("libesaf_output.so"); cout << "output, "; |
---|
58 | gSystem->Load("libesaf_clustering.so"); cout << "clustering, \n"; |
---|
59 | cout << " "; |
---|
60 | gSystem->Load("libesaf_energy.so"); cout << "energy, "; |
---|
61 | gSystem->Load("libesaf_fitting.so"); cout << "fitting, "; |
---|
62 | gSystem->Load("libesaf_footprint.so"); cout << "footprint, "; |
---|
63 | gSystem->Load("libesaf_mass.so"); cout << "mass, "; |
---|
64 | gSystem->Load("libesaf_meteorites.so"); cout << "meteorites, "; |
---|
65 | gSystem->Load("libesaf_neutrino.so"); cout << "neutrino, "; |
---|
66 | gSystem->Load("libesaf_profile.so"); cout << "profile, "; |
---|
67 | gSystem->Load("libesaf_truth.so"); cout << "truth, "; |
---|
68 | |
---|
69 | // Event View libs |
---|
70 | gSystem->Load("libesaf_EventViewer.so"); cout << "EventViewer.\n"; |
---|
71 | |
---|
72 | } |
---|