message: recover bkg data event vertex when checking pure MC event
diff: @@ -53,7 +53,15 @@ AliCaloTrackAODReader::AliCaloTrackAODReader() :
  //_________________________________________________________
  Bool_t AliCaloTrackAODReader::CheckForPrimaryVertex() const
  {
  - AliAODEvent * aodevent = dynamic_cast<AliAODEvent*>(fInputEvent);
  + AliAODEvent * aodevent = NULL;
  + // In case of analysis of pure MC event used in embedding
  + // get bkg PbPb event since cuts for embedded event are based on
  + // data vertex and not on pp simu vertex
  + if ( fEmbeddedEvent[1] ) // Input event is MC
  + aodevent = dynamic_cast<AliAODEvent*>(((AliAnalysisManager::GetAnalysisManager())->GetInputEventHandler())->GetEvent());
  + else
  + aodevent = dynamic_cast<AliAODEvent*>(fInputEvent);
  +
  if ( !aodevent ) return kFALSE;
  if ( aodevent->GetPrimaryVertex() != NULL )
  