]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Remove writing of a TreeD (now in AliMUON::SDigits2Digits). Run gAlice->SDigits2Digit...
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jun 2001 13:51:05 +0000 (13:51 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 14 Jun 2001 13:51:05 +0000 (13:51 +0000)
MUON/MUONdigit.C

index 8bee2c001d736e3a4b6ab1cbb270eff5d0e4f53c..9656d2debcdecc7e401db8ef508a6c7febf53fd9 100644 (file)
@@ -59,9 +59,10 @@ void MUONdigit (Int_t evNumber1=0, Int_t evNumber2=0, Int_t ibg=0, Int_t bgr=10)
 
    if (!gAlice) {
        gAlice = (AliRun*)file->Get("gAlice");
-       if (gAlice) printf("AliRun object found on file\n");
+       if (gAlice) cout<<"AliRun object found on file"<<endl;
        if (!gAlice) gAlice = new AliRun("gAlice","Alice test program");
    }
+
    AliMUON *pMUON  = (AliMUON*) gAlice->GetModule("MUON");
    if (pMUON) {
 // creation
@@ -90,13 +91,9 @@ void MUONdigit (Int_t evNumber1=0, Int_t evNumber2=0, Int_t ibg=0, Int_t bgr=10)
            merger->SetBackgroundEventNumber(nbgr_ev);
        }
 
-       gAlice->SDigits2Digits();
+       gAlice->SDigits2Digits("MUON");
 
-       char hname[30];
-       sprintf(hname,"TreeD%d",nev);
-       gAlice->TreeD()->Write(hname);
-       // reset tree
-       gAlice->TreeD()->Reset();
+// Tree writing was moved to AliMUON::SDigits2Digits();
 
     }   // event loop 
 }