Added instructions to run scanning interface.
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSRawAnalyzerComponent.cxx
CommitLineData
cbab66dd 1/**************************************************************************
2 * Copyright(c) 2006, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: Per Thomas Hille for the ALICE HLT Project. *
5 * Contributors are mentioned in the code where appropriate. *
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#include "AliHLTPHOSRawAnalyzerComponent.h"
17#include <iostream>
18
ee7849e6 19const AliHLTComponentDataType AliHLTPHOSRawAnalyzerComponent::inputDataTypes[]={kAliHLTVoidDataType,{0,"",""}}; //'zero' terminated array
20const AliHLTComponentDataType AliHLTPHOSRawAnalyzerComponent::outputDataType=kAliHLTVoidDataType;
21
22
cbab66dd 23
ee7849e6 24//ClassImp(AliHLTPHOSRawAnalyzerComponent)
25AliHLTPHOSRawAnalyzerComponent::AliHLTPHOSRawAnalyzerComponent():AliHLTProcessor(), eventCount(0)
cbab66dd 26{
27
28}
29
30AliHLTPHOSRawAnalyzerComponent::~AliHLTPHOSRawAnalyzerComponent()
31{
32
33}
34
35
ee7849e6 36AliHLTPHOSRawAnalyzerComponent::AliHLTPHOSRawAnalyzerComponent(const AliHLTPHOSRawAnalyzerComponent & ) : AliHLTProcessor(), eventCount(0)
cbab66dd 37{
38
39}
40
41int
42AliHLTPHOSRawAnalyzerComponent::Deinit()
43{
44 return 0;
45}
46
47int
48AliHLTPHOSRawAnalyzerComponent::DoDeinit()
49{
ee7849e6 50 Logging(kHLTLogInfo, "HLT", "PHOS", ",AliHLTPHOSRawAnalyzerComponen DoDeinit");
cbab66dd 51 return 0;
cbab66dd 52
cbab66dd 53}
54
ee7849e6 55//const char*
56//AliHLTPHOSRawAnalyzerComponent::GetComponentID()
57//{
58// return 0;
59//}
60
cbab66dd 61void
ee7849e6 62AliHLTPHOSRawAnalyzerComponent::GetInputDataTypes( vector<AliHLTComponentDataType>& list)
cbab66dd 63{
ee7849e6 64 const AliHLTComponentDataType* pType=inputDataTypes;
65 while (pType->fID!=0) {
66 list.push_back(*pType);
67 pType++;
68 }
cbab66dd 69}
70
71AliHLTComponentDataType
72AliHLTPHOSRawAnalyzerComponent::GetOutputDataType()
73{
ee7849e6 74 return outputDataType;
cbab66dd 75}
76
77void
ee7849e6 78AliHLTPHOSRawAnalyzerComponent::GetOutputDataSize( unsigned long& constBase, double& inputMultiplier )
cbab66dd 79{
ee7849e6 80 constBase = 0;inputMultiplier = 0;
cbab66dd 81}
82
ee7849e6 83int
84AliHLTPHOSRawAnalyzerComponent::DoEvent(const AliHLTComponentEventData&, const AliHLTComponentBlockData*, AliHLTComponentTriggerData&, AliHLTUInt8_t*, AliHLTUInt32_t&, std::vector<AliHLTComponentBlockData, std::allocator<AliHLTComponentBlockData> >&)
cbab66dd 85{
ee7849e6 86 Logging(kHLTLogInfo, "HLT", "Sample", "PhosHLTRawAnalyzerComonent, DoEvent");
87 printf("\nPHOSHLT DoEvent: processing event: %d\n", eventCount);
88 // printf("\nPHOSHLT DoEvent, not yet implemented\n");
89 eventCount++;
cbab66dd 90 return 0;
91}
92
ee7849e6 93
94int
95AliHLTPHOSRawAnalyzerComponent::DoInit( int argc, const char** argv )
cbab66dd 96{
ee7849e6 97 printf("\nInside AliHLTPHOSRawAnalyzerComponent:DoInit\n");
98 if (argc==0 && argv==NULL) {
99 // this is currently just to get rid of the warning "unused parameter"
100 }
cbab66dd 101 return 0;
102}