* 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";
}
AliHLTComponent*
AliHLTEMCALRawAnalyzerPeakFinderComponent::Spawn()
{
+ // spawn component
return new AliHLTEMCALRawAnalyzerPeakFinderComponent();
}