2 Author: Constantin Loizides <loizides@ikf.physik.uni-frankfurt.de>
8 #include "AliL3RootTypes.h"
9 #include "AliL3Transform.h"
10 #include "AliL3VHDLClusterFinder.h"
11 #include "AliL3AltroMemHandler.h"
12 #include "AliL3Logger.h"
15 Example program how to run the vhdl clusterfinder.
18 int main(int argc,char **argv)
26 //l.Set(AliL3Logger::kAll);
31 cout<<"Usage: runvhdlcf altrodatafile [slice] [patch] [matchwidth] [threshold]"<<endl;
47 //Storing all specific quantities, needed by the Cluster Finder.
49 //strcpy(fname,argv[1]);
50 //AliL3Transform::Init(dirname(fname));
51 //strcpy(fname,argv[1]);
53 FILE *afile=fopen(argv[1],"r");
55 cerr << "Can't open file " << argv[1] << endl;
59 AliL3VHDLClusterFinder cf;
60 cf.SetASCIIInput(afile);
62 //set cluster finder parameters
67 cf.SetSTDOutput(kTRUE);
69 //cf.SetDeconv(kFALSE);
71 //start processing data
74 if(afile) fclose(afile);