]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PWGGA/EMCALTasks/AliAnalysisTaskEMCALClusterizeFast.cxx
New base class
[u/mrichter/AliRoot.git] / PWGGA / EMCALTasks / AliAnalysisTaskEMCALClusterizeFast.cxx
index c2def5b04782861162cbd2ec79ded85a1da25da2..170c285513344e81ead9af623737a27324775628 100644 (file)
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-/* $Id$ */
+//_________________________________________________________________________
+// This analysis provides a new list of clusters to be used in other analysis
+//
+// Author: Constantin Loizides, Salvatore Aiola
+//         Adapted from analysis class from Deepa Thomas
+//
+// $Id$
+//_________________________________________________________________________
 
 // --- Root ---
 #include <TClonesArray.h>
@@ -271,14 +278,8 @@ void AliAnalysisTaskEMCALClusterizeFast::FillDigitsArray()
   } else if (fClusterizeFastORs) { // Fill digits from FastORs
     
     AliEMCALGeometry *fGeom = AliEMCALGeometry::GetInstance(fGeomName);
-  
-    AliESDEvent* esd = dynamic_cast<AliESDEvent*>(InputEvent());
-    if (!esd){
-      AliError("Cannot get the ESD event");
-      return;
-    } 
     
-    AliESDCaloTrigger *triggers = esd->GetCaloTrigger("EMCAL");
+    AliVCaloTrigger *triggers = InputEvent()->GetCaloTrigger("EMCAL");
     
     if (!triggers || !(triggers->GetEntries() > 0))
       return;