When the file specified by an output container must create a proof dataset, the name...
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Nov 2009 13:00:27 +0000 (13:00 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 24 Nov 2009 13:00:27 +0000 (13:00 +0000)
      // container file name -> AliAOD.root
      container->SetRegisterDataset();
      container->SetTitle("test1");
   will create the dataset:
   .../<proof_username>/AliAODtest1

ANALYSIS/AliAnalysisManager.cxx

index 2c461010cdc142bcedeb21fa94000a3e14821063..cdccc6739a951c6a6c28b517d42548aeb4b3cacd 100644 (file)
@@ -1372,7 +1372,7 @@ TFile *AliAnalysisManager::OpenProofFile(AliAnalysisDataContainer *cont, const c
   } else {
     if (cont->IsRegisterDataset()) {
       TString dset_name = filename;
-      dset_name.ReplaceAll(".root", "");
+      dset_name.ReplaceAll(".root", cont->GetTitle());
       dset_name.ReplaceAll(":","_");
       if (fDebug>1) printf("Booking dataset: %s\n", dset_name.Data());
       line = Form("TProofOutputFile *pf = new TProofOutputFile(\"%s\", \"DROV\", \"%s\");", filename.Data(), dset_name.Data());