]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALClusterizer.cxx
Formatting changes.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALClusterizer.cxx
index 50010de60e9145a5d25b32221e5881f963756840..09beb9077a1764d9318a525c55e5af3a7f69df05 100644 (file)
 //////////////////////////////////////////////////////////////////////////////
 
 // --- ROOT system ---
-#include "TGeometry.h"
-#include "TDirectory.h"
-#include "TFile.h"
-#include "TTree.h" 
 
 // --- Standard library ---
-#include <Riostream.h>
-#include <stdlib.h>   
+
 
 // --- AliRoot header files ---
-#include "AliRun.h" 
 #include "AliEMCALClusterizer.h"
-#include "AliHeader.h" 
-#include "AliEMCALGetter.h"
-#include "AliEMCALSDigitizer.h"
-#include "AliEMCALDigitizer.h"
+#include "AliRunLoader.h"
 
 ClassImp(AliEMCALClusterizer)
 
@@ -49,19 +40,26 @@ ClassImp(AliEMCALClusterizer)
 {
   // ctor
   fEventFolderName = "" ;  
+  fFirstEvent = 0 ; 
+  fLastEvent  = -1 ; 
 }
 
 //____________________________________________________________________________
-AliEMCALClusterizer::AliEMCALClusterizer(const TString alirunFileName, const TString eventFolderName):
-  TTask("EMCAL"+AliConfig::fgkReconstructionerTaskName, alirunFileName), fEventFolderName(eventFolderName)
+AliEMCALClusterizer::AliEMCALClusterizer(const TString alirunFileName, 
+                                        const TString eventFolderName):
+  TTask("EMCAL"+AliConfig::Instance()->GetReconstructionerTaskName(), alirunFileName),
+ fEventFolderName(eventFolderName)
 {
   // ctor
-  
+  fFirstEvent = 0 ; 
+  fLastEvent  = -1 ;   
 }
 
 //____________________________________________________________________________
 AliEMCALClusterizer::~AliEMCALClusterizer()
 {
   // dtor
+ //Remove this from the parental task before destroying
+  AliRunLoader::GetRunLoader()->GetDetectorLoader("EMCAL")->CleanReconstructioner();
 }