]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/programs/gettransform.cxx
Fixing the previous unresolved bug before I was going on vacation.
[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
18int main(int argc,char **argv)
19{
20 Int_t patch=0;
21 Int_t slice=0;
22 Char_t path[1000];
a6894d90 23
24 AliL3Logger l;
25 l.Set(AliL3Logger::kAll);
26 l.UseStderr();
27 //l.UseStdout();
28 //l.UseStream();
594eefc8 29
30 if (argc>1) {
31 slice=atoi(argv[1]);
32 }
33 if (argc>2) {
34 patch=atoi(argv[2]);
a6894d90 35 }
36 if (argc>3) {
594eefc8 37 strcpy(path,argv[3]);
38 } else strcpy(path,"/tmp/data/RawData/slice0");
a6894d90 39 if(argc>4){
40 cout<<"Usage: transform [slice] [patch] [path]"<<endl;
41 exit(1);
42 }
594eefc8 43
44 AliL3Transform::Init(path);
a6894d90 45 //cerr << "Transform version: " << AliL3Transform::GetVersion() << endl;
594eefc8 46
f353cbd1 47 AliL3HoughTransformerVhdl vtest(slice,patch,100,10);
48 vtest.CreateHistograms(64,0.1,64,-30,30);
49 vtest.PrintVhdl();
594eefc8 50 exit(0);
51}
52