message: add protection if event header is not available
diff: @@ -628,6 +628,12 @@ Bool_t AliCaloTrackReader::ComparePtHardAndJetPt()
  {
  //printf("AliCaloTrackReader::ComparePtHardAndJetPt() - GenHeaderName : %s\n",GetGenEventHeader()->ClassName());
  + if ( !GetGenEventHeader() )
  + {
  + AliError("Skip event, event header is not available!");
  + return kFALSE;
  + }
  +
  if ( !strcmp(GetGenEventHeader()->ClassName(), "AliGenPythiaEventHeader") )
  {
  TParticle * jet = 0;
  @@ -668,6 +674,12 @@ Bool_t AliCaloTrackReader::ComparePtHardAndJetPt()
  //____________________________________________________
  Bool_t AliCaloTrackReader::ComparePtHardAndClusterPt()
  {
  + if ( !GetGenEventHeader() )
  + {
  + AliError("Skip event, event header is not available!");
  + return kFALSE;
  + }
  +
  if ( !strcmp(GetGenEventHeader()->ClassName(), "AliGenPythiaEventHeader") )
  {
  AliGenPythiaEventHeader* pygeh= (AliGenPythiaEventHeader*) GetGenEventHeader();
  