]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/PHOS/AliHLTPHOSProcessor.h
- Bug fix: in the creation/reading of the trigger DCS values, the HV and currents...
[u/mrichter/AliRoot.git] / HLT / PHOS / AliHLTPHOSProcessor.h
1 //-*- Mode: C++ -*-
2 // $Id$
3
4 #ifndef ALIHLTPHOSPROCESSOR_H
5 #define ALIHLTPHOSPROCESSOR_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 "AliHLTPHOSBase.h"
11 #include "AliHLTPHOSDefinitions.h"
12 #include "AliHLTDataTypes.h"
13
14 using namespace PhosHLTConst;
15
16 class AliHLTPHOSProcessor:public AliHLTProcessor, public AliHLTPHOSBase
17 {
18
19  public:
20   AliHLTPHOSProcessor();
21   virtual ~AliHLTPHOSProcessor();
22   virtual int DoInit(int argc, const char** argv) = 0;
23   virtual int Deinit() = 0;
24   virtual const char* GetComponentID() = 0;
25   virtual void GetInputDataTypes( std::vector <AliHLTComponentDataType>& list) =0;
26   virtual AliHLTComponentDataType GetOutputDataType() =0;
27   virtual void GetOutputDataSize(unsigned long& constBase, double& inputMultiplier) =0;
28   virtual AliHLTComponent* Spawn() = 0; 
29
30
31   char lineNumber[256];
32   const char *IntToChar(int number);
33   /*
34    *Check file and write messages to AliLog system
35    */
36   bool CheckFileLog(const char *origin, const char *filename, const char *opt);
37   void DoneWritingLog(const char *origin, const char *filename);
38
39   using  AliHLTProcessor::DoEvent;
40
41  protected:
42   void ScanRunNumberFromFile();
43   virtual int ScanArgumentsModule(int argc, const char** argv);
44   int fPhosEventCount;                  /**<Global event counter for this component*/
45   AliHLTUInt8_t  fModuleID;             /**<ID of the module this component read data from (0-4)*/
46
47   Bool_t fPrintInfoModule;                    /**<wether or not to print debugg info to std out*/
48   int fPrintInfoFrequncyModule;               /**<Defines the update frequency for information printet to std out*/
49
50   static const AliHLTComponentDataType fgkInputDataTypes[]; /**<List of  datatypes that can be given to this component*/
51   int fRunNumber;
52   char fFilepath[1024];
53   char fMessage[1024];
54
55  private:
56   AliHLTPHOSProcessor(const AliHLTPHOSProcessor & );
57   AliHLTPHOSProcessor & operator = (const AliHLTPHOSProcessor &);
58
59 };
60
61
62 #endif