]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/EMCAL/AliHLTEMCALRawAnalyzerCrudeComponent.cxx
ALIROOT-5836 AliESDpid not respecting the AliVTrack interface (patch from Mihaela)
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALRawAnalyzerCrudeComponent.cxx
index 6407eab8b077115cc7501991e98b713f3dcbebad..387b275e43e8d1d9955703d33a4cace30761423c 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
+
+
+// Evaluation of amplitude using  just the
+// max  ADC walu - pedestal, and pek position
+// using the time index of the max
+// amplitude
+// ------------
+// ------------
+
+
 #include "AliHLTEMCALRawAnalyzerCrudeComponent.h"
-#include "AliHLTCaloRawAnalyzerCrude.h"
+//#include "AliHLTCaloRawAnalyzerCrude.h"
+#include "AliCaloRawAnalyzerCrude.h"
 
-AliHLTEMCALRawAnalyzerCrudeComponent  gAliHLTEMCALRawAnalyzerCrudeComponent;
 
-AliHLTEMCALRawAnalyzerCrudeComponent::AliHLTEMCALRawAnalyzerCrudeComponent()
+//AliHLTEMCALRawAnalyzerCrudeComponent::AliHLTEMCALRawAnalyzerCrudeComponent : AliHLTEMCALRawAnalyzerComponent() 
+AliHLTEMCALRawAnalyzerCrudeComponent::AliHLTEMCALRawAnalyzerCrudeComponent() : AliHLTEMCALRawAnalyzerComponent( kCrude )
 {
-  fAnalyzerPtr = new   AliHLTCaloRawAnalyzerCrude();
+  // constructor
+  //  fAnalyzerPtr = new   AliHLTCaloRawAnalyzerCrude();
+  // fAnalyzerPtr = new   AliCaloRawAnalyzerCrude();
 }
 
+
 AliHLTEMCALRawAnalyzerCrudeComponent::~AliHLTEMCALRawAnalyzerCrudeComponent()
 {
-
+  // destructor
+  /*
+  if (0 != fAnalyzerPtr)
+    {
+      delete fAnalyzerPtr;
+      fAnalyzerPtr = 0;
+    }
+  */
 }
 
+int 
+AliHLTEMCALRawAnalyzerCrudeComponent::DoDeinit()
+{
+  //comment
+  if (0 != fAnalyzerPtr)
+    {
+      delete fAnalyzerPtr;
+      fAnalyzerPtr = 0;
+    }
+
+  return AliHLTEMCALRawAnalyzerComponent::DoDeinit();
+}
 
 const char* 
 AliHLTEMCALRawAnalyzerCrudeComponent::GetComponentID()
 {
-  return "CaloRawCrude";
+  // component id
+  return "EmcalRawCrude";
 }
 
+
 AliHLTComponent* 
 AliHLTEMCALRawAnalyzerCrudeComponent::Spawn()
 {
+  // spawn component
   return new AliHLTEMCALRawAnalyzerCrudeComponent();
 }