]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/EMCAL/AliHLTEMCALTrackerComponent.h
Refactoring: rempved the usage of AliHLTEMCALConstant
[u/mrichter/AliRoot.git] / HLT / EMCAL / AliHLTEMCALTrackerComponent.h
1 //-*- Mode: C++ -*-
2 #ifndef ALIHLTEMCALTRACKERCOMPONENT_H
3 #define ALIHLTEMCALTRACKERCOMPONENT_H
4
5 //* This file is property of and copyright by the ALICE HLT Project        * 
6 //* ALICE Experiment at CERN, All rights reserved.                         *
7 //* See cxx source for full Copyright notice                               */
8
9 /** @file   AliHLTEMCALTrackerComponent.h
10     @author Matthias Richter, Timm Steinbeck
11     @date   
12     @brief  A sample processing component for the HLT.
13 */
14
15 #include "AliHLTProcessor.h"
16
17 /**
18  * @class AliHLTEMCALTrackerComponent
19  */
20
21 class TFile;
22 class TGeoManager;
23 class AliEMCALTracker;
24 class AliCDBManager;
25 class AliRawReaderMemory;  
26
27 class AliHLTEMCALTrackerComponent : public AliHLTProcessor {
28 public:
29   AliHLTEMCALTrackerComponent();
30   AliHLTEMCALTrackerComponent(const AliHLTEMCALTrackerComponent& c);
31   virtual ~AliHLTEMCALTrackerComponent();
32
33   AliHLTEMCALTrackerComponent& operator=(const AliHLTEMCALTrackerComponent&);
34
35   // AliHLTComponent interface functions
36   const char* GetComponentID();
37   void GetInputDataTypes( vector<AliHLTComponentDataType>& list);
38   AliHLTComponentDataType GetOutputDataType();
39   virtual void GetOutputDataSize( unsigned long& constBase, double& inputMultiplier );
40
41   // Spawn function, return new class instance
42   AliHLTComponent* Spawn() {return new AliHLTEMCALTrackerComponent;};
43
44  protected:
45   // AliHLTComponent interface functions
46   int DoInit( int argc, const char** argv );
47   int DoDeinit();
48   int DoEvent( const AliHLTComponentEventData & evtData,
49                AliHLTComponentTriggerData & trigData );
50   int Reconfigure(const char* cdbEntry, const char* chainId);
51   int ReadPreprocessorValues(const char* modules);
52
53   using AliHLTProcessor::DoEvent;
54
55 private:
56   /**
57    * Configure the component.
58    * Parse a string for the configuration arguments and set the component
59    * properties.
60    *
61    * This function illustrates the scanning of an argument string. The string
62    * was presumably fetched from the CDB.
63    */
64   int Configure(const char* arguments);
65
66   unsigned             fOutputPercentage;    // Output volume in percentage of the input  
67   string               fStorageDBpath;      // Default path for OCDB
68   
69   AliCDBManager       *fCDB;                 //! Pointer to OCDB
70   string               fGeometryFileName;    // Path to geometry file - geom handled by the utils
71   
72   ClassDef(AliHLTEMCALTrackerComponent, 1)
73 };
74 #endif