3 #ifndef ALIHLTTRIGGERAGENT_H
4 #define ALIHLTTRIGGERAGENT_H
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 */
9 /** @file AliHLTTriggerAgent.h
10 @author Matthias Richter
12 @brief Agent of the libAliHLTTrigger library
15 #include "AliHLTModuleAgent.h"
16 #include "AliHLTOUTHandler.h"
22 * @class AliHLTTriggerAgent
23 * This is the agent for the AliHLTTrigger library.
25 * @ingroup alihlt_system
27 class AliHLTTriggerAgent : public AliHLTModuleAgent {
30 * standard constructor. The agent is automatically registered in the
31 * global agent manager
35 virtual ~AliHLTTriggerAgent();
37 int RegisterComponents(AliHLTComponentHandler* pHandler) const;
40 * Inherited from AliHLTModuleAgent
41 * Register all configurations belonging to this module with the
42 * AliHLTConfigurationHandler. The agent can adapt the configurations
43 * to be registered to the current AliRoot setup by checking the
45 * @param handler the configuration handler
46 * @param rawReader AliRawReader instance
47 * @param runloader AliRoot runloader
48 * @return neg. error code if failed
50 int CreateConfigurations(AliHLTConfigurationHandler* handler,
51 AliRawReader* rawReader=NULL,
52 AliRunLoader* runloader=NULL) const;
55 * Inherited from AliHLTModuleAgent
56 * Get the top configurations belonging to this module.
57 * A top configuration describes a processing chain. It can simply be
58 * described by the last configuration(s) in the chain.
59 * The agent can adapt the configurations to be registered to the current
60 * AliRoot setup by checking the runloader.
61 * @param rawReader AliRawReader instance
62 * @param runloader AliRoot runloader
63 * @return number of configurations, neg. error code if failed
65 const char* GetReconstructionChains(AliRawReader* rawReader=NULL,
66 AliRunLoader* runloader=NULL) const;
69 * Inherited from AliHLTModuleAgent
70 * Component libraries which the configurations of this agent depend on.
71 * @return list of component libraries as a blank-separated string.
73 const char* GetRequiredComponentLibraries() const;
75 int GetHandlerDescription(AliHLTComponentDataType dt,
77 AliHLTOUTHandlerDesc& desc) const;
79 AliHLTOUTHandler* GetOutputHandler(AliHLTComponentDataType dt, AliHLTUInt32_t spec);
81 int DeleteOutputHandler(AliHLTOUTHandler* pInstance);
84 * The handler for trigger decision blocks in the HLTOUT stream.
86 class AliHLTTriggerDecisionHandler : public AliHLTOUTHandler {
89 AliHLTTriggerDecisionHandler();
91 ~AliHLTTriggerDecisionHandler();
94 * Process a data block.
95 * Decode specification and return equipment id of the data block.
96 * The data itsself i untouched.
97 * @return equipment id the block should be used for.
99 int ProcessData(AliHLTOUT* pData);
101 /** inherited from AliHLTOUTHandler */
102 int GetProcessedData(const AliHLTUInt8_t* &pData);
104 /** inherited from AliHLTOUTHandler */
105 int ReleaseProcessedData(const AliHLTUInt8_t* pData, int size);
108 /** copy constructor forbidden */
109 AliHLTTriggerDecisionHandler(const AliHLTTriggerDecisionHandler&);
110 /** assignment operator forbidden */
111 AliHLTTriggerDecisionHandler& operator=(const AliHLTTriggerDecisionHandler&);
113 AliESDEvent* fESD; //!
120 /** copy constructor prohibited */
121 AliHLTTriggerAgent(const AliHLTTriggerAgent&);
122 /** assignment operator prohibited */
123 AliHLTTriggerAgent& operator=(const AliHLTTriggerAgent&);
125 /** handler for trigger decision blocks */
126 AliHLTTriggerDecisionHandler* fTriggerDecisionHandler; //!
128 ClassDef(AliHLTTriggerAgent, 1);