]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/EMCAL/AliHLTEMCALClusterizerComponentNbyN.cxx
removing the CTPData from the HLTGlobalTrigger decision because of bug #88431 until...
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALClusterizerComponentNbyN.cxx
CommitLineData
d522588e 1
2/**************************************************************************
3 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * *
5 * Authors: Anders Knospe <anders.knospe@cern.ch> *
6 * *
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 **************************************************************************/
15
16
17#include "AliHLTEMCALClusterizerComponentNbyN.h"
18#include "AliHLTCaloClusterizerNbyN.h"
19#include "AliHLTEMCALRecoParamHandler.h"
20
21ClassImp(AliHLTEMCALClusterizerComponentNbyN);
22
23AliHLTEMCALClusterizerComponentNbyN gAliHLTEMCALClusterizerComponentNbyN;
24
25AliHLTEMCALClusterizerComponentNbyN::AliHLTEMCALClusterizerComponentNbyN() : AliHLTEMCALClusterizerComponent()
26{
27// Constructor
28}
29
30AliHLTEMCALClusterizerComponentNbyN::~AliHLTEMCALClusterizerComponentNbyN()
31{
32// Destructor
33}
34
35
36const char* AliHLTEMCALClusterizerComponentNbyN::GetComponentID()
37{
38 // See header file for class documentation
39 return "EmcalClusterizerNbyN";
40}
41
42
43int AliHLTEMCALClusterizerComponentNbyN::DoInit(int argc, const char** argv)
44{
45 // See header file for class documentation
46 fClusterizerPtr = new AliHLTCaloClusterizerNbyN("EMCAL");
47
48 //return AliHLTEMCALClusterizerComponent::DoInit(argc, argv);
49
50 fRecoParamsPtr = new AliHLTEMCALRecoParamHandler();
51
52 return AliHLTCaloClusterizerComponent::DoInit(argc, argv);
53}
54
55int AliHLTEMCALClusterizerComponentNbyN::ScanConfigurationArgument(int argc, const char** argv)
56{
57// See header file for class documentation
58
59 if (argc <= 0) return 0;
60
61 int i=0;
62
63 TString argument=argv[i];
64
65 if (argument.CompareTo("-gridsize") == 0)
66 {
67 if (++i >= argc) return -EPROTO;
68 argument = argv[i];
69 AliHLTCaloClusterizerNbyN* tmp = dynamic_cast<AliHLTCaloClusterizerNbyN*>(fClusterizerPtr);
70 if(tmp)
71 {
72 tmp->SetGridDimension(argument.Atoi());
73 }
74 else
75 {
76 return -1;
77 }
78 return 1;
79 }
80
81 return AliHLTCaloClusterizerComponent::ScanConfigurationArgument(argc, argv);
82
83}
84
85AliHLTComponent*
86AliHLTEMCALClusterizerComponentNbyN::Spawn()
87{
88 //See headerfile for documentation
89
90 return new AliHLTEMCALClusterizerComponentNbyN();
91}