using std::endl;
using std::cout;
+using std::ios;
+using std::setiosflags;
+using std::setprecision;
ClassImp(AliAnalysisDataContainer)
//______________________________________________________________________________
for (Int_t i=0; i<indent; i++) ind += " ";
TString opt(option);
opt.ToLower();
+ TString ctype = "Container";
+ if (IsExchange()) ctype = "Exchange container";
Bool_t dep = (opt.Contains("dep"))?kTRUE:kFALSE;
if (!dep) {
- printf("%sContainer: %s type: %s POST_LOOP=%i", ind.Data(), GetName(), GetTitle(), IsPostEventLoop());
- if (fProducer)
- printf("%s = Data producer: task %s",ind.Data(),fProducer->GetName());
- else
- printf("%s= No data producer",ind.Data());
- printf("%s = Consumer tasks: ", ind.Data());
- if (!fConsumers || !fConsumers->GetEntriesFast()) printf("-none-\n");
- else printf("\n");
+ if (IsPostEventLoop()) printf("%s%s: %s DATA TYPE: %s POST_LOOP task\n", ind.Data(), ctype.Data(), GetName(), GetTitle());
+ else printf("%s%s: %s DATA TYPE: %s\n", ind.Data(), ctype.Data(), GetName(), GetTitle());
+ if (!fProducer)
+// printf("%s = Data producer: task %s\n",ind.Data(),fProducer->GetName());
+// else
+ printf("%s= Not connected to a data producer\n",ind.Data());
+ if (fConsumers && fConsumers->GetEntriesFast())
+ printf("%s = Client tasks indented below:\n", ind.Data());
}
- if (fFolderName.Length())
- printf("Filename: %s folder: %s\n", fFileName.Data(), fFolderName.Data());
- else
- printf("Filename: %s\n", fFileName.Data());
+ if (!IsExchange()) {
+ if (!fFolderName.IsNull())
+ printf("%s = Filename: %s folder: %s\n", ind.Data(),fFileName.Data(), fFolderName.Data());
+ else
+ if (!fFileName.IsNull()) printf("%s = Filename: %s\n", ind.Data(),fFileName.Data());
+ }
+ ((AliAnalysisDataContainer*)this)->SetTouched(kTRUE);
TIter next(fConsumers);
AliAnalysisTask *task;
while ((task=(AliAnalysisTask*)next())) task->PrintTask(option, indent+3);
return pack;
}
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
- if (mgr->GetDebugLevel() > 1) printf(" ExportData: Wrapping data %s for container %s\n", fData->GetName(),GetName());
+ if (mgr && mgr->GetDebugLevel() > 1) printf(" ExportData: Wrapping data %s for container %s\n", fData->GetName(),GetName());
pack = new AliAnalysisDataWrapper(fData);
pack->SetName(fName.Data());
return pack;
return;
}
AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
- if (mgr->GetDebugLevel() > 1) printf(" ImportData: Unwrapping data %s for container %s\n", fData->GetName(),GetName());
+ if (mgr && mgr->GetDebugLevel() > 1) printf(" ImportData: Unwrapping data %s for container %s\n", fData->GetName(),GetName());
fDataReady = kTRUE;
// Imported wrappers do not own data anymore (AG 13-11-07)
pack->SetDeleteData(kFALSE);
}
//______________________________________________________________________________
-void AliAnalysisFileDescriptor::SavePrimitive(ostream &out, Option_t *)
+void AliAnalysisFileDescriptor::SavePrimitive(std::ostream &out, Option_t *)
{
// Stream info to file
const Double_t megabyte = 1048576.;
out << "image " << fImage << endl;
out << "nreplicas " << fNreplicas << endl;
out << "openstamp " << fOpenedAt << endl;
- out << setiosflags(ios::fixed) << setprecision(3);
+ std::ios_base::fmtflags original_flags = out.flags();
+ out << setiosflags(std::ios::fixed) << std::setprecision(3);
out << "opentime " << fOpenTime << endl;
out << "runtime " << fProcessingTime << endl;
out << "filesize " << fSize/megabyte << endl;
out << "readsize " << fReadBytes/megabyte << endl;
out << "throughput " << fThroughput << endl;
+ out.flags(original_flags);
}
-
+