if (fTrackRefStore != 0x0) return fTrackRefStore;
else {
- if (!fMCEventHandler->GetEvent(event)) {
+ if (!fMCEventHandler->LoadEvent(event)) {
AliError(Form("fails to read MC objects for event %d", event));
return 0x0;
}
if (fRecoTriggerRefStore != 0x0) return fRecoTriggerRefStore;
else {
- if (!fMCEventHandler->GetEvent(event)) {
+ if (!fMCEventHandler->LoadEvent(event)) {
AliError(Form("fails to read MC objects for event %d", event));
return 0x0;
}
ClassImp(AliMCEventHandler)
AliMCEventHandler::AliMCEventHandler() :
- AliVEventHandler(),
+ AliInputEventHandler(),
fMCEvent(new AliMCEvent()),
fFileE(0),
fFileK(0),
}
AliMCEventHandler::AliMCEventHandler(const char* name, const char* title) :
- AliVEventHandler(name, title),
+ AliInputEventHandler(name, title),
fMCEvent(new AliMCEvent()),
fFileE(0),
fFileK(0),
return kTRUE;
}
-Bool_t AliMCEventHandler::GetEvent(Int_t iev)
+Bool_t AliMCEventHandler::LoadEvent(Int_t iev)
{
// Load the event number iev
//
return kFALSE;
}
- Bool_t result = GetEvent(entry);
+ Bool_t result = LoadEvent(entry);
if (fSubsidiaryHandlers) {
TIter next(fSubsidiaryHandlers);
-// -*- mode: C++ -*-
+ // -*- mode: C++ -*-
#ifndef ALIMCEVENTHANDLER_H
#define ALIMCEVENTHANDLER_H
/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
//
// Origin: Andreas Morsch, CERN, andreas.morsch@cern.ch
//-------------------------------------------------------------------------
-#include "AliVEventHandler.h"
+#include "AliInputEventHandler.h"
#include "AliHeader.h"
#include <TExMap.h>
-class AliMCEventHandler : public AliVEventHandler
+class AliMCEventHandler : public AliInputEventHandler
{
public:
virtual Bool_t Terminate();
virtual Bool_t TerminateIO();
virtual void ResetIO();
- virtual Bool_t GetEvent(Int_t iev);
+ virtual Bool_t LoadEvent(Int_t iev);
virtual void SetReadTR(Bool_t flag) { fReadTR = flag; }
virtual void AddSubsidiaryHandler(AliMCEventHandler* handler);
virtual void SetNumberOfEventsInContainer(Int_t nev) {fEventsInContainer = nev;}
virtual void SetPreReadMode(PreReadMode_t mode) {fPreReadMode = mode;}
//
- AliMCEvent* MCEvent() const {return fMCEvent;}
+ AliMCEvent* MCEvent() const {return fMCEvent;}
TTree* TreeTR() const {return fTreeTR;}
TTree* TreeK() const {return fTreeK;}
virtual TTree* GetTree() const {return fTreeE;}