* Authors: Oystein Djuvsland <oysteind@ift.uib.no> *
* *
* Permission to use, copy, modify and distribute this software and its *
- * documentation strictly for non-commercial purposes is hereby granted *
+ * `documentation strictly for non-commercial purposes is hereby granted *
* without fee, provided that the above copyright notice appears in all *
* copies and that both the copyright notice and this permission notice *
* appear in the supporting documentation. The authors make no claims *
#include "AliHLTCaloRecPointDataStruct.h"
#include "AliHLTCaloRecPointHeaderStruct.h"
#include "AliHLTEMCALGeometry.h"
+#include "AliHLTEMCALRecoParamHandler.h"
#include "AliHLTCaloClusterAnalyser.h"
#include "AliHLTCaloDefinitions.h"
#include "AliHLTEMCALDefinitions.h"
+#include "AliHLTCaloClusterizer.h"
AliHLTEMCALClusterizerComponent gAliHLTEMCALClusterizerComponent;
//AliHLTEMCALGeometry *geom = new AliHLTEMCALGeometry;
- fAnalyserPtr->SetGeometry(new AliHLTEMCALGeometry());
}
return new AliHLTEMCALClusterizerComponent();
}
+int AliHLTEMCALClusterizerComponent::DoInit(int argc, const char** argv)
+{
+ fClusterizerPtr = new AliHLTCaloClusterizer("EMCAL");
+
+ fRecoParamsPtr = new AliHLTEMCALRecoParamHandler();
+
+ return AliHLTCaloClusterizerComponent::DoInit(argc, argv);
+}
+
+int AliHLTEMCALClusterizerComponent::DoDeinit()
+{
+ if(fRecoParamsPtr)
+ {
+ delete fRecoParamsPtr;
+ fRecoParamsPtr = 0;
+ }
+ return AliHLTCaloClusterizerComponent::DoDeinit();
+}
+
+
+int AliHLTEMCALClusterizerComponent::InitialiseGeometry()
+{
+ fAnalyserPtr->SetGeometry(new AliHLTEMCALGeometry());
+
+ return 0;
+}