]>
Commit | Line | Data |
---|---|---|
1 | //$Id$ | |
2 | ||
3 | //Author: Constantin Loizides <mailto:loizides@ikf.uni-frankfurt.de> | |
4 | ||
5 | /** | |
6 | This program extracts parameters and lookup tables needed for the | |
7 | vhdl implementation of the Hough transform. | |
8 | */ | |
9 | ||
10 | #include <AliL3StandardIncludes.h> | |
11 | #include <AliL3RootTypes.h> | |
12 | #include <AliL3Transform.h> | |
13 | #include <AliL3Logging.h> | |
14 | #include <AliL3Logger.h> | |
15 | #include <AliL3MemHandler.h> | |
16 | #include <AliL3HoughTransformerVhdl.h> | |
17 | ||
18 | #if GCCVERSION == 3 | |
19 | using namespace std; | |
20 | #endif | |
21 | ||
22 | int main(Int_t argc,Char_t **argv) | |
23 | { | |
24 | Int_t patch=0; | |
25 | Int_t slice=0; | |
26 | Char_t path[1000]; | |
27 | ||
28 | AliL3Logger l; | |
29 | l.Set(AliL3Logger::kAll); | |
30 | l.UseStderr(); | |
31 | //l.UseStdout(); | |
32 | //l.UseStream(); | |
33 | ||
34 | if (argc>1) { | |
35 | slice=atoi(argv[1]); | |
36 | } | |
37 | if (argc>2) { | |
38 | patch=atoi(argv[2]); | |
39 | } | |
40 | if (argc>3) { | |
41 | strcpy(path,argv[3]); | |
42 | } else strcpy(path,"/tmp/data/RawData/slice0"); | |
43 | if(argc>4){ | |
44 | cout<<"Usage: transform [slice] [patch] [path]"<<endl; | |
45 | exit(1); | |
46 | } | |
47 | ||
48 | AliL3Transform::Init(path); | |
49 | //cerr << "Transform version: " << AliL3Transform::GetVersion() << endl; | |
50 | ||
51 | AliL3HoughTransformerVhdl vtest(slice,patch,100,10); | |
52 | vtest.CreateHistograms(64,0.1,64,-30,30); | |
53 | vtest.PrintVhdl(); | |
54 | exit(0); | |
55 | } | |
56 |