3 // Author: Constantin Loizides <loizides@ikf.uni-frankfurt.de>
4 //*-- Copyright © ALICE HLT Group
7 #include "AliHLTStandardIncludes.h"
9 #include "AliHLTRootTypes.h"
10 #include "AliHLTLogging.h"
11 #include "AliHLTLogger.h"
12 #include "AliHLTMemHandler.h"
13 #include "AliHLTTransform.h"
14 #include "AliHLTVHDLClusterFinder.h"
15 #include "AliHLTAltroMemHandler.h"
28 Example program how to run the vhdl clusterfinder.
31 int main(Int_t argc,Char_t **argv)
40 l.Set(AliHLTLogger::kAll);
46 cout<<"Usage: runvhdlcf altrodatafile [slice] [patch] [matchwidth] [threshold] [deconv]"<<endl;
66 //reading transformer config file
68 strcpy(fname,argv[1]);
69 AliHLTTransform::Init(dirname(fname));
70 strcpy(fname,argv[1]);
73 FILE *afile=fopen(argv[1],"r");
75 cerr << "Can't open file " << argv[1] << endl;
79 AliHLTVHDLClusterFinder cf;
80 cf.SetASCIIInput(afile);
82 //set cluster finder parameters
87 cf.SetSTDOutput(kTRUE);
91 //start processing data
94 if(afile) fclose(afile);