2 /**************************************************************************
3 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * Authors: Anders Knospe <anders.knospe@cern.ch> *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
17 #include "AliHLTEMCALClusterizerComponentNbyN.h"
18 #include "AliHLTCaloClusterizerNbyN.h"
19 #include "AliHLTEMCALRecoParamHandler.h"
21 ClassImp(AliHLTEMCALClusterizerComponentNbyN);
23 AliHLTEMCALClusterizerComponentNbyN::AliHLTEMCALClusterizerComponentNbyN() : AliHLTEMCALClusterizerComponent()
28 AliHLTEMCALClusterizerComponentNbyN::~AliHLTEMCALClusterizerComponentNbyN()
34 const char* AliHLTEMCALClusterizerComponentNbyN::GetComponentID()
36 // See header file for class documentation
37 return "EmcalClusterizerNbyN";
41 int AliHLTEMCALClusterizerComponentNbyN::DoInit(int argc, const char** argv)
43 // See header file for class documentation
44 fClusterizerPtr = new AliHLTCaloClusterizerNbyN("EMCAL");
46 //return AliHLTEMCALClusterizerComponent::DoInit(argc, argv);
48 fRecoParamsPtr = new AliHLTEMCALRecoParamHandler();
50 return AliHLTCaloClusterizerComponent::DoInit(argc, argv);
53 int AliHLTEMCALClusterizerComponentNbyN::ScanConfigurationArgument(int argc, const char** argv)
55 // See header file for class documentation
57 if (argc <= 0) return 0;
61 TString argument=argv[i];
63 if (argument.CompareTo("-gridsize") == 0)
65 if (++i >= argc) return -EPROTO;
67 AliHLTCaloClusterizerNbyN* tmp = dynamic_cast<AliHLTCaloClusterizerNbyN*>(fClusterizerPtr);
70 tmp->SetGridDimension(argument.Atoi());
79 return AliHLTCaloClusterizerComponent::ScanConfigurationArgument(argc, argv);
84 AliHLTEMCALClusterizerComponentNbyN::Spawn()
86 //See headerfile for documentation
88 return new AliHLTEMCALClusterizerComponentNbyN();