message: add debug for event number and check event selection number
diff: #include "AliPDG.h"
  #include "AliAnalysisManager.h"
  #include "AliInputEventHandler.h"
  +#include "AliAODInputHandler.h"
  #include "AliLog.h"
  /// \cond CLASSIMP
  @@ -182,10 +183,25 @@ void AliAnalysisTaskCaloTrackCorrelation::UserExec(Option_t */*option*/)
  {
  if ( !fAna->IsEventProcessed() ) return;
  - if ( (fLastEvent > 0 && Entry() > fLastEvent ) ||
  - (fFirstEvent > 0 && Entry() < fFirstEvent) ) return ;
  + Int_t eventN = Entry();
  - AliDebug(1,Form("Begin event %d", (Int_t) Entry()));
  + // Entry() does not work for AODs
  + if ( eventN <= 0 )
  + {
  + AliAODInputHandler* aodIH = dynamic_cast<AliAODInputHandler*>
  + ((AliAnalysisManager::GetAnalysisManager())->GetInputEventHandler());
  +
  + if ( aodIH ) eventN = aodIH->GetReadEntry();
  + }
  +
  + if ( (fLastEvent > 0 && eventN > fLastEvent ) ||
  + (fFirstEvent > 0 && eventN < fFirstEvent) ) return ;
  +
  + AliDebug(1,Form("Begin: Event %d - Entry %d - (First,Last)=(%d,%d)",
  + eventN, (Int_t) Entry(), fFirstEvent, fLastEvent));
  +
  + //printf("AliAnalysisTaskCaloTrackCorrelation::UserExec() - Event %d - Entry %d - (First,Last)=(%d,%d) \n",
  + // eventN, (Int_t) Entry(), fFirstEvent, fLastEvent);
  // Get the type of data, check if type is correct
  Int_t datatype = fAna->GetReader()->GetDataType();
  