fFilter->SetRecEvent(fInputEvent);
if(fMCEvent){
AliMCEventHandler *mcH = dynamic_cast<AliMCEventHandler *>(AliAnalysisManager::GetAnalysisManager()->GetMCtruthEventHandler());
+ if ( ! mcH ) {
+ AliError("Cannot get MC truth event handler");
+ return;
+ }
if(mcH &&(!mcH->InitOk())) return;
if(mcH &&(!mcH->TreeK())) return;
if(mcH &&(!mcH->TreeTR())) return;