]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Use the object name to create the output file name (Marian)
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Oct 2009 13:01:37 +0000 (13:01 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 1 Oct 2009 13:01:37 +0000 (13:01 +0000)
Needed for backup of the data on the PROOF

TPC/AliTPCAnalysisTaskcalib.cxx

index b5399a288983793abf4af261b7ce8fe28125369f..24880ff3518a1424fa9896a7ece76d6c0905c626 100644 (file)
@@ -234,13 +234,14 @@ void AliTPCAnalysisTaskcalib::RegisterDebugOutput(){
     job = (AliTPCcalibBase*)fCalibJobs->UncheckedAt(i);
     if (job) job->RegisterDebugOutput(fDebugOutputPath.Data());
   }
-  TFile fff("CalibObjects.root","recreate");
+  TString dsName=GetName();
+  dsName+=".root";
+  TFile fff(dsName.Data(),"recreate");
   fCalibJobs->Write("TPCCalib",TObject::kSingleKey);
   fff.Close();
   //
   // store  - copy debug output to the destination position
   // currently ONLY for local copy
-  TString dsName="CalibObjects.root";
   TString dsName2=fDebugOutputPath.Data();
   gSystem->MakeDirectory(dsName2.Data());
   dsName2+=gSystem->HostName();