]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Added deconvolution switch.
authorloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Nov 2002 16:37:21 +0000 (16:37 +0000)
committerloizides <loizides@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Nov 2002 16:37:21 +0000 (16:37 +0000)
HLT/programs/runit.cxx
HLT/programs/runvhdlcf.cxx

index 56f304c134b3c4e811e7ad039ee3f25c761cd362..7435d531f845b03a43cb373c56422f70b617d226 100644 (file)
@@ -2,6 +2,12 @@
 
 // Author: Constantin Loizides <loizides@ikf.physik.uni-frankfurt.de>
 
+/**
+ Example program how to run the "standalone" clusterfinder.
+
+ Important: give patch=-1 for one-patch slices.
+*/
+
 
 #include <stream.h>
 #include <libgen.h>
 #include "AliL3Logging.h"
 #include "AliL3Logger.h"
 
-#define MAXCLUSTER 15000
-
-/**
- Example program how to run the "standalone" clusterfinder.
-
- Important: give patch=-1 for one-patch slices.
-*/
+#define MAXCLUSTER 25000
 
 int main(int argc,char **argv)
 {
@@ -28,6 +28,7 @@ int main(int argc,char **argv)
   Int_t patch=0;
   Int_t fm=4;
   Int_t th=10;
+  Bool_t de=kFALSE;
 
   AliL3Logger l;
   l.Set(AliL3Logger::kAll);
@@ -36,7 +37,7 @@ int main(int argc,char **argv)
   //l.UseStream();
 
   if(argc<2){
-    cout<<"Usage: runit datafile [slice] [patch] [match] [threshold]"<<endl;
+    cout<<"Usage: runit datafile [slice] [patch] [match] [threshold] [deconv]"<<endl;
     return -1;
   }
   if (argc>2) {
@@ -51,11 +52,14 @@ int main(int argc,char **argv)
   if (argc>5) {
     th=atoi(argv[5]);
   }
+  if (argc>6) {
+    de=kTRUE;
+  }
 
   AliL3DigitRowData *digits = 0;
   unsigned int nrows=0;
   
-  //Storing all specific quantities, needed by the Cluster Finder.
+  //reading transformer init file
   Char_t fname[1024];
   strcpy(fname,argv[1]);
   AliL3Transform::Init(dirname(fname)); 
@@ -94,10 +98,8 @@ int main(int argc,char **argv)
   //cf.SetZError(0.3);
   cf.SetSTDOutput(kTRUE);
   cf.SetCalcErr(kTRUE);
+  cf.SetDeconv(de); //standard is false
 
-  //Switch off deconvolution:
-  cf.SetDeconv(kFALSE);
-  
   //Allocate memory to store found spacepoints 
   AliL3MemHandler fpoints;
   AliL3SpacePointData *points=(AliL3SpacePointData*)fpoints.Allocate(MAXCLUSTER*sizeof(AliL3SpacePointData));
index 8bcef9474a228f1f95f5c8aa1a633027debf559b..55c4b53b9d93370b1a622b432c09acb1c74b6ee4 100644 (file)
@@ -23,6 +23,7 @@ int main(int argc,char **argv)
   Int_t patch=0;
   Int_t fm=4;
   Int_t th=10;
+  Bool_t de=kFALSE;
 
   AliL3Logger l;
   l.Set(AliL3Logger::kAll);
@@ -31,7 +32,7 @@ int main(int argc,char **argv)
   //l.UseStream();
 
   if(argc<2){
-    cout<<"Usage: runvhdlcf altrodatafile [slice] [patch] [matchwidth] [threshold]"<<endl;
+    cout<<"Usage: runvhdlcf altrodatafile [slice] [patch] [matchwidth] [threshold] [deconv]"<<endl;
     return -1;
   }
   if (argc>2) {
@@ -46,12 +47,17 @@ int main(int argc,char **argv)
   if (argc>5) {
     th=atoi(argv[5]);
   }
+  if (argc>6) {
+    de=kTRUE;
+  }
 
-  //Storing all specific quantities, needed by the Cluster Finder.
-  //Char_t fname[1024];
-  //strcpy(fname,argv[1]);
-  //AliL3Transform::Init(dirname(fname)); 
-  //strcpy(fname,argv[1]);
+  /*
+  //reading transformer config file
+  Char_t fname[1024];
+  strcpy(fname,argv[1]);
+  AliL3Transform::Init(dirname(fname)); 
+  strcpy(fname,argv[1]);
+  */
 
   FILE *afile=fopen(argv[1],"r");
   if(!afile) {
@@ -69,7 +75,7 @@ int main(int argc,char **argv)
   //cf.SetZError(0.3);
   cf.SetSTDOutput(kTRUE);
   cf.SetCalcErr(kTRUE);
-  //cf.SetDeconv(kFALSE);
+  cf.SetDeconv(de);
   
   //start processing data
   cf.ProcessDigits();