GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
go4root.cxx
Go to the documentation of this file.
1// $Id$
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 fuer 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
28
29int main(int argc, char **argv)
30{
31 TRint theApp("Go4CINT", &argc, argv);
32 // define debug output section:
33 TGo4Log::Instance(); // init logger object
34 TGo4Log::SetIgnoreLevel(1); // set this to 1 to suppress detailed debug output
35 // set this to 2 to get warnings and errors only
36 // set this to 3 to get errors only
37 TGo4Log::LogfileEnable(kFALSE); // will enable or disable logging all messages to file
38 // use demo with internal dummy analysis base class
39 auto myclient = new TGo4AnalysisClient( "Go4CintServer", // name
40 0, // external analysis (use internal if 0)
41 "localhost", // node (dummy)
42 1234, // port (dummy)
43 0, // histogram server on/off
44 "", // histogram server basename
45 "", // histogram server passwd
46 kTRUE // start this slave as server
47 );
48 myclient->SetCintMode(kTRUE);
49 TGo4Log::Info("Created Slave Instance: %s", myclient->GetName()); // dummy action for warnings
50 theApp.Run();
51 return 0;
52}
static TGo4Log * Instance()
Definition TGo4Log.cxx:85
static void Info(const char *text,...) GO4_PRINTF_ARGS
User shortcut for message with prio 1.
Definition TGo4Log.cxx:294
static void SetIgnoreLevel(Int_t level)
Define threshold for output.
Definition TGo4Log.cxx:332
static void LogfileEnable(Bool_t on=kTRUE)
switch writing to logfile on or off
Definition TGo4Log.cxx:363
int main(int argc, char **argv)
This nice executable starts a rootcint session with a go4 slave server ("analysisclient" in server mo...
Definition go4root.cxx:29