]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EVE/EveDet/AliEveMUONData.cxx
e AliRieman for Rieman fits (temporary)
[u/mrichter/AliRoot.git] / EVE / EveDet / AliEveMUONData.cxx
index 88297c18915c0388544c34cd74cd0b59dddaf299..ecea9b39c7fcff826243e24efb63349fdcafdd92 100644 (file)
@@ -28,7 +28,6 @@
 #include "AliMUONTrack.h"
 #include "AliMUONESDInterface.h"
 #include "AliESDMuonTrack.h"
-#include "AliMUONRecoParam.h"
 #include "AliESDEvent.h"
 #include "TTree.h"
 #include "TString.h"
@@ -271,20 +270,16 @@ void AliEveMUONData::LoadRecPointsFromESD(Char_t *fileName)
   Int_t detElemId, chamber, nTrackParam;
   Double_t clsX, clsY, clsZ, charge;
   
-  if (esdTree->GetEvent(gAliEveEvent->GetEventId()) <= 0) {
-    cout << "fails to read ESD object for event " << gAliEveEvent->GetEventId() << endl;
+  if (esdTree->GetEvent(AliEveEventManager::GetMaster()->GetEventId()) <= 0) {
+    cout << "fails to read ESD object for event " << AliEveEventManager::GetMaster()->GetEventId() << endl;
     return;
   }
     
-  AliMUONRecoParam* recoParam = AliMUONRecoParam::GetCosmicParam();
-  
-  cout << "FIXME: I should get the RecoParams from the OCDB at this point !" << endl;
-  
   Int_t nTracks = Int_t(esdEvent->GetNumberOfMuonTracks());
   for (Int_t iTrack = 0; iTrack < nTracks; iTrack++) {
     esdTrack = esdEvent->GetMuonTrack(iTrack);
     if (!esdTrack->ClustersStored()) continue;
-    AliMUONESDInterface::ESDToMUON(recoParam,*esdTrack,muonTrack);
+    AliMUONESDInterface::ESDToMUON(*esdTrack,muonTrack);
     nTrackParam = muonTrack.GetTrackParamAtCluster()->GetEntries();
     for(Int_t iCluster = 0; iCluster < nTrackParam; iCluster++) {
       trackParam = (AliMUONTrackParam *) muonTrack.GetTrackParamAtCluster()->At(iCluster);
@@ -304,8 +299,6 @@ void AliEveMUONData::LoadRecPointsFromESD(Char_t *fileName)
 
   delete esdEvent;
   
-  delete recoParam;
-  
   esdFile->Close();
 
 }
@@ -410,7 +403,7 @@ void AliEveMUONData::LoadRaw(TString fileName)
   Int_t iEvent = 0;
   while (fgRawReader->NextEvent())
   {
-    if (iEvent != gAliEveEvent->GetEventId())
+    if (iEvent != AliEveEventManager::GetMaster()->GetEventId())
     {
       iEvent++;
       continue;