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