]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/EMCAL/AliHLTEMCALClusterizerComponent.cxx
minor coverity defects: prohibiting copy constructors and assignment operators and...
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALClusterizerComponent.cxx
index 2af63561b3a85dcfc59eb7e2b613451424fd1764..01cb3c0d0d1073cadccfcff930449a87ecb140a4 100644 (file)
@@ -6,7 +6,7 @@
  * Authors: Oystein Djuvsland <oysteind@ift.uib.no>                       *
  *                                                                        *
  * Permission to use, copy, modify and distribute this software and its   *
- * documentation strictly for non-commercial purposes is hereby granted   *
+ * `documentation strictly for non-commercial purposes is hereby granted   *
  * without fee, provided that the above copyright notice appears in all   *
  * copies and that both the copyright notice and this permission notice   *
  * appear in the supporting documentation. The authors make no claims     *
@@ -20,6 +20,7 @@
 #include "AliHLTCaloRecPointDataStruct.h"
 #include "AliHLTCaloRecPointHeaderStruct.h"
 #include "AliHLTEMCALGeometry.h"
+#include "AliHLTEMCALRecoParamHandler.h"
 #include "AliHLTCaloClusterAnalyser.h"
 
 
@@ -39,6 +40,7 @@
 
 #include "AliHLTCaloDefinitions.h"
 #include "AliHLTEMCALDefinitions.h"
+#include "AliHLTCaloClusterizer.h"
 
 
 AliHLTEMCALClusterizerComponent gAliHLTEMCALClusterizerComponent;
@@ -52,7 +54,6 @@ AliHLTEMCALClusterizerComponent::AliHLTEMCALClusterizerComponent():
 
   //AliHLTEMCALGeometry *geom = new AliHLTEMCALGeometry;
   
-  fAnalyserPtr->SetGeometry(new AliHLTEMCALGeometry());
   
 }
 
@@ -101,3 +102,29 @@ AliHLTEMCALClusterizerComponent::Spawn()
 
   return new AliHLTEMCALClusterizerComponent();
 }
+int AliHLTEMCALClusterizerComponent::DoInit(int argc, const char** argv)
+{
+   fClusterizerPtr = new AliHLTCaloClusterizer("EMCAL");
+   
+   fRecoParamsPtr = new AliHLTEMCALRecoParamHandler();
+
+    return AliHLTCaloClusterizerComponent::DoInit(argc, argv);
+}
+
+int AliHLTEMCALClusterizerComponent::DoDeinit()
+{
+   if(fRecoParamsPtr)
+   {
+      delete fRecoParamsPtr;
+      fRecoParamsPtr = 0;
+   }
+    return AliHLTCaloClusterizerComponent::DoDeinit();
+}
+
+
+int AliHLTEMCALClusterizerComponent::InitialiseGeometry()
+{
+        fAnalyserPtr->SetGeometry(new AliHLTEMCALGeometry());
+
+       return 0;
+}