Changes to use AliL3Logger correctly in standalone programs.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Jul 2002 17:08:45 +0000 (17:08 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Jul 2002 17:08:45 +0000 (17:08 +0000)
HLT/programs/Makefile
HLT/programs/read.cxx
HLT/programs/runit.cxx
HLT/programs/runvhdlcf.cxx

index d6a999a76d9109034254546e62d99d0e639a18b8..94778eb03fa2fe57654a35b1c503da83a7c74089 100644 (file)
@@ -28,7 +28,7 @@ LIBS += $(RLIBS)
 endif
 
 ifeq ($(USEPACKAGE),ALIROOT)
-DEFSTR = -Duse_aliroot
+DEFSTR = -Duse_aliroot -Duse_root
 ALICELIBS = -L$(ALICE_ROOT)/lib/tgt_Linux -lCONTAINERS -lTPC -lSTEER
 #ALICELIBS := $(shell aliroot-config --libs)
 INCLUDES += -I$(ROOTSYS)/include -I$(ALICE_ROOT)/include/ -I$(ALICE_ROOT)/TPC -I$(ALICE_ROOT)/CONTAINERS -I$(ALICE_ROOT)/STEER
index f03d37127033cc3aefd8d2671891d63e5ce965dc..da914a4aa6703a8828c862befe5eb7e92845107b 100644 (file)
@@ -1,6 +1,7 @@
-/* $Id$
-Author: Constantin Loizides <mailto: loizides@ikf.physik.uni-frankfurt.de
-*/
+// $Id$
+
+// Author: Constantin Loizides <mailto: loizides@ikf.physik.uni-frankfurt.de
+
 
 #include <stream.h>
 #include <libgen.h>
@@ -10,6 +11,8 @@ Author: Constantin Loizides <mailto: loizides@ikf.physik.uni-frankfurt.de
 #include "AliL3AltroMemHandler.h"
 #include "AliL3DigitData.h"
 #include "AliL3Transform.h"
+#include "AliL3Logging.h"
+#include "AliL3Logger.h"
 
 /**
 Example program how to open and read a raw datafile.
@@ -24,15 +27,16 @@ int main(int argc,char **argv)
   Bool_t altroout=kFALSE;
   FILE *afile=0;
   
-  //AliL3Logger l;
-  //l.Set(AliL3Logger::kAll);
+  AliL3Logger l;
+  l.Set(AliL3Logger::kAll);
+  //l.UseStderr();
   //l.UseStdout();
   //l.UseStream();
 
   if(argc<2)
     {
       cout<<"Usage: read datafile [slice] [patch] [altrodatfile]"<<endl;
-      return -1;
+      exit(1);
     }
   if (argc>2) {
     slice=atoi(argv[2]);
index 6258e71da4d125bc45793ff095208a4e75ec3096..39ba12d3ce27ff4f6ff5df8a75e34d0baf2f3b61 100644 (file)
@@ -1,17 +1,21 @@
-/* $Id$
-   Author: Constantin Loizides <loizides@ikf.physik.uni-frankfurt.de>
-*/
+// $Id$
+
+// Author: Constantin Loizides <loizides@ikf.physik.uni-frankfurt.de>
+
 
 #include <stream.h>
 #include <libgen.h>
+
 #include "AliL3RootTypes.h"
 #include "AliL3Transform.h"
 #include "AliL3ClustFinderNew.h"
 #include "AliL3MemHandler.h"
 #include "AliL3SpacePointData.h"
+#include "AliL3Logging.h"
 #include "AliL3Logger.h"
 
 #define MAXCLUSTER 15000
+
 /**
  Example program how to run the "standalone" clusterfinder.
 
@@ -25,8 +29,9 @@ int main(int argc,char **argv)
   Int_t fm=4;
   Int_t th=10;
 
-  //AliL3Logger l;
-  //l.Set(AliL3Logger::kAll);
+  AliL3Logger l;
+  l.Set(AliL3Logger::kAll);
+  l.UseStderr();
   //l.UseStdout();
   //l.UseStream();
 
index 44ec81befaccc06760fb4d028e613c2dde0d8299..8bcef9474a228f1f95f5c8aa1a633027debf559b 100644 (file)
@@ -1,6 +1,7 @@
-/* $Id$
-   Author: Constantin Loizides <loizides@ikf.physik.uni-frankfurt.de>
-*/
+// $Id$
+   
+// Author: Constantin Loizides <loizides@ikf.physik.uni-frankfurt.de>
+
 
 #include <stream.h>
 #include <libgen.h>
 #include "AliL3Transform.h"
 #include "AliL3VHDLClusterFinder.h"
 #include "AliL3AltroMemHandler.h"
+#include "AliL3Logging.h"
 #include "AliL3Logger.h"
 
 /**
- Example program how to run the vhdl clusterfinder.
+Example program how to run the vhdl clusterfinder.
 */
 
 int main(int argc,char **argv)
@@ -22,8 +24,9 @@ int main(int argc,char **argv)
   Int_t fm=4;
   Int_t th=10;
 
-  //AliL3Logger l;
-  //l.Set(AliL3Logger::kAll);
+  AliL3Logger l;
+  l.Set(AliL3Logger::kAll);
+  l.UseStderr();
   //l.UseStdout();
   //l.UseStream();