#include "AliMUONTrack.h"
#include "AliMUONESDInterface.h"
#include "AliESDMuonTrack.h"
-#include "AliMUONRecoParam.h"
#include "AliESDEvent.h"
#include "TTree.h"
#include "TString.h"
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);
delete esdEvent;
- delete recoParam;
-
esdFile->Close();
}
Int_t iEvent = 0;
while (fgRawReader->NextEvent())
{
- if (iEvent != gAliEveEvent->GetEventId())
+ if (iEvent != AliEveEventManager::GetMaster()->GetEventId())
{
iEvent++;
continue;