]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/MUONdisplay.C
04-mar-2004 NvE Functionality of AliObjMatrix extended to provide the number of refer...
[u/mrichter/AliRoot.git] / MUON / MUONdisplay.C
index b742ea8a5885ef213a4ab5124305a053c733932c..08672ffaf57fa6a8eb740c077eda07989022f2e4 100644 (file)
@@ -15,24 +15,14 @@ MUONdisplay (Int_t nevent=0, TString fileName="galice.root") {
   MUONLoader->LoadDigits("READ");
   MUONLoader->LoadRecPoints("READ");
 
-  if (RunLoader->GetAliRun() == 0x0) RunLoader->LoadgAlice();
+  //  if (RunLoader->GetAliRun() == 0x0) 
+  RunLoader->LoadgAlice();
   gAlice = RunLoader->GetAliRun();
 
-  // Getting Module MUON  
-  AliMUON * MUON  = (AliMUON *) gAlice->GetDetector("MUON");
-  if (!MUON) {
-    Error("MUONdisplay","Module MUON not found in the input file");
-    return;
-  }
-  // Getting Muon data
-  AliMUONData * muondata = MUON->GetMUONData(); 
-  muondata->SetLoader(MUONLoader);
-  muondata->SetTreeAddress("H,D,RC,GLT");
 
 // Create Event Display object
-   AliMUONDisplay *muondisplay = new AliMUONDisplay(750);
-
-// Display first event
+   AliMUONDisplay *muondisplay = new AliMUONDisplay(750, MUONLoader);
    RunLoader->GetEvent(nevent);
    muondisplay->ShowNextEvent(0);
 }