fCalibJobs(0),
fESD(0),
fESDfriend(0),
- fDebugOutputPath()
+ fDebugOutputPath("")
{
//
// default constructor
fCalibJobs(0),
fESD(0),
fESDfriend(0),
- fDebugOutputPath()
+ fDebugOutputPath("")
{
//
// Constructor
//Printf("ERROR: fESDfriend not available");
return;
}
+ if (fESDfriend->TestSkipBit()) return;
Int_t n=fESD->GetNumberOfTracks();
Process(fESD);
Int_t run = fESD->GetRunNumber();
AliESDtrack *track=fESD->GetTrack(i);
TObject *calibObject=0;
AliTPCseed *seed=0;
+ if (!friendTrack) continue;
for (Int_t j=0;(calibObject=friendTrack->GetCalibObject(j));++j)
if ((seed=dynamic_cast<AliTPCseed*>(calibObject)))
break;
//
//
//
- OpenFile(0, "RECREATE");
+ //OpenFile(0, "RECREATE");
+
+ PostData(0,fCalibJobs);
}
+
void AliTPCAnalysisTaskcalib::Terminate(Option_t */*option*/) {
//
// Terminate
// on the slaves before sending data
//
Terminate("slave");
- RegisterDebugOutput();
+ if(!fDebugOutputPath.IsNull()) {
+ 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();