]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/programs/gettransform.cxx
Merged HLT tag v1-2 with ALIROOT tag v3-09-Release.
[u/mrichter/AliRoot.git] / HLT / programs / gettransform.cxx
CommitLineData
f353cbd1 1//$Id$
594eefc8 2
f353cbd1 3//Author: Constantin Loizides <mailto:loizides@ikf.uni-frankfurt.de>
594eefc8 4
f353cbd1 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>
594eefc8 11#include <AliL3RootTypes.h>
594eefc8 12#include <AliL3Transform.h>
13#include <AliL3Logging.h>
14#include <AliL3Logger.h>
15#include <AliL3MemHandler.h>
f353cbd1 16#include <AliL3HoughTransformerVhdl.h>
594eefc8 17
3e87ef69 18#if GCCVERSION == 3
19using namespace std;
20#endif
21
22int main(Int_t argc,Char_t **argv)
594eefc8 23{
24 Int_t patch=0;
25 Int_t slice=0;
26 Char_t path[1000];
a6894d90 27
28 AliL3Logger l;
29 l.Set(AliL3Logger::kAll);
30 l.UseStderr();
31 //l.UseStdout();
32 //l.UseStream();
594eefc8 33
34 if (argc>1) {
35 slice=atoi(argv[1]);
36 }
37 if (argc>2) {
38 patch=atoi(argv[2]);
a6894d90 39 }
40 if (argc>3) {
594eefc8 41 strcpy(path,argv[3]);
42 } else strcpy(path,"/tmp/data/RawData/slice0");
a6894d90 43 if(argc>4){
44 cout<<"Usage: transform [slice] [patch] [path]"<<endl;
45 exit(1);
46 }
594eefc8 47
48 AliL3Transform::Init(path);
a6894d90 49 //cerr << "Transform version: " << AliL3Transform::GetVersion() << endl;
594eefc8 50
f353cbd1 51 AliL3HoughTransformerVhdl vtest(slice,patch,100,10);
52 vtest.CreateHistograms(64,0.1,64,-30,30);
53 vtest.PrintVhdl();
594eefc8 54 exit(0);
55}
56