Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

JobCmain.cxx

Go to the documentation of this file.
00001 //======================================================================
00002 // $Id: JobCmain.cxx,v 1.6 2005/06/06 15:52:19 bv Exp $
00003 //
00004 // This is the "main" routine for analysis programs.
00005 //
00006 // messier@huhepl.harvard.edu
00007 //======================================================================
00008 #include <cstdlib>
00009 #include "TROOT.h"
00010 #include "JobControl/JobCEnv.h"
00011 
00012 #ifndef MACOSX
00013 // Setup the root globals
00014 static TROOT gsTROOT("TROOT","TROOT");
00015 #endif
00016 
00017 int main(int argc, char** argv) 
00018 {
00019   JobCEnv& e = JobCEnv::Instance(argc, argv);
00020   if (e.HaveInaccessibleFile()) return EXIT_FAILURE;
00021 
00022   if (e.RunRootApp()) return EXIT_SUCCESS;
00023 
00024   return EXIT_FAILURE;
00025 }

Generated on Mon Feb 15 11:06:49 2010 for loon by  doxygen 1.3.9.1