]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/ITS/macros/rec-spd-cluster.C
Renaming AliHLTReconstructorBase to AliHLTPluginBase to reflect the
[u/mrichter/AliRoot.git] / HLT / ITS / macros / rec-spd-cluster.C
1
2 //aliroot -b -q rec-spd-cluster.C | tee rec-spd-cluster.log
3
4 void rec_spd_cluster(const char* input="./", char* opt="")
5 {
6
7   if(!gSystem->AccessPathName("galice.root")){
8     cerr << "please delete the galice.root or run at different place." << endl;
9     return;
10   }
11   
12   if (!input) {
13     cerr << "please specify input or run without arguments" << endl;
14     return;
15   }
16
17   ///////////////////////////////////////////////////////////////////////////////////////////////////
18   //
19   // init the HLT system in order to define the analysis chain below
20   //
21   AliHLTSystem* gHLT=AliHLTPluginBase::GetInstance();
22  
23   ///////////////////////////////////////////////////////////////////////////////////////////////////
24   //
25   // Setting up which output to give
26   //
27   TString option="libAliHLTUtil.so libAliHLTRCU.so libAliHLTITS.so libAliHLTSample.so loglevel=0x7c chains=";
28
29   ///////////////////////////////////////////////////////////////////////////////////////////////////
30   //
31   // define the analysis chain to be run
32   //
33   
34   int minddl=0x00000000;
35   int maxddl=0x00040000;
36
37   int ddl=0;
38   int ddlno=0;
39
40   TString dummyInput="";
41   for(int ddl=minddl;ddl<=maxddl;){
42     TString arg, publisher, cf;
43     //arg.Form("-minid %d -datatype 'DDL_RAW ' 'ITS '  -dataspec 0x%02x%02x%02x%02x -verbose", ddl, 00, 00, 00, 00);   
44     //arg.Form("-detector ITSSPD -skipempty -datatype 'DDL_RAW ' 'ITS ' -verbose");
45     //arg.Form("-minid %d -datatype 'DDL_RAW ' 'TPC '  -dataspec 0x%02x%02x%02x%02x -verbose", ddlno, slice, slice, part, part);
46     //arg.Form("-minid %d -datatype 'DDL_RAW ' 'ISPD ' -dataspec 0x%08x -verbose",ddlno, ddl);
47     //arg.Form("-detector ITSSPD -datatype 'DDL_RAW ' 'ISPD ' -skipempty -dataspec 0x%08x -verbose",ddl);
48     arg.Form("-minid %d -datatype 'DDL_RAW ' 'ISPD ' -dataspec 0x%08x -verbose",ddlno, ddl);
49     publisher.Form("DP_%d", ddl);
50     AliHLTConfiguration pubconf(publisher.Data(), "AliRawReaderPublisher", NULL , arg.Data());
51     
52     cf.Form("CF_%d",ddl);
53     AliHLTConfiguration cfconf(cf.Data(), "ITSClusterFinderSPD", publisher.Data(), "");
54
55     if (dummyInput.Length()>0) dummyInput+=" ";
56     dummyInput+=cf;
57
58     ddlno++;
59     if(ddl==0x0000000){ddl++;}else{ddl = ddl << 1;}
60   }
61
62   //add dummy
63   AliHLTConfiguration dummyconf("dummy", "Dummy", dummyInput.Data(), "-output_percentage 0");
64
65   option+="dummy";
66
67   ///////////////////////////////////////////////////////////////////////////////////////////////////
68   //
69   // Init and run the reconstruction
70   // All but HLT reconstructio is switched off
71   //
72   AliReconstruction rec;
73   rec.SetInput(input);
74   rec.SetRunVertexFinder(kFALSE);
75   rec.SetRunLocalReconstruction("HLT");
76   rec.SetRunTracking("");
77   rec.SetLoadAlignFromCDB(0);
78   rec.SetRunQA(":");
79
80   // NOTE: FillESD is a step in the AliReconstruction sequence and has
81   // nothing to do with the fact that this macro writes ESD output
82   // HLT processes the HLTOUT during FillESD and extracts data which
83   // has already been prepared. This step is currently not necessary for
84   // this macro
85   rec.SetFillESD("");
86   rec.SetOption("HLT", option);
87   rec.Run();
88 }
89
90
91