3 // Author: Constantin Loizides <loizides@ikf.uni-frankfurt.de>
4 //*-- Copyright © ALICE HLT Group
7 #include "AliL3StandardIncludes.h"
9 #include "AliL3RootTypes.h"
10 #include "AliL3Transform.h"
11 #include "AliL3VHDLClusterFinder.h"
12 #include "AliL3AltroMemHandler.h"
13 #include "AliL3Logging.h"
14 #include "AliL3Logger.h"
24 Example program how to run the vhdl hough code.
27 int main(int argc,char **argv)
36 l.Set(AliL3Logger::kAll);
42 cout<<"Usage: runvhdlcf altrodatafile [slice] [patch] [matchwidth] [threshold]"<<endl;
58 //Storing all specific quantities, needed by the Cluster Finder.
60 //strcpy(fname,argv[1]);
61 //AliL3Transform::Init(dirname(fname));
62 //strcpy(fname,argv[1]);
64 FILE *afile=fopen(argv[1],"r");
66 cerr << "Can't open file " << argv[1] << endl;
70 AliL3VHDLClusterFinder cf;
71 cf.SetASCIIInput(afile);
73 //set cluster finder parameters
78 cf.SetSTDOutput(kTRUE);
80 //cf.SetDeconv(kFALSE);
82 //start processing data
85 if(afile) fclose(afile);