3 * Benchmark macro for transportation of AliExternalTrackParam arrays.
7 * aliroot -b -q bench-externaltrackparam.C | tee bench-externaltrackparam.log
11 * @ingroup alihlt_benchmark
12 * @author Matthias.Richter@ift.uib.no
14 void bench_externaltrackparam_sequence(int events=100)
16 ///////////////////////////////////////////////////////////////////////////////////////////////////
18 // init the HLT system in order to define the analysis chain below
20 AliHLTSystem* gHLT=AliHLTPluginBase::GetInstance();
21 gHLT->SetGlobalLoggingLevel(0x7c);
23 ///////////////////////////////////////////////////////////////////////////////////////////////////
25 // define the analysis chain to be run
29 TString lastPublisher;
31 for (int pub=0; pub<levels; pub++) {
33 // publishers of AliExternalTrackParam arrays
34 publisher.Form("PUB_%02d", pub);
35 arg="-minsize 9000 -maxsize 10000";
36 //arg="-minsize 1 -maxsize 2";
38 // first 10 ones are TClonesArrays with the corresponding compression
39 arg+=" -tclonesarray";
41 arg+=" -object-compression="; arg+=pub;
43 // last one is a c-array without compression
47 arg+=" -rangeoffset -1000 -rangemodulo "; arg+=events/10;
48 arg+=" -verbosity "; arg+=verbosity;
49 AliHLTConfiguration publisherconf(publisher.Data(), "BenchmarkAliExternalTrackParam", lastPublisher.Data(), arg.Data());
50 lastPublisher=publisher;
53 arg=" -verbosity "; arg+=verbosity;
54 AliHLTConfiguration dumpconf("sink1", "BenchmarkAliExternalTrackParam" , lastPublisher.Data(), "-verbosity 1");
56 AliHLTConfiguration statconf("stat", "StatisticsCollector", /*dumpInput.Data()*/"sink1", "");
58 AliHLTConfiguration writer("statwriter", "ROOTFileWriter" , "stat", "-datafile HLT.statistics.root -concatenate-events -overwrite");
60 ///////////////////////////////////////////////////////////////////////////////////////////////////
62 // Init and run the chain
64 gHLT->LoadComponentLibraries("libAliHLTBenchmark.so libAliHLTUtil.so");
65 gHLT->BuildTaskList("statwriter");