#include <TTask.h>
#include <TGeoManager.h>
#include "AliRun.h"
+#include "AliMC.h"
#include "AliRunLoader.h"
#include "AliLoader.h"
#include "AliConfig.h"
// Loop through all the tracks in the tree
for (Int_t iTrk = 0; iTrk < nTrk; iTrk++) {
- gAlice->ResetHits();
+ gAlice->GetMCApp()->ResetHits();
hitTree->GetEvent(iTrk);
if (!fTRD->Hits()) {