]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/programs/gettransform.cxx
bugfix: component base class overrode data type of output blocks (introduced with...
[u/mrichter/AliRoot.git] / HLT / programs / gettransform.cxx
1 // $Id$
2
3 // Author: Constantin Loizides <loizides@ikf.uni-frankfurt.de>
4 //*-- Copyright &copy ALICE HLT Group
5
6
7 /**
8    This program extracts parameters and lookup tables needed for the
9    vhdl implementation of the Hough transform. 
10 */
11
12 #include <AliHLTStandardIncludes.h>
13 #include <AliHLTRootTypes.h>
14 #include <AliHLTTransform.h>
15 #include <AliHLTLogging.h>
16 #include <AliHLTLogger.h>
17 #include <AliHLTMemHandler.h>
18 #include <AliHLTHoughTransformerVhdl.h>
19
20 #if __GNUC__ == 3
21 using namespace std;
22 #endif
23
24 int main(Int_t argc,Char_t **argv)
25 {
26   Int_t patch=0;
27   Int_t slice=0;
28   Char_t path[1000];
29
30   AliHLTLogger l;
31   l.Set(AliHLTLogger::kAll);
32   l.UseStderr();
33   //l.UseStdout();
34   //l.UseStream();
35     
36   if (argc>1) {
37     slice=atoi(argv[1]);
38   }
39   if (argc>2) {
40     patch=atoi(argv[2]);
41   }  
42   if (argc>3) {
43     strcpy(path,argv[3]);
44   } else strcpy(path,"/tmp/data/RawData/slice0");
45   if(argc>4){
46     cout<<"Usage: transform [slice] [patch] [path]"<<endl;
47     exit(1);
48   }
49
50   AliHLTTransform::Init(path);
51   cerr << "Transform version: " << AliHLTTransform::GetVersion() << endl;
52
53   AliHLTHoughTransformerVhdl vtest(slice,patch,100,10);
54   vtest.CreateHistograms(64,0.1,64,-30,30);
55   vtest.PrintVhdl();
56   exit(0);
57 }
58