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 gSystem->Load("libHLTrec.so");
22 AliHLTSystem* gHLT=AliHLTReconstructorBase::GetInstance();
24 ///////////////////////////////////////////////////////////////////////////////////////////////////
26 // Setting up which output to give
28 TString option="libAliHLTUtil.so libAliHLTRCU.so libAliHLTITS.so libAliHLTSample.so loglevel=0x7c chains=";
30 ///////////////////////////////////////////////////////////////////////////////////////////////////
32 // define the analysis chain to be run
35 int minddl=0x00000000;
36 int maxddl=0x00040000;
41 TString dummyInput="";
42 for(int ddl=minddl;ddl<=maxddl;){
43 TString arg, publisher, cf;
44 //arg.Form("-minid %d -datatype 'DDL_RAW ' 'ITS ' -dataspec 0x%02x%02x%02x%02x -verbose", ddl, 00, 00, 00, 00);
45 //arg.Form("-detector ITSSPD -skipempty -datatype 'DDL_RAW ' 'ITS ' -verbose");
46 //arg.Form("-minid %d -datatype 'DDL_RAW ' 'TPC ' -dataspec 0x%02x%02x%02x%02x -verbose", ddlno, slice, slice, part, part);
47 //arg.Form("-minid %d -datatype 'DDL_RAW ' 'ISPD ' -dataspec 0x%08x -verbose",ddlno, ddl);
48 //arg.Form("-detector ITSSPD -datatype 'DDL_RAW ' 'ISPD ' -skipempty -dataspec 0x%08x -verbose",ddl);
49 arg.Form("-minid %d -datatype 'DDL_RAW ' 'ISPD ' -dataspec 0x%08x -verbose",ddlno, ddl);
50 publisher.Form("DP_%d", ddl);
51 AliHLTConfiguration pubconf(publisher.Data(), "AliRawReaderPublisher", NULL , arg.Data());
54 AliHLTConfiguration cfconf(cf.Data(), "ITSClusterFinderSPD", publisher.Data(), "");
56 if (dummyInput.Length()>0) dummyInput+=" ";
60 if(ddl==0x0000000){ddl++;}else{ddl = ddl << 1;}
64 AliHLTConfiguration dummyconf("dummy", "Dummy", dummyInput.Data(), "-output_percentage 0");
68 ///////////////////////////////////////////////////////////////////////////////////////////////////
70 // Init and run the reconstruction
71 // All but HLT reconstructio is switched off
73 AliReconstruction rec;
75 rec.SetRunVertexFinder(kFALSE);
76 rec.SetRunLocalReconstruction("HLT");
77 rec.SetRunTracking("");
78 rec.SetLoadAlignFromCDB(0);
81 // NOTE: FillESD is a step in the AliReconstruction sequence and has
82 // nothing to do with the fact that this macro writes ESD output
83 // HLT processes the HLTOUT during FillESD and extracts data which
84 // has already been prepared. This step is currently not necessary for
87 rec.SetOption("HLT", option);