#include <TSystem.h>
#include <TVirtualMC.h>
#include <TGeoManager.h>
+#include <TTree.h>
//
#include "AliLog.h"
#include "AliDetector.h"
{
TFolder* evfold = fRunLoader->GetEventFolder();
TFolder* modfold = dynamic_cast<TFolder*>(evfold->FindObjectAny(AliConfig::GetModulesFolderName()));
+ if(!modfold) AliFatal(Form("Folder %s not found\n",AliConfig::GetModulesFolderName().Data()));
TIter next(fModules);
AliModule *mod;
while((mod = (AliModule*)next()))
TString evfoldname;
TFolder* evfold = fRunLoader->GetEventFolder();
if (evfold) evfoldname = evfold->GetName();
- else AliWarning("Did not get Event Folder from Run Loader");
+ else AliFatal("Did not get Event Folder from Run Loader");
if ( fRunLoader->GetAliRun() )
{//if alrun already exists in folder