Added possibility to run several events, and do seperate settings for nonvertex track...
[u/mrichter/AliRoot.git] / HLT / exa / test.C
1 void test(int minslice,int maxslice,int nevent=1,char *clufile="")
2 {
3   AliL3Logger l;
4   //  l.UnSet(AliL3Logger::kDebug);
5   //  l.UnSet(AliL3Logger::kAll);
6   l.Set(AliL3Logger::kAll);
7   //l.UseStdout();
8   l.UseStream();
9   
10   TFile * in = new TFile(clufile,"read");
11   TFile * out= new TFile("dummy.root","recreate");
12   
13   //a = new AliLevel3(in,out); 
14   
15   
16   for(Int_t ev=0; ev<nevent; ev++)
17     {
18       a = new AliLevel3(in,out);
19       // a->UseBinaryInput("/heim/franken/binary/onepatch/");
20       //a->UseBinaryInput("/prog/alice/data/Rawdata/6_patch/20tracks_s2/");
21       //a->UseBinaryInput("/prog/alice/data/Rawdata/6_patch/hg_84210_s1-3/");
22       //a->UseBinaryInput("/prog/alice/data/Rawdata/1_patch/pp/event_0/");
23       /*
24         char fname[256];
25         sprintf(fname,"/prog/alice/data/Rawdata/1_patch/pp/event_%d/",ev);
26         a->UseBinaryInput(fname);
27         sprintf(fname,"/prog/alice/data/Rawdata/1_patch/pp/recon_%d/",ev);
28         a->WriteFiles(fname);
29       */
30       //  a->DoRoi();
31       //a->DoMc();
32       
33       Int_t phi_segments,eta_segments,trackletlength,tracklength;
34       Int_t rowscopetracklet,rowscopetrack;
35       Double_t min_pt_fit,maxangle,goodDist,hitChi2Cut;
36       Double_t goodHitChi2,trackChi2Cut,maxphi,maxeta;
37       
38       phi_segments = 50;//50;
39       eta_segments = 100;//100;
40       trackletlength = 5;
41       tracklength = 10;
42       rowscopetracklet = 2;
43       rowscopetrack = 2;
44       min_pt_fit = 0;
45       maxangle = 1.31;
46       goodDist = 5;
47       maxphi=100;
48       maxeta=100;
49       hitChi2Cut = 200;
50       goodHitChi2 = 50;
51       trackChi2Cut = 100;
52       /*
53       //main vertex tracking parameters:
54       a->SetTrackerParam(phi_segments,eta_segments,trackletlength,tracklength,
55       rowscopetracklet,rowscopetrack,
56       min_pt_fit,maxangle,goodDist,hitChi2Cut,
57       goodHitChi2,trackChi2Cut,50,maxphi,maxeta,kTRUE);
58       */
59       a->SetTrackerParam();
60       
61       //non vertex tracking parameters:
62       trackletlength = 2;
63       tracklength = 10;
64       rowscopetracklet = 2;
65       rowscopetrack = 2;
66       min_pt_fit = 0;
67       maxangle = 1.31;
68       goodDist = 0;
69       hitChi2Cut = 100;
70       goodHitChi2 = 5;
71       trackChi2Cut = 80;
72       
73       a->SetTrackerParam(phi_segments,eta_segments,trackletlength,tracklength,
74                          rowscopetracklet,rowscopetrack,
75                          min_pt_fit,maxangle,goodDist,hitChi2Cut,
76                          goodHitChi2,trackChi2Cut,50,maxphi,maxeta,kFALSE);
77       
78       // a->SetTrackerParam();
79       //a->DoNonVertexTracking();
80       a->WriteFiles();
81       //a->ProcessEvent(0,2);
82       a->ProcessEvent(minslice,maxslice);
83       //a->DoBench("benchmark_0");
84       
85       delete a;
86     }
87 }