]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/EMCAL/AliHLTEMCALClusterizerComponent.cxx
- digits shipped with the clusters accessable through the cluster reader
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALClusterizerComponent.cxx
CommitLineData
f7e647fe 1// $Id$
2
4a8f32a0 3/**************************************************************************
f7e647fe 4 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4a8f32a0 5 * *
f7e647fe 6 * Authors: Oystein Djuvsland <oysteind@ift.uib.no> *
4a8f32a0 7 * *
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 **************************************************************************/
16
f7e647fe 17#include <iostream>
4a8f32a0 18
19#include "AliHLTEMCALClusterizerComponent.h"
f7e647fe 20#include "AliHLTCaloRecPointDataStruct.h"
21#include "AliHLTCaloRecPointHeaderStruct.h"
22#include "AliHLTEMCALGeometry.h"
23#include "AliHLTCaloClusterAnalyser.h"
4a8f32a0 24
a558187d 25
4a8f32a0 26
4a8f32a0 27
f7e647fe 28/** @file AliHLTEMCALClusterizerComponent.cxx
29 @author Oystein Djuvsland
30 @date
31 @brief A clusterizer component for EMCAL HLT
32*/
4a8f32a0 33
f7e647fe 34// see header file for class documentation
35// or
36// refer to README to build package
37// or
38// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
4a8f32a0 39
f7e647fe 40#include "AliHLTCaloDefinitions.h"
4a8f32a0 41
f7e647fe 42AliHLTEMCALClusterizerComponent gAliHLTEMCALClusterizerComponent;
4a8f32a0 43
f7e647fe 44AliHLTEMCALClusterizerComponent::AliHLTEMCALClusterizerComponent():
45 AliHLTCaloClusterizerComponent("EMCAL")
4a8f32a0 46{
f7e647fe 47 //See headerfile for documentation
4a8f32a0 48
f7e647fe 49 fDataOrigin = const_cast<char*>(kAliHLTDataOriginEMCAL);
a558187d 50
a6db7bcd 51 //AliHLTEMCALGeometry *geom = new AliHLTEMCALGeometry;
f7e647fe 52
a6db7bcd 53 fAnalyserPtr->SetGeometry(new AliHLTEMCALGeometry("EMCAL"));
f7e647fe 54
a558187d 55}
56
f7e647fe 57AliHLTEMCALClusterizerComponent::~AliHLTEMCALClusterizerComponent()
a558187d 58{
f7e647fe 59 //See headerfile for documentation
a558187d 60}
61
f7e647fe 62void
63AliHLTEMCALClusterizerComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
4a8f32a0 64{
f7e647fe 65 //See headerfile for documentation
66 list.clear();
67 list.push_back(AliHLTCaloDefinitions::fgkDigitDataType|kAliHLTDataOriginEMCAL);
4a8f32a0 68}
69
f7e647fe 70AliHLTComponentDataType
71AliHLTEMCALClusterizerComponent::GetOutputDataType()
4a8f32a0 72{
f7e647fe 73 //See headerfile for documentation
a6db7bcd 74 return AliHLTCaloDefinitions::fgkCaloClusterDataType|kAliHLTDataOriginEMCAL;
4a8f32a0 75}
76
f7e647fe 77void
78AliHLTEMCALClusterizerComponent::GetOutputDataSize(unsigned long& constBase, double& inputMultiplier )
a558187d 79
4a8f32a0 80{
f7e647fe 81 //See headerfile for documentation
82 constBase = sizeof(AliHLTCaloRecPointHeaderStruct) + sizeof(AliHLTCaloRecPointDataStruct) + (sizeof(AliHLTCaloDigitDataStruct) << 7); //Reasonable estimate... ;
83 inputMultiplier = 2.0;
4a8f32a0 84}
85
f7e647fe 86
87const Char_t*
88AliHLTEMCALClusterizerComponent::GetComponentID()
4a8f32a0 89{
f7e647fe 90 //See headerfile for documentation
a6db7bcd 91 return "EmcalClusterizer";
4a8f32a0 92}
93
f7e647fe 94AliHLTComponent*
95AliHLTEMCALClusterizerComponent::Spawn()
4a8f32a0 96{
f7e647fe 97 //See headerfile for documentation
98
99 return new AliHLTEMCALClusterizerComponent();
4a8f32a0 100}