TFile *output = new TFile(outputFileName->Data(),"RECREATE");
//output->WriteObject(fHistList, "cobjLYZEP","SingleKey");
fHistList->SetName("cobjLYZEP");
+ fHistList->SetOwner(kTRUE);
fHistList->Write(fHistList->GetName(), TObject::kSingleKey);
delete output;
}
TFile *output = new TFile(outputFileName.Data(),"RECREATE");
//output->WriteObject(fHistList, "cobjLYZEP","SingleKey");
fHistList->SetName("cobjLYZEP");
+ fHistList->SetOwner(kTRUE);
fHistList->Write(fHistList->GetName(), TObject::kSingleKey);
delete output;
}