2 //aliroot -b -q rec-spd-cluster.C | tee rec-spd-cluster.log
4 void rec_spd_cluster(const char* input="./", char* opt="")
7 if(!gSystem->AccessPathName("galice.root")){
8 cerr << "please delete the galice.root or run at different place." << endl;
13 cerr << "please specify input or run without arguments" << endl;
17 ///////////////////////////////////////////////////////////////////////////////////////////////////
19 // init the HLT system in order to define the analysis chain below
21 AliHLTSystem* gHLT=AliHLTPluginBase::GetInstance();
23 ///////////////////////////////////////////////////////////////////////////////////////////////////
25 // Setting up which output to give
27 TString option="libAliHLTUtil.so libAliHLTRCU.so libAliHLTITS.so libAliHLTSample.so loglevel=0x7c chains=";
29 ///////////////////////////////////////////////////////////////////////////////////////////////////
31 // define the analysis chain to be run
34 int minddl=0x00000000;
35 int maxddl=0x00040000;
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());
53 AliHLTConfiguration cfconf(cf.Data(), "ITSClusterFinderSPD", publisher.Data(), "");
55 if (dummyInput.Length()>0) dummyInput+=" ";
59 if(ddl==0x0000000){ddl++;}else{ddl = ddl << 1;}
63 AliHLTConfiguration dummyconf("dummy", "Dummy", dummyInput.Data(), "-output_percentage 0");
67 ///////////////////////////////////////////////////////////////////////////////////////////////////
69 // Init and run the reconstruction
70 // All but HLT reconstructio is switched off
72 AliReconstruction rec;
74 rec.SetRunVertexFinder(kFALSE);
75 rec.SetRunLocalReconstruction("HLT");
76 rec.SetRunTracking("");
77 rec.SetLoadAlignFromCDB(0);
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
86 rec.SetOption("HLT", option);