Changeset 1865
- Timestamp:
- 03/24/03 14:59:07 (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/rootlogon.C
r1524 r1865 42 42 } 43 43 44 void load( )44 void load(TString &dir) 45 45 { 46 46 if (isloaded()) … … 49 49 cout << "Loading 'mars.so'... " << flush; 50 50 51 if (gSystem->Load( "mars.so")!=0)51 if (gSystem->Load(dir.IsNull() ? "mars.so" : dir+"lib/mars.so")!=0) 52 52 cout << "error." << endl; 53 53 else … … 60 60 cout << endl; 61 61 } 62 62 /* 63 63 void make() 64 64 { … … 73 73 load(); 74 74 } 75 75 */ 76 76 void rootlogon() 77 77 { 78 78 cout << endl; 79 79 80 load();80 TString dir = gSystem->Getenv("MARSSYS"); 81 81 82 gInterpreter->AddIncludePath("macros"); 83 gInterpreter->AddIncludePath("manalysis"); 84 gInterpreter->AddIncludePath("mbase"); 85 gInterpreter->AddIncludePath("mdata"); 86 gInterpreter->AddIncludePath("mfileio"); 87 gInterpreter->AddIncludePath("mfilter"); 88 gInterpreter->AddIncludePath("mgeom"); 89 gInterpreter->AddIncludePath("mgui"); 90 gInterpreter->AddIncludePath("mhist"); 91 gInterpreter->AddIncludePath("mmain"); 92 gInterpreter->AddIncludePath("mmc"); 93 gInterpreter->AddIncludePath("mmontecarlo"); 94 gInterpreter->AddIncludePath("mraw"); 95 gInterpreter->AddIncludePath("mtools"); 82 if (!dir.IsNull()) 83 { 84 cout << "Mars found in " << dir << " (MARSSYS)" << endl << endl; 85 86 if (!dir.EndsWith("/")) 87 dir += "/"; 88 } 89 90 load(dir); 91 92 gInterpreter->AddIncludePath(dir+"macros"); 93 gInterpreter->AddIncludePath(dir+"manalysis"); 94 gInterpreter->AddIncludePath(dir+"mbase"); 95 gInterpreter->AddIncludePath(dir+"mdata"); 96 gInterpreter->AddIncludePath(dir+"mfileio"); 97 gInterpreter->AddIncludePath(dir+"mfilter"); 98 gInterpreter->AddIncludePath(dir+"mgeom"); 99 gInterpreter->AddIncludePath(dir+"mgui"); 100 gInterpreter->AddIncludePath(dir+"mhist"); 101 gInterpreter->AddIncludePath(dir+"mmain"); 102 gInterpreter->AddIncludePath(dir+"mmc"); 103 gInterpreter->AddIncludePath(dir+"mmontecarlo"); 104 gInterpreter->AddIncludePath(dir+"mraw"); 105 gInterpreter->AddIncludePath(dir+"mtools"); 96 106 97 107 if (TString("linux")==gSystem->GetBuildArch())
Note:
See TracChangeset
for help on using the changeset viewer.