]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/TPCLib/macros/conf-tpc-writer.C
7fc4aa44d768a0695228dbacea79720149d28bbd
[u/mrichter/AliRoot.git] / HLT / TPCLib / macros / conf-tpc-writer.C
1 // $Id$
2 /*
3  * Configuration macro defining a chain running the HLT Conformal mapping
4  * tracker embedded into AliRoot simulation.
5  * The reconstruction is done from the TPC digits.
6  *
7  * The output is written to files for cluster structures and track structures
8  * on a sector basis.
9  *
10  * Matthias.Richter@ift.uib.no
11  */
12 {
13   int iMinSlice=0; 
14   int iMaxSlice=35;
15   int iMinPart=0;
16   int iMaxPart=5;
17   TString writerInput, mergerInput;
18   for (int slice=iMinSlice; slice<=iMaxSlice; slice++) {
19     TString trackerInput;
20     for (int part=iMinPart; part<=iMaxPart; part++) {
21       TString arg, publisher, cf;
22
23       // digit publisher components
24       arg.Form("-slice %d -partition %d", slice, part);
25       publisher.Form("DP_%02d_%d", slice, part);
26       AliHLTConfiguration pubconf(publisher.Data(), "TPCDigitPublisher", NULL , arg.Data());
27
28       // cluster finder components
29       cf.Form("CF_%02d_%d", slice, part);
30       AliHLTConfiguration cfconf(cf.Data(), "TPCClusterFinderUnpacked", publisher.Data(), "pp-run timebins 446");
31       if (trackerInput.Length()>0) trackerInput+=" ";
32       trackerInput+=cf;
33     }
34     TString tracker;
35     // tracker components
36     tracker.Form("TR_%02d", slice);
37     AliHLTConfiguration trackerconf(tracker.Data(), "TPCSliceTracker", trackerInput.Data(), "-pp-run -bfield 0.5");
38
39     //add all trackers to writer input. Include if you would like all slice tracks written.
40     //if (writerInput.Length()>0) writerInput+=" ";
41     //writerInput+=tracker;
42
43     // add all clusterfinders to the writer input
44     if (writerInput.Length()>0) writerInput+=" ";
45     writerInput+=trackerInput;
46
47     // add all trackers to the GlobalMerger input
48     if (mergerInput.Length()>0) mergerInput+=" ";
49     mergerInput+=tracker;
50   }
51
52   // GlobalMerger component
53   AliHLTConfiguration mergerconf("globalmerger","TPCGlobalMerger",mergerInput.Data(),"");
54
55   if (writerInput.Length()>0) writerInput+=" ";
56   writerInput+="globalmerger";
57
58   // the writer configuration
59   AliHLTConfiguration fwconf("sink1", "FileWriter"   , writerInput.Data(), "-specfmt -subdir=event_%d -blcknofmt=_0x%x -idfmt=_0x%08x");
60 }