2 #ifndef ALIHLTPHOSAGENT_H
3 #define ALIHLTPHOSAGENT_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
7 /** @file AliHLTPHOSAgent.h
8 @author Oystein Djuvsland
10 @brief Agent of the libAliHLTPHOS library
13 #include "AliHLTModuleAgent.h"
14 #include "AliHLTOUTHandlerEquId.h"
16 class AliHLTOUTHandlerChain;
19 * @class AliHLTPHOSAgent
20 * This is the agent for the AliHLTPHOS library.
22 * @ingroup alihlt_system
24 class AliHLTPHOSAgent : public AliHLTModuleAgent {
27 * standard constructor. The agent is automatically registered in the
28 * global agent manager
32 virtual ~AliHLTPHOSAgent();
35 * Register all configurations belonging to this module with the
36 * AliHLTConfigurationHandler. The agent can adapt the configurations
37 * to be registered to the current AliRoot setup by checking the
39 * @param handler the configuration handler
40 * @param rawReader AliRawReader instance
41 * @param runloader AliRoot runloader
42 * @return neg. error code if failed
44 int CreateConfigurations(AliHLTConfigurationHandler* handler,
45 AliRawReader* rawReader=NULL,
46 AliRunLoader* runloader=NULL) const;
49 * Get the top configurations belonging to this module.
50 * A top configuration describes a processing chain. It can simply be
51 * described by the last configuration(s) in the chain.
52 * The agent can adapt the configurations to be registered to the current
53 * AliRoot setup by checking the runloader.
54 * @param rawReader AliRawReader instance
55 * @param runloader AliRoot runloader
56 * @return number of configurations, neg. error code if failed
58 const char* GetReconstructionChains(AliRawReader* rawReader=NULL,
59 AliRunLoader* runloader=NULL) const;
62 * Component libraries which the configurations of this agent depend on.
63 * @return list of component libraries as a blank-separated string.
65 const char* GetRequiredComponentLibraries() const;
68 * Register components for the AliHLTPHOS library.
69 * @param [in] pHandler instance of the component handler
71 int RegisterComponents(AliHLTComponentHandler* pHandler) const;
74 * Get handler decription for PHOS data in the HLTOUT data stream.
75 * @param [in] dt data type of the block
76 * @param [in] spec specification of the block
77 * @param [out] desc handler description
78 * @return 1 if the agent can provide a handler, 0 if not
80 int GetHandlerDescription(AliHLTComponentDataType dt,
82 AliHLTOUTHandlerDesc& desc) const;
85 * Get specific handler for PHOS data in the HLTOUT data stream.
86 * @param [in] dt data type of the block
87 * @param [in] spec specification of the block
88 * @return pointer to handler
90 AliHLTOUTHandler* GetOutputHandler(AliHLTComponentDataType dt,
94 * Delete an HLTOUT handler.
95 * @param pInstance pointer to handler
97 int DeleteOutputHandler(AliHLTOUTHandler* pInstance);
100 * The handler for PHOS RAW data in the HLTOUT stream.
102 class AliHLTPHOSRawDataHandler : public AliHLTOUTHandlerEquId {
105 AliHLTPHOSRawDataHandler();
107 ~AliHLTPHOSRawDataHandler();
110 * Process a data block.
111 * Decode specification and return equipment id of the data block.
112 * The data itsself i untouched.
113 * @return equipment id the block should be used for.
115 int ProcessData(AliHLTOUT* pData);
124 /** copy constructor prohibited */
125 AliHLTPHOSAgent(const AliHLTPHOSAgent&);
126 /** assignment operator prohibited */
127 AliHLTPHOSAgent& operator=(const AliHLTPHOSAgent&);
129 /** handler for PHOS raw data in the HLTOUT stream */
130 AliHLTPHOSRawDataHandler* fRawDataHandler; //!transient
132 ClassDef(AliHLTPHOSAgent, 1);