3 // Author: Constantin Loizides <loizides@ikf.uni-frankfurt.de>
6 #include "AliL3StandardIncludes.h"
8 #include "AliL3RootTypes.h"
9 #include "AliL3Transform.h"
10 #include "AliL3VHDLClusterFinder.h"
11 #include "AliL3AltroMemHandler.h"
12 #include "AliL3Logging.h"
13 #include "AliL3Logger.h"
23 Example program how to run the vhdl hough code.
26 int main(int argc,char **argv)
35 l.Set(AliL3Logger::kAll);
41 cout<<"Usage: runvhdlcf altrodatafile [slice] [patch] [matchwidth] [threshold]"<<endl;
57 //Storing all specific quantities, needed by the Cluster Finder.
59 //strcpy(fname,argv[1]);
60 //AliL3Transform::Init(dirname(fname));
61 //strcpy(fname,argv[1]);
63 FILE *afile=fopen(argv[1],"r");
65 cerr << "Can't open file " << argv[1] << endl;
69 AliL3VHDLClusterFinder cf;
70 cf.SetASCIIInput(afile);
72 //set cluster finder parameters
77 cf.SetSTDOutput(kTRUE);
79 //cf.SetDeconv(kFALSE);
81 //start processing data
84 if(afile) fclose(afile);