X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=EVE%2Falice-macros%2Fevent_next.C;h=179816e828fc72ab42995ee522466a80139c5cc7;hb=975877980e1d03fa9cdb670253fa9415d4b6c03d;hp=fa02e49148e80b5317c60c61f1d4587fba795fe2;hpb=51346b82dbc474790b0d56deccb62d2bb40ccdfe;p=u%2Fmrichter%2FAliRoot.git diff --git a/EVE/alice-macros/event_next.C b/EVE/alice-macros/event_next.C index fa02e49148e..179816e828f 100644 --- a/EVE/alice-macros/event_next.C +++ b/EVE/alice-macros/event_next.C @@ -6,11 +6,16 @@ * See http://aliceinfo.cern.ch/Offline/AliRoot/License.html for * * full copyright notice. * **************************************************************************/ + +#if !defined(__CINT__) || defined(__MAKECINT__) +#include +#endif + void event_next() { - if(gEvent == 0) { - printf("AliEveEventManager not set!\n"); + if (AliEveEventManager::GetMaster() == 0) { + printf("AliEveEventManager is not initialized!\n"); return; } - gEvent->NextEvent(); + AliEveEventManager::GetMaster()->NextEvent(); }