]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/programs/runvhdlcf.cxx
Added deconvolution switch.
[u/mrichter/AliRoot.git] / HLT / programs / runvhdlcf.cxx
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();