From d963c26159ea92c48a76b3521538812aec23b057 Mon Sep 17 00:00:00 2001 From: hristov Date: Thu, 14 Jun 2001 13:49:22 +0000 Subject: [PATCH] Write a TreeD in SDigits2Digits method (needed to be compatible with alirun script) --- MUON/AliMUON.cxx | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/MUON/AliMUON.cxx b/MUON/AliMUON.cxx index bde25cc174e..dbd928e756e 100644 --- a/MUON/AliMUON.cxx +++ b/MUON/AliMUON.cxx @@ -14,6 +14,9 @@ **************************************************************************/ /* $Log$ +Revision 1.51 2001/05/31 10:19:52 morsch +Fix for new AliRun::RunReco(). + Revision 1.50 2001/05/16 14:57:17 alibrary New files for folders and Stack @@ -854,10 +857,22 @@ void AliMUON::SetNsec(Int_t id, Int_t nsec) //___________________________________________ void AliMUON::SDigits2Digits() { - if (fMerger) { - fMerger->Init(); - fMerger->Digitise(); + +// write TreeD here + + if (!fMerger) { + if (gAlice->GetDebug()>0) { + cerr<<"AliMUON::SDigits2Digits: create default AliMUONMerger "<Init(); + fMerger->Digitise(); + char hname[30]; + sprintf(hname,"TreeD%d",gAlice->GetHeader()->GetEvent()); + gAlice->TreeD()->Write(hname,TObject::kOverwrite); + gAlice->TreeD()->Reset(); } //___________________________________________ -- 2.31.1