+//-*- Mode: C++ -*-
// @(#) $Id$
#ifndef ALIHLTDATASOURCE_H
@note The class is used in Offline (AliRoot) context
*/
+// see below for class documentation
+// or
+// refer to README to build package
+// or
+// visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
+
#include "AliHLTComponent.h"
/**
* - @ref DoDeinit (optional)
* - @ref GetEvent
* - @ref GetComponentID
- * - @ref GetInputDataTypes
* - @ref GetOutputDataType
* - @ref GetOutputDataSize
* - @ref Spawn
* preparation of data structures. The call is redirected to GetEvent.
* @return neg. error code if failed
*/
- int ProcessEvent( const AliHLTComponent_EventData& evtData,
- const AliHLTComponent_BlockData* blocks,
- AliHLTComponent_TriggerData& trigData,
+ int DoProcessing( const AliHLTComponentEventData& evtData,
+ const AliHLTComponentBlockData* blocks,
+ AliHLTComponentTriggerData& trigData,
AliHLTUInt8_t* outputPtr,
AliHLTUInt32_t& size,
- AliHLTUInt32_t& outputBlockCnt,
- AliHLTComponent_BlockData*& outputBlocks,
- AliHLTComponent_EventDoneData*& edd );
+ vector<AliHLTComponentBlockData>& outputBlocks,
+ AliHLTComponentEventDoneData*& edd );
// Information member functions for registration.
*/
TComponentType GetComponentType() { return AliHLTComponent::kSource;}
+ /**
+ * Default implementation for all data sources.
+ * There are no input data types.
+ */
+ void GetInputDataTypes( vector<AliHLTComponentDataType>& list);
+
private:
+
/**
- * Data processing method for the component.
+ * The low-level data processing method for the component.
+ * This is the custom processing method and can be overloaded by
+ * the component.
* @param evtData event data structure
* @param trigData trigger data structure
* @param outputPtr pointer to target buffer
* @param size <i>input</i>: size of target buffer
* <i>output</i>:size of produced data
* @param outputBlocks list to receive output block descriptors
- * @return
+ * @return neg. error code if failed
+ */
+ virtual int GetEvent( const AliHLTComponentEventData& evtData,
+ AliHLTComponentTriggerData& trigData,
+ AliHLTUInt8_t* outputPtr,
+ AliHLTUInt32_t& size,
+ vector<AliHLTComponentBlockData>& outputBlocks );
+
+ /**
+ * The high-level data processing method.
+ * This is the default processing method; the method is called
+ * if no low level @ref GetEvent method is overloaded by the component.
+ * @param evtData event data structure
+ * @param trigData trigger data structure
+ * @return neg. error code if failed
*/
- virtual int GetEvent( const AliHLTComponent_EventData& evtData,
- AliHLTComponent_TriggerData& trigData,
- AliHLTUInt8_t* outputPtr,
- AliHLTUInt32_t& size,
- vector<AliHLTComponent_BlockData>& outputBlocks ) = 0;
+ virtual int GetEvent( const AliHLTComponentEventData& evtData, AliHLTComponentTriggerData& trigData);
- ClassDef(AliHLTDataSource, 0)
+ ClassDef(AliHLTDataSource, 1)
};
#endif