**************************************************************************/
/* $Id: $ */
-/* History of cvs commits:
- *
- * $Log$
- *
- *
- */
-
//_________________________________________________________________________
// Class for reading data (ESDs) in order to do prompt gamma
// or other particle identification and correlations
//____________________________________________________________________________
void AliCaloTrackESDReader::SetInputEvent(TObject* esd, TObject* aod, TObject* mc) {
// Connect the data pointers
+
+ if(strcmp(esd->GetName(),"AliESDEvent"))
+ AliFatal(Form("Wrong reader, here only ESDs. Input name: %s != AliESDEvent \n",esd->GetName()));
+
SetESD((AliESDEvent*) esd);
SetAOD ((AliAODEvent*) aod);
SetMC((AliMCEvent*) mc);
+
}