00001 //--------------------------------------------------------------- 00002 // Go4 Release Package v2.10-5 (build 21005) 00003 // 03-Nov-2005 00004 //--------------------------------------------------------------- 00005 // The GSI Online Offline Object Oriented (Go4) Project 00006 // Experiment Data Processing at DVEE department, GSI 00007 //--------------------------------------------------------------- 00008 // 00009 //Copyright (C) 2000- Gesellschaft f. Schwerionenforschung, GSI 00010 // Planckstr. 1, 64291 Darmstadt, Germany 00011 //Contact: http://go4.gsi.de 00012 //---------------------------------------------------------------- 00013 //This software can be used under the license agreements as stated 00014 //in Go4License.txt file which is part of the distribution. 00015 //---------------------------------------------------------------- 00016 #include <iostream.h> 00017 00018 #include "Go4Log/TGo4Log.h" 00019 00020 #include "TRint.h" 00021 #include "TGo4AnalysisClient.h" 00022 00023 void usage(); 00024 00035 int main(int argc, char **argv) 00036 { 00037 TRint theApp("Go4CINT", &argc, argv); 00038 00039 // define debug output section: 00040 TGo4Log::Instance(); // init logger object 00041 TGo4Log::SetIgnoreLevel(1); // set this to 1 to suppress detailed debug output 00042 // set this to 2 to get warnings and errors only 00043 // set this to 3 to get errors only 00044 TGo4Log::LogfileEnable(kFALSE); // will enable or disable logging all messages to file 00045 // use demo with internal dummy analysis base class 00046 TGo4AnalysisClient* myclient = new TGo4AnalysisClient( 00047 "Go4CintServer", // name 00048 0, // external analysis (use internal if 0) 00049 "localhost", // node (dummy) 00050 1234, // port (dummy) 00051 0, // histogram server on/off 00052 "", // histogram server basename 00053 "", // histogram server passwd 00054 kTRUE, // start this slave as server 00055 kFALSE, // do not autorun analysis 00056 kTRUE); 00057 cout << "Created Slave Instance: "<<myclient->GetName()<<endl; // dummy action for warnings 00058 00059 theApp.Run(); 00060 00061 return 0; 00062 } 00063 00064 00065 00066 00067 00068 00069 //----------------------------END OF GO4 SOURCE FILE ---------------------