return kTRUE;
}
+//________________________________________________________
+Bool_t AliTRDrecoTask::Save(TObjArray *results){
+ //
+ // Store the output graphs in a ROOT file
+ // Input TObject array will not be written as Key to the file,
+ // only content itself
+ //
+
+ TDirectory *cwd = gDirectory;
+ if(!TFile::Open(Form("TRD.Result%s.root", GetName()), "RECREATE")) return kFALSE;
+
+ TIterator *iter = results->MakeIterator();
+ TObject *inObject = 0x0, *outObject = 0x0;
+ while((inObject = iter->Next())){
+ outObject = inObject->Clone();
+ outObject->Write(0x0, TObject::kSingleKey);
+ }
+ delete iter;
+ gFile->Close(); delete gFile;
+ cwd->cd();
+ return kTRUE;
+}
+
//_______________________________________________________
Bool_t AliTRDrecoTask::PostProcess()
{
virtual TObjArray* Histos() {return fContainer;}
virtual Bool_t Load(const Char_t *filename);
+ virtual Bool_t Save(TObjArray *res);
virtual Bool_t PostProcess();
virtual void SetDebugLevel(Int_t level);
virtual void SetFriends(Bool_t fr = kTRUE) {SetBit(kFriends, fr);}