// $Id$ /************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Authors: Oystein Djuvsland * * * * Permission to use, copy, modify and distribute this software and its * * 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 * * about the suitability of this software for any purpose. It is * * provided "as is" without express or implied warranty. * **************************************************************************/ #include #include "AliHLTEMCALClusterizerComponent.h" #include "AliHLTCaloRecPointDataStruct.h" #include "AliHLTCaloRecPointHeaderStruct.h" #include "AliHLTEMCALGeometry.h" #include "AliHLTCaloClusterAnalyser.h" /** @file AliHLTEMCALClusterizerComponent.cxx @author Oystein Djuvsland @date @brief A clusterizer component for EMCAL HLT */ // see header file for class documentation // or // refer to README to build package // or // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt #include "AliHLTCaloDefinitions.h" AliHLTEMCALClusterizerComponent gAliHLTEMCALClusterizerComponent; AliHLTEMCALClusterizerComponent::AliHLTEMCALClusterizerComponent(): AliHLTCaloClusterizerComponent("EMCAL") { //See headerfile for documentation fDataOrigin = const_cast(kAliHLTDataOriginEMCAL); AliHLTEMCALGeometry *geom = new AliHLTEMCALGeometry; fAnalyserPtr->SetGeometry(new AliHLTEMCALGeometry); } AliHLTEMCALClusterizerComponent::~AliHLTEMCALClusterizerComponent() { //See headerfile for documentation } void AliHLTEMCALClusterizerComponent::GetInputDataTypes( vector& list) { //See headerfile for documentation list.clear(); list.push_back(AliHLTCaloDefinitions::fgkDigitDataType|kAliHLTDataOriginEMCAL); } AliHLTComponentDataType AliHLTEMCALClusterizerComponent::GetOutputDataType() { //See headerfile for documentation return AliHLTCaloDefinitions::fgkRecPointDataType|kAliHLTDataOriginEMCAL; } void AliHLTEMCALClusterizerComponent::GetOutputDataSize(unsigned long& constBase, double& inputMultiplier ) { //See headerfile for documentation constBase = sizeof(AliHLTCaloRecPointHeaderStruct) + sizeof(AliHLTCaloRecPointDataStruct) + (sizeof(AliHLTCaloDigitDataStruct) << 7); //Reasonable estimate... ; inputMultiplier = 2.0; } const Char_t* AliHLTEMCALClusterizerComponent::GetComponentID() { //See headerfile for documentation return "PhosClusterizer"; } AliHLTComponent* AliHLTEMCALClusterizerComponent::Spawn() { //See headerfile for documentation return new AliHLTEMCALClusterizerComponent(); }