3 /**************************************************************************
4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * Authors: Oystein Djuvsland <oysteind@ift.uib.no> *
8 * Permission to use, copy, modify and distribute this software and its *
9 * documentation strictly for non-commercial purposes is hereby granted *
10 * without fee, provided that the above copyright notice appears in all *
11 * copies and that both the copyright notice and this permission notice *
12 * appear in the supporting documentation. The authors make no claims *
13 * about the suitability of this software for any purpose. It is *
14 * provided "as is" without express or implied warranty. *
15 **************************************************************************/
19 #include "AliHLTEMCALClusterizerComponent.h"
20 #include "AliHLTCaloRecPointDataStruct.h"
21 #include "AliHLTCaloRecPointHeaderStruct.h"
22 #include "AliHLTEMCALGeometry.h"
23 #include "AliHLTCaloClusterAnalyser.h"
28 /** @file AliHLTEMCALClusterizerComponent.cxx
29 @author Oystein Djuvsland
31 @brief A clusterizer component for EMCAL HLT
34 // see header file for class documentation
36 // refer to README to build package
38 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
40 #include "AliHLTCaloDefinitions.h"
42 AliHLTEMCALClusterizerComponent gAliHLTEMCALClusterizerComponent;
44 AliHLTEMCALClusterizerComponent::AliHLTEMCALClusterizerComponent():
45 AliHLTCaloClusterizerComponent("EMCAL")
47 //See headerfile for documentation
49 fDataOrigin = const_cast<char*>(kAliHLTDataOriginEMCAL);
51 AliHLTEMCALGeometry *geom = new AliHLTEMCALGeometry;
53 fAnalyserPtr->SetGeometry(new AliHLTEMCALGeometry);
57 AliHLTEMCALClusterizerComponent::~AliHLTEMCALClusterizerComponent()
59 //See headerfile for documentation
63 AliHLTEMCALClusterizerComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
65 //See headerfile for documentation
67 list.push_back(AliHLTCaloDefinitions::fgkDigitDataType|kAliHLTDataOriginEMCAL);
70 AliHLTComponentDataType
71 AliHLTEMCALClusterizerComponent::GetOutputDataType()
73 //See headerfile for documentation
74 return AliHLTCaloDefinitions::fgkRecPointDataType|kAliHLTDataOriginEMCAL;
78 AliHLTEMCALClusterizerComponent::GetOutputDataSize(unsigned long& constBase, double& inputMultiplier )
81 //See headerfile for documentation
82 constBase = sizeof(AliHLTCaloRecPointHeaderStruct) + sizeof(AliHLTCaloRecPointDataStruct) + (sizeof(AliHLTCaloDigitDataStruct) << 7); //Reasonable estimate... ;
83 inputMultiplier = 2.0;
88 AliHLTEMCALClusterizerComponent::GetComponentID()
90 //See headerfile for documentation
91 return "PhosClusterizer";
95 AliHLTEMCALClusterizerComponent::Spawn()
97 //See headerfile for documentation
99 return new AliHLTEMCALClusterizerComponent();