]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EMCAL/AliEMCALClusterizer.cxx
Formatting changes.
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALClusterizer.cxx
index 2582a70dbef5255352a98f0496603459714f18bf..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)
 
@@ -48,26 +39,27 @@ ClassImp(AliEMCALClusterizer)
   AliEMCALClusterizer::AliEMCALClusterizer():TTask("","")
 {
   // ctor
-  fSplitFile = 0 ;  
-  fToSplit  = kFALSE ;
-
+  fEventFolderName = "" ;  
+  fFirstEvent = 0 ; 
+  fLastEvent  = -1 ; 
 }
 
 //____________________________________________________________________________
-AliEMCALClusterizer::AliEMCALClusterizer(const char* headerFile, const char* name, const Bool_t toSplit):
-TTask(name, headerFile)
+AliEMCALClusterizer::AliEMCALClusterizer(const TString alirunFileName, 
+                                        const TString eventFolderName):
+  TTask("EMCAL"+AliConfig::Instance()->GetReconstructionerTaskName(), alirunFileName),
+ fEventFolderName(eventFolderName)
 {
   // ctor
-  fToSplit  = toSplit ;
-  fSplitFile = 0 ;  
-
+  fFirstEvent = 0 ; 
+  fLastEvent  = -1 ;   
 }
 
 //____________________________________________________________________________
 AliEMCALClusterizer::~AliEMCALClusterizer()
 {
   // dtor
-  
-  fSplitFile = 0 ;
- }
+ //Remove this from the parental task before destroying
+  AliRunLoader::GetRunLoader()->GetDetectorLoader("EMCAL")->CleanReconstructioner();
+}