]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/EMCAL/AliHLTEMCALRawAnalyzerPeakFinderComponent.cxx
HLT submodules
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALRawAnalyzerPeakFinderComponent.cxx
index a9cc619d6229adf4e565f0b58c4c5e93325f0796..f62b0c6dd7c26cab09afa8c020f2acb32996d33f 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
+
+// Evaluation of amplitude and peak
+// position using  statisticall optimal
+// weight of the samples
+// ---------------
+// ---------------
+
+
 #include "AliHLTEMCALRawAnalyzerPeakFinderComponent.h"
-//#include "AliHLTCaloRawAnalyzerPeakFinder.h"
 #include "AliCaloRawAnalyzerPeakFinder.h"
 
 
-AliHLTEMCALRawAnalyzerPeakFinderComponent  gAliHLTEMCALRawAnalyzerPeakFinderComponent;
+AliHLTEMCALRawAnalyzerPeakFinderComponent::AliHLTEMCALRawAnalyzerPeakFinderComponent (): AliHLTEMCALRawAnalyzerComponent(kPeakFinder)
+{
+  // constructor
+  //  fAnalyzerPtr = new    AliCaloRawAnalyzerPeakFinder();
+}
 
 
-//AliHLTEMCALRawAnalyzerPeakFinderComponent::AliHLTEMCALRawAnalyzerPeakFinderComponent : AliHLTEMCALRawAnalyzerComponent()
-AliHLTEMCALRawAnalyzerPeakFinderComponent::AliHLTEMCALRawAnalyzerPeakFinderComponent (): AliHLTEMCALRawAnalyzerComponent()
+AliHLTEMCALRawAnalyzerPeakFinderComponent::~AliHLTEMCALRawAnalyzerPeakFinderComponent()
 {
-  //  fAnalyzerPtr = new   AliHLTCaloRawAnalyzerPeakFinder();
-  fAnalyzerPtr = new    AliCaloRawAnalyzerPeakFinder();
+  // destructor
+  /*
+  if (0 != fAnalyzerPtr)
+    {
+      delete fAnalyzerPtr;
+      fAnalyzerPtr = 0;
+    }
+  */
 }
 
+int
+AliHLTEMCALRawAnalyzerPeakFinderComponent::DoInit(int argc, const char** argv)
+{
+  // fAnalyzerPtr = new AliCaloRawAnalyzerPeakFinder();
+    return AliHLTCaloRawAnalyzerComponentv3::DoInit(argc, argv);
+}
 
 
-AliHLTEMCALRawAnalyzerPeakFinderComponent::~AliHLTEMCALRawAnalyzerPeakFinderComponent()
+int 
+AliHLTEMCALRawAnalyzerPeakFinderComponent::DoDeinit()
 {
+  //comment
+  /*
+  if (0 != fAnalyzerPtr)
+    {
+      delete fAnalyzerPtr;
+      fAnalyzerPtr = 0;
+    }
+  */
 
+  return AliHLTEMCALRawAnalyzerComponent::DoDeinit();
 }
 
-
 const char* 
 AliHLTEMCALRawAnalyzerPeakFinderComponent::GetComponentID()
 {
+  // component id
   return "EmcalRawPeakFinder";
 }
 
@@ -48,6 +81,7 @@ AliHLTEMCALRawAnalyzerPeakFinderComponent::GetComponentID()
 AliHLTComponent* 
 AliHLTEMCALRawAnalyzerPeakFinderComponent::Spawn()
 {
+  // spawn component
   return new AliHLTEMCALRawAnalyzerPeakFinderComponent();
 }