ROOT logo
// $Id$
/**
 * Configuration for the rec-krypton-hist.C macro
 */
{
  int iMinSlice=21; 
  int iMaxSlice=21;
  int iMinPart=1;
  int iMaxPart=1;

  TString arg, publisher, noise, noiseInput, krypton,kryptonAP, clusHist,clusDump, rootFileWriter, rootFileWriter2, histoInput1, histoInput2, kelly, clusterDumpInput, clusterDumpInput2,activepads, activePadsInput;
  
  for (int slice=iMinSlice; slice<=iMaxSlice; slice++) {
    for (int part=iMinPart; part<=iMaxPart; part++) {
      
      // raw data publisher components
      int ddlno=768;
      if (part>1) ddlno+=72+4*slice+(part-2);
      else ddlno+=2*slice+part;
      arg.Form("-minid %d -datatype 'DDL_RAW ' 'TPC '  -dataspec 0x%02x%02x%02x%02x -verbose", ddlno, slice, slice, part, part);

      publisher.Form("DP_%02d_%d", slice, part);
      AliHLTConfiguration pubconf(publisher.Data(), "AliRawReaderPublisher", NULL, arg.Data());
      
      krypton.Form("KF_%02d_%d", slice, part);
      AliHLTConfiguration kryptonconf(krypton.Data(), "TPCKryptonClusterFinder", publisher.Data(), "");
      
      activepads.Form("AP_%02d_%d", slice, part);
      activePadsInput+=publisher.Data();
      activePadsInput+=" ";
      activePadsInput+=krypton.Data();
      AliHLTConfiguration activepadsconf(activepads.Data(), "AltroChannelSelector", activePadsInput.Data(),"");
      activePadsInput="";
      kryptonAP.Form("KFAP_%02d_%d", slice, part);
      AliHLTConfiguration kryptonconf2(kryptonAP.Data(), "TPCKryptonClusterFinder", activepads.Data(), "");

      if(histoInput1.Length()>0) histoInput1+=" ";
      histoInput1+=krypton;

      if(clusterDumpInput.Length()>0) clusterDumpInput+=" ";
      clusterDumpInput+=krypton;

      if(clusterDumpInput2.Length()>0) clusterDumpInput2+=" ";
      clusterDumpInput2+=kryptonAP;


    } // end of partition loop

    clusHist.Form("HG_%02d", slice);
    AliHLTConfiguration clusHistconf(clusHist.Data(), "TPCClusterHisto", histoInput1.Data(), "");
    histoInput1="";
    
    if (histoInput2.Length()>0) histoInput2+=" ";
    histoInput2+=clusHist;

 } // end of slice loop

  TString argdump;
  argdump.Form("-directory /home/kenneth/SimpleComponentWrapper/aliroot_configs/100PerEvent/clusterDump");
  cout<<"clusterDumpInput    "<<clusterDumpInput<<endl;
  AliHLTConfiguration clusDumpconf("dumpOut", "TPCClusterDump", clusterDumpInput.Data(),"-directory-clusterdump /home/kenneth/SimpleComponentWrapper/aliroot_configs/100PerEvent/clusterDump/");

  TString argdump2;
  argdump2.Form("-directory-clusterdump /home/kenneth/SimpleComponentWrapper/aliroot_configs/100PerEvent/clusterDumpAP/");

  AliHLTConfiguration clusDumpconf2("dumpOut2", "TPCClusterDump", clusterDumpInput2.Data(), argdump2.Data());

  if (histoInput2.Length()>0) histoInput2+=" ";
  histoInput2+="dumpOut";

  if (histoInput2.Length()>0) histoInput2+=" ";
  histoInput2+="dumpOut2";

  AliHLTConfiguration histconf("hist", "TPCHistogramHandler", histoInput2.Data(),"-sum-krypton-histograms 1");
  
  
  //root file writer component
  rootFileWriter.Form("-datafile %s","partitionHist.root");
  AliHLTConfiguration rootFileconf("sink1", "ROOTFileWriter", "hist", rootFileWriter.Data());

}
 conf-tpc-krypton-hist.C:1
 conf-tpc-krypton-hist.C:2
 conf-tpc-krypton-hist.C:3
 conf-tpc-krypton-hist.C:4
 conf-tpc-krypton-hist.C:5
 conf-tpc-krypton-hist.C:6
 conf-tpc-krypton-hist.C:7
 conf-tpc-krypton-hist.C:8
 conf-tpc-krypton-hist.C:9
 conf-tpc-krypton-hist.C:10
 conf-tpc-krypton-hist.C:11
 conf-tpc-krypton-hist.C:12
 conf-tpc-krypton-hist.C:13
 conf-tpc-krypton-hist.C:14
 conf-tpc-krypton-hist.C:15
 conf-tpc-krypton-hist.C:16
 conf-tpc-krypton-hist.C:17
 conf-tpc-krypton-hist.C:18
 conf-tpc-krypton-hist.C:19
 conf-tpc-krypton-hist.C:20
 conf-tpc-krypton-hist.C:21
 conf-tpc-krypton-hist.C:22
 conf-tpc-krypton-hist.C:23
 conf-tpc-krypton-hist.C:24
 conf-tpc-krypton-hist.C:25
 conf-tpc-krypton-hist.C:26
 conf-tpc-krypton-hist.C:27
 conf-tpc-krypton-hist.C:28
 conf-tpc-krypton-hist.C:29
 conf-tpc-krypton-hist.C:30
 conf-tpc-krypton-hist.C:31
 conf-tpc-krypton-hist.C:32
 conf-tpc-krypton-hist.C:33
 conf-tpc-krypton-hist.C:34
 conf-tpc-krypton-hist.C:35
 conf-tpc-krypton-hist.C:36
 conf-tpc-krypton-hist.C:37
 conf-tpc-krypton-hist.C:38
 conf-tpc-krypton-hist.C:39
 conf-tpc-krypton-hist.C:40
 conf-tpc-krypton-hist.C:41
 conf-tpc-krypton-hist.C:42
 conf-tpc-krypton-hist.C:43
 conf-tpc-krypton-hist.C:44
 conf-tpc-krypton-hist.C:45
 conf-tpc-krypton-hist.C:46
 conf-tpc-krypton-hist.C:47
 conf-tpc-krypton-hist.C:48
 conf-tpc-krypton-hist.C:49
 conf-tpc-krypton-hist.C:50
 conf-tpc-krypton-hist.C:51
 conf-tpc-krypton-hist.C:52
 conf-tpc-krypton-hist.C:53
 conf-tpc-krypton-hist.C:54
 conf-tpc-krypton-hist.C:55
 conf-tpc-krypton-hist.C:56
 conf-tpc-krypton-hist.C:57
 conf-tpc-krypton-hist.C:58
 conf-tpc-krypton-hist.C:59
 conf-tpc-krypton-hist.C:60
 conf-tpc-krypton-hist.C:61
 conf-tpc-krypton-hist.C:62
 conf-tpc-krypton-hist.C:63
 conf-tpc-krypton-hist.C:64
 conf-tpc-krypton-hist.C:65
 conf-tpc-krypton-hist.C:66
 conf-tpc-krypton-hist.C:67
 conf-tpc-krypton-hist.C:68
 conf-tpc-krypton-hist.C:69
 conf-tpc-krypton-hist.C:70
 conf-tpc-krypton-hist.C:71
 conf-tpc-krypton-hist.C:72
 conf-tpc-krypton-hist.C:73
 conf-tpc-krypton-hist.C:74
 conf-tpc-krypton-hist.C:75
 conf-tpc-krypton-hist.C:76
 conf-tpc-krypton-hist.C:77
 conf-tpc-krypton-hist.C:78
 conf-tpc-krypton-hist.C:79
 conf-tpc-krypton-hist.C:80
 conf-tpc-krypton-hist.C:81
 conf-tpc-krypton-hist.C:82