]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWG4/AliCaloTrackESDReader.cxx
V0 selection added.
[u/mrichter/AliRoot.git] / PWG4 / AliCaloTrackESDReader.cxx
index 6ed8ac0307f843a149de0bf049880bbda1e6cb79..e13e3612b50c345833dfdac18da41527f133a1c2 100644 (file)
  **************************************************************************/
 /* $Id:  $ */
 
-/* History of cvs commits:
- *
- * $Log$
- *
- *
- */
-
 //_________________________________________________________________________
 // Class for reading data (ESDs) in order to do prompt gamma 
 // or other particle identification and correlations
@@ -302,7 +295,12 @@ void AliCaloTrackESDReader::GetVertex(Double_t  v[3]) {
 //____________________________________________________________________________
 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);
+
 }