test.cxx File Reference

#include <cstdlib>
#include "TROOT.h"
#include "JobControl/JobController.h"
#include "JobControl/JobCEnv.h"

Go to the source code of this file.

Functions

static TROOT gsTROOT ("TROOT","TROOT")
int main (int argc, char **argv)

Function Documentation

static TROOT gsTROOT ( "TROOT"  ,
"TROOT"   
) [static]
int main ( int  argc,
char **  argv 
)

Definition at line 16 of file test.cxx.

References MuELoss::e, JobCEnv::GetMacroFile(), JobCEnv::Instance(), JobController::Run(), and JobCEnv::RunRootApp().

00017 {
00018   JobCEnv& e = JobCEnv::Instance(argc, argv);
00019 
00020   if (e.GetMacroFile(0)) {
00021     // Old style .jcm interface...
00022     JobController jobc(argc, argv);
00023     if (jobc.Run()) return EXIT_SUCCESS;
00024     return EXIT_FAILURE;
00025   }
00026 
00027   // New style CINT interface
00028   if (e.RunRootApp()) return EXIT_SUCCESS;
00029   return EXIT_FAILURE;
00030 }


Generated on 8 Jul 2019 for loon by  doxygen 1.6.1