* See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for *
* full copyright notice. *
**************************************************************************/
+
#include <TInterpreter.h>
#include <TRint.h>
#include <TROOT.h>
int main(int argc, char **argv)
{
- static const TEveException eH("alieve::main");
+ static const TEveException kEH("alieve::main");
- if(gSystem->Getenv("REVESYS") == 0) {
- if(gSystem->Getenv("ALICE_ROOT") != 0) {
- Info(eH.Data(), "setting REVESYS from ALICE_ROOT.");
+ if (gSystem->Getenv("REVESYS") == 0) {
+ if (gSystem->Getenv("ALICE_ROOT") != 0) {
+ Info(kEH.Data(), "setting REVESYS from ALICE_ROOT.");
gSystem->Setenv("REVESYS", Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
} else {
- Error(eH.Data(), "REVESYS not defined, neither is ALICE_ROOT.");
+ Error(kEH.Data(), "REVESYS not defined, neither is ALICE_ROOT.");
gSystem->Exit(1);
}
}
- if(gSystem->AccessPathName(gSystem->Getenv("REVESYS")) == kTRUE) {
- Error(eH.Data(), "REVESYS '%s' does not exist.", gSystem->Getenv("REVESYS"));
+ if (gSystem->AccessPathName(gSystem->Getenv("REVESYS")) == kTRUE) {
+ Error(kEH.Data(), "REVESYS '%s' does not exist.", gSystem->Getenv("REVESYS"));
gSystem->Exit(1);
}
TString macPath(gROOT->GetMacroPath());
macPath += Form(":%s/macros", gSystem->Getenv("REVESYS"));
gInterpreter->AddIncludePath(gSystem->Getenv("REVESYS"));
- if(gSystem->Getenv("ALICE_ROOT") != 0) {
+ if (gSystem->Getenv("ALICE_ROOT") != 0) {
macPath += Form(":%s/alice-macros", gSystem->Getenv("REVESYS"));
+ gInterpreter->AddIncludePath(Form("%s/EVE", gSystem->Getenv("ALICE_ROOT")));
gInterpreter->AddIncludePath(Form("%s/include", gSystem->Getenv("ALICE_ROOT")));
gInterpreter->AddIncludePath(gSystem->Getenv("ALICE_ROOT"));
}
TEveManager::Create();
-
app.Run(); // Never returns.
+
return 0;
}