- moving initialisation of analyser from constructor to doinit.
authorodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Apr 2010 11:10:51 +0000 (11:10 +0000)
committerodjuvsla <odjuvsla@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Apr 2010 11:10:51 +0000 (11:10 +0000)
HLT/EMCAL/AliHLTEMCALRawAnalyzerPeakFinderComponent.cxx
HLT/EMCAL/AliHLTEMCALRawAnalyzerPeakFinderComponent.h

index bff8f3f53ef24b596591a41ada0b6cd9efd480db..d978443552e3801e8852a52a88422c972932384f 100644 (file)
@@ -33,8 +33,6 @@ AliHLTEMCALRawAnalyzerPeakFinderComponent  gAliHLTEMCALRawAnalyzerPeakFinderComp
 AliHLTEMCALRawAnalyzerPeakFinderComponent::AliHLTEMCALRawAnalyzerPeakFinderComponent (): AliHLTEMCALRawAnalyzerComponent()
 {
 
-  fAnalyzerPtr = new    AliCaloRawAnalyzerPeakFinder();
-
   // constructor
   //  fAnalyzerPtr = new    AliCaloRawAnalyzerPeakFinder();
 
@@ -51,6 +49,14 @@ AliHLTEMCALRawAnalyzerPeakFinderComponent::~AliHLTEMCALRawAnalyzerPeakFinderComp
     }
 }
 
+int
+AliHLTEMCALRawAnalyzerPeakFinderComponent::DoInit(int argc, const char** argv)
+{
+    fAnalyzerPtr = new AliCaloRawAnalyzerPeakFinder();
+    return AliHLTCaloRawAnalyzerComponentv3::DoInit(argc, argv);
+}
+
+
 int 
 AliHLTEMCALRawAnalyzerPeakFinderComponent::DoDeinit()
 {
index 3718da30697e9eaefb347f4ede60c41d2be5a54f..5bc1021281e7c695974c5018a0daac9c4f73555d 100644 (file)
@@ -32,6 +32,7 @@ class  AliHLTEMCALRawAnalyzerPeakFinderComponent : public AliHLTEMCALRawAnalyzer
   AliHLTEMCALRawAnalyzerPeakFinderComponent();
   virtual ~AliHLTEMCALRawAnalyzerPeakFinderComponent();
   virtual int DoDeinit();
+  virtual int DoInit(int argc, const char** argv);
   virtual const char* GetComponentID();
   virtual AliHLTComponent* Spawn(); 
  private: