00001 // $Id: go4root.cxx 932 2013-01-29 13:32:22Z linev $ 00002 //----------------------------------------------------------------------- 00003 // The GSI Online Offline Object Oriented (Go4) Project 00004 // Experiment Data Processing at EE department, GSI 00005 //----------------------------------------------------------------------- 00006 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH 00007 // Planckstr. 1, 64291 Darmstadt, Germany 00008 // Contact: http://go4.gsi.de 00009 //----------------------------------------------------------------------- 00010 // This software can be used under the license agreements as stated 00011 // in Go4License.txt file which is part of the distribution. 00012 //----------------------------------------------------------------------- 00013 00014 #include "TGo4Log.h" 00015 00016 #include "TRint.h" 00017 #include "TGo4AnalysisClient.h" 00018 00019 void usage(); 00020 00033 int main(int argc, char **argv) 00034 { 00035 TRint theApp("Go4CINT", &argc, argv); 00036 // define debug output section: 00037 TGo4Log::Instance(); // init logger object 00038 TGo4Log::SetIgnoreLevel(1); // set this to 1 to suppress detailed debug output 00039 // set this to 2 to get warnings and errors only 00040 // set this to 3 to get errors only 00041 TGo4Log::LogfileEnable(kFALSE); // will enable or disable logging all messages to file 00042 // use demo with internal dummy analysis base class 00043 TGo4AnalysisClient* myclient = new TGo4AnalysisClient( 00044 "Go4CintServer", // name 00045 0, // external analysis (use internal if 0) 00046 "localhost", // node (dummy) 00047 1234, // port (dummy) 00048 0, // histogram server on/off 00049 "", // histogram server basename 00050 "", // histogram server passwd 00051 kTRUE // start this slave as server 00052 ); 00053 myclient->SetCintMode(kTRUE); 00054 TGo4Log::Info("Created Slave Instance: %s", myclient->GetName()); // dummy action for warnings 00055 theApp.Run(); 00056 return 0; 00057 } 00058 00059 00060 00061 00062