]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/PHOS/AliHLTPHOSRawAnalyzerCrudeComponent.cxx
Bug Fix: Forgot to call the initialization of
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzerCrudeComponent.cxx
index fdf278ea468eaebd883e36f2b92d3255bd703f71..8adac323899c9bef2811410e36609f37497d5a5a 100644 (file)
@@ -1,3 +1,6 @@
+// $Id$
+
+
 /**************************************************************************
  * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved.      *
  *                                                                        *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
 
-#include "AliHLTPHOSRawAnalyzerCrudeComponent.h"
-
 
-//ClassImp(AliHLTPHOSRawAnalyzerCrudeComponent) 
+#include "AliHLTPHOSRawAnalyzerCrudeComponent.h"
+#include "AliCaloRawAnalyzerCrude.h"
 
+AliHLTPHOSRawAnalyzerCrudeComponent gAliHLTPHOSRawAnalyzerCrudeComponent;
 
+//___________________________________________________________________________
 AliHLTPHOSRawAnalyzerCrudeComponent::AliHLTPHOSRawAnalyzerCrudeComponent()
 {
-  analyzerPtr = new AliHLTPHOSRawAnalyzerCrude();
+  fAnalyzerPtr = new AliCaloRawAnalyzerCrude();
+  fAnalyzerPtr->SetIsZeroSuppressed(true);
 } 
 
+//___________________________________________________________________________
 AliHLTPHOSRawAnalyzerCrudeComponent::~AliHLTPHOSRawAnalyzerCrudeComponent()
 {
-
+//   if(fAnalyzerPtr)
+//     {
+//       delete fAnalyzerPtr;
+//       fAnalyzerPtr = 0;
+//     }
 }
 
+//___________________________________________________________________________
+AliHLTPHOSRawAnalyzerCrudeComponent::AliHLTPHOSRawAnalyzerCrudeComponent(const AliHLTPHOSRawAnalyzerCrudeComponent & ):AliHLTPHOSRawAnalyzerComponentv3()
+{
 
-AliHLTPHOSRawAnalyzerCrudeComponent::AliHLTPHOSRawAnalyzerCrudeComponent(const AliHLTPHOSRawAnalyzerCrudeComponent & ):AliHLTPHOSRawAnalyzerComponent()
+}
+
+int
+AliHLTPHOSRawAnalyzerCrudeComponent::Deinit()
 {
+  
+  if(fAnalyzerPtr)
+    {
+      delete fAnalyzerPtr;
+      fAnalyzerPtr = 0;
+    }
+  Logging(kHLTLogInfo, "HLT", "PHOS", ",AliHLTPHOSRawAnalyzerCrudeComponent Deinit");
+  return 0;
+}
 
+//___________________________________________________________________________
+const char* 
+AliHLTPHOSRawAnalyzerCrudeComponent::GetComponentID()
+{
+  return "PhosRawCrude";
 }
 
+//___________________________________________________________________________
+AliHLTComponent*
+AliHLTPHOSRawAnalyzerCrudeComponent::Spawn()
+{
+  return new AliHLTPHOSRawAnalyzerCrudeComponent;
+}