3 #ifndef ALIHLTPHOSAGENT_H
4 #define ALIHLTPHOSAGENT_H
5 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
6 * See cxx source for full Copyright notice */
8 /** @file AliHLTPHOSAgent.h
9 @author Oystein Djuvsland
11 @brief Agent of the libAliHLTPHOS library
14 #include "AliHLTModuleAgent.h"
15 #include "AliHLTOUTHandlerEquId.h"
17 class AliHLTOUTHandlerChain;
20 * @class AliHLTPHOSAgent
21 * This is the agent for the AliHLTPHOS library.
23 * @ingroup alihlt_system
25 class AliHLTPHOSAgent : public AliHLTModuleAgent {
28 * standard constructor. The agent is automatically registered in the
29 * global agent manager
33 virtual ~AliHLTPHOSAgent();
35 UInt_t GetDetectorMask() const;
38 * Register all configurations belonging to this module with the
39 * AliHLTConfigurationHandler. The agent can adapt the configurations
40 * to be registered to the current AliRoot setup by checking the
42 * @param handler the configuration handler
43 * @param rawReader AliRawReader instance
44 * @param runloader AliRoot runloader
45 * @return neg. error code if failed
47 int CreateConfigurations(AliHLTConfigurationHandler* handler,
48 AliRawReader* rawReader=NULL,
49 AliRunLoader* runloader=NULL) const;
52 * Get the top configurations belonging to this module.
53 * A top configuration describes a processing chain. It can simply be
54 * described by the last configuration(s) in the chain.
55 * The agent can adapt the configurations to be registered to the current
56 * AliRoot setup by checking the runloader.
57 * @param rawReader AliRawReader instance
58 * @param runloader AliRoot runloader
59 * @return number of configurations, neg. error code if failed
61 const char* GetReconstructionChains(AliRawReader* rawReader=NULL,
62 AliRunLoader* runloader=NULL) const;
65 * Component libraries which the configurations of this agent depend on.
66 * @return list of component libraries as a blank-separated string.
68 const char* GetRequiredComponentLibraries() const;
71 * Register components for the AliHLTPHOS library.
72 * @param [in] pHandler instance of the component handler
74 int RegisterComponents(AliHLTComponentHandler* pHandler) const;
77 * Get handler decription for PHOS data in the HLTOUT data stream.
78 * @param [in] dt data type of the block
79 * @param [in] spec specification of the block
80 * @param [out] desc handler description
81 * @return 1 if the agent can provide a handler, 0 if not
83 int GetHandlerDescription(AliHLTComponentDataType dt,
85 AliHLTOUTHandlerDesc& desc) const;
88 * Get specific handler for PHOS data in the HLTOUT data stream.
89 * @param [in] dt data type of the block
90 * @param [in] spec specification of the block
91 * @return pointer to handler
93 AliHLTOUTHandler* GetOutputHandler(AliHLTComponentDataType dt,
97 * Delete an HLTOUT handler.
98 * @param pInstance pointer to handler
100 int DeleteOutputHandler(AliHLTOUTHandler* pInstance);
103 * The handler for PHOS RAW data in the HLTOUT stream.
105 class AliHLTPHOSRawDataHandler : public AliHLTOUTHandlerEquId {
108 AliHLTPHOSRawDataHandler();
110 ~AliHLTPHOSRawDataHandler();
113 * Process a data block.
114 * Decode specification and return equipment id of the data block.
115 * The data itsself i untouched.
116 * @return equipment id the block should be used for.
118 int ProcessData(AliHLTOUT* pData);
127 /** copy constructor prohibited */
128 AliHLTPHOSAgent(const AliHLTPHOSAgent&);
129 /** assignment operator prohibited */
130 AliHLTPHOSAgent& operator=(const AliHLTPHOSAgent&);
132 /** handler for PHOS raw data in the HLTOUT stream */
133 AliHLTPHOSRawDataHandler* fRawDataHandler; //!transient
135 ClassDef(AliHLTPHOSAgent, 1);