]> git.uio.no Git - u/mrichter/AliRoot.git/blame - HLT/CALO/AliHLTCaloProcessor.h
From P. T. Hille: Merging the use of constants. off-line / on-line and PHOS + EMCAL...
[u/mrichter/AliRoot.git] / HLT / CALO / AliHLTCaloProcessor.h
CommitLineData
c375e15d 1//-*- Mode: C++ -*-
2// $Id: AliHLTCaloProcessor.h 35107 2009-09-30 01:45:06Z phille $
3
4#ifndef ALIHLTCALOPROCESSOR_H
5#define ALIHLTCALOPROCESSOR_H
6/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
8
9#include "AliHLTProcessor.h"
10//#include "AliHLTCaloBase.h"
76ffc0ce 11// #include "AliHLTCaloDefinitions.h"
c375e15d 12#include "AliHLTDataTypes.h"
c375e15d 13
76ffc0ce 14// #include "AliHLTCaloConstant.h"
15
16// using namespace CaloHLTConst;
c375e15d 17
18//class AliHLTCaloProcessor:public AliHLTProcessor, public AliHLTCaloBase
19class AliHLTCaloProcessor:public AliHLTProcessor
20{
21
22 public:
23 AliHLTCaloProcessor();
24 virtual ~AliHLTCaloProcessor();
25 virtual int DoInit(int argc, const char** argv) = 0;
d819c9ff 26 // virtual int DoDeinit() = 0;
c375e15d 27 virtual const char* GetComponentID() = 0;
28 virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>& list) =0;
29 virtual AliHLTComponentDataType GetOutputDataType() =0;
30 virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier) =0;
31 virtual AliHLTComponent* Spawn() = 0;
32
33
34 char lineNumber[256];
35 const char *IntToChar(int number);
36 /*
37 *Check file and write messages to AliLog system
38 */
39 bool CheckFileLog(const char *origin, const char *filename, const char *opt);
40 void DoneWritingLog(const char *origin, const char *filename);
41
42 using AliHLTProcessor::DoEvent;
43
44 protected:
45 void ScanRunNumberFromFile();
46 virtual int ScanArgumentsModule(int argc, const char** argv);
47 int fCaloEventCount; /**<Global event counter for this component*/
48 AliHLTUInt8_t fModuleID; /**<ID of the module this component read data from (0-4)*/
49
50 Bool_t fPrintInfoModule; /**<wether or not to print debugg info to std out*/
51 int fPrintInfoFrequncyModule; /**<Defines the update frequency for information printet to std out*/
52
53 static const AliHLTComponentDataType fgkInputDataTypes[]; /**<List of datatypes that can be given to this component*/
54 int fRunNumber;
55 char fFilepath[1024];
56 char fMessage[1024];
57
58 private:
59 AliHLTCaloProcessor(const AliHLTCaloProcessor & );
60 AliHLTCaloProcessor & operator = (const AliHLTCaloProcessor &);
61
62};
63
64
65#endif