GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
go4root.cxx
Go to the documentation of this file.
1 // $Id: go4root.cxx 932 2013-01-29 13:32:22Z linev $
2 //-----------------------------------------------------------------------
3 // The GSI Online Offline Object Oriented (Go4) Project
4 // Experiment Data Processing at EE department, GSI
5 //-----------------------------------------------------------------------
6 // Copyright (C) 2000- GSI Helmholtzzentrum für Schwerionenforschung GmbH
7 // Planckstr. 1, 64291 Darmstadt, Germany
8 // Contact: http://go4.gsi.de
9 //-----------------------------------------------------------------------
10 // This software can be used under the license agreements as stated
11 // in Go4License.txt file which is part of the distribution.
12 //-----------------------------------------------------------------------
13 
14 #include "TGo4Log.h"
15 
16 #include "TRint.h"
17 #include "TGo4AnalysisClient.h"
18 
19 void usage();
20 
33 int main(int argc, char **argv)
34 {
35  TRint theApp("Go4CINT", &argc, argv);
36  // define debug output section:
37  TGo4Log::Instance(); // init logger object
38  TGo4Log::SetIgnoreLevel(1); // set this to 1 to suppress detailed debug output
39  // set this to 2 to get warnings and errors only
40  // set this to 3 to get errors only
41  TGo4Log::LogfileEnable(kFALSE); // will enable or disable logging all messages to file
42  // use demo with internal dummy analysis base class
43  TGo4AnalysisClient* myclient = new TGo4AnalysisClient(
44  "Go4CintServer", // name
45  0, // external analysis (use internal if 0)
46  "localhost", // node (dummy)
47  1234, // port (dummy)
48  0, // histogram server on/off
49  "", // histogram server basename
50  "", // histogram server passwd
51  kTRUE // start this slave as server
52  );
53  myclient->SetCintMode(kTRUE);
54  TGo4Log::Info("Created Slave Instance: %s", myclient->GetName()); // dummy action for warnings
55  theApp.Run();
56  return 0;
57 }
58 
59 
60 
61 
62 
static TGo4Log * Instance()
Definition: TGo4Log.cxx:87
void SetCintMode(Bool_t on=kTRUE)
static void SetIgnoreLevel(Int_t level)
Definition: TGo4Log.cxx:322
int main(int argc, char **argv)
Definition: go4root.cxx:33
const char * GetName() const
void usage()
static void Info(const char *text,...)
Definition: TGo4Log.cxx:283
static void LogfileEnable(Bool_t on=kTRUE)
Definition: TGo4Log.cxx:369