4 #ifndef ALIHLTOFFLINEDATASOURCE_H
5 #define ALIHLTOFFLINEDATASOURCE_H
6 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
7 * See cxx source for full Copyright notice */
9 /** @file AliHLTOfflineDataSource.h
10 @author Matthias Richter
12 @brief AliRoot data sink component base class.
15 // see below for class documentation
17 // refer to README to build package
19 // visit http://web.ift.uib.no/~kjeks/doc/alice-hlt
21 #include "AliHLTDataSource.h"
22 #include "AliHLTOfflineInterface.h"
24 /******************************************************************************/
27 * @class AliHLTOfflineDataSource
28 * The class implements a AliRoot data source component base class.
29 * The child class must implement the functions:
30 * - @ref DoInit (optional)
31 * - @ref DoDeinit (optional)
33 * - @ref GetComponentID
34 * - @ref GetOutputDataType
35 * - @ref GetOutputDataSize
38 * @note This class is only used for the @ref alihlt_system.
40 * @ingroup alihlt_system
42 class AliHLTOfflineDataSource
43 : public AliHLTDataSource, public AliHLTOfflineInterface {
45 /** standard constructor */
46 AliHLTOfflineDataSource();
47 /** not a valid copy constructor, defined according to effective C++ style */
48 AliHLTOfflineDataSource(const AliHLTOfflineDataSource&);
49 /** not a valid assignment op, but defined according to effective C++ style */
50 AliHLTOfflineDataSource& operator=(const AliHLTOfflineDataSource&);
52 virtual ~AliHLTOfflineDataSource();
55 * Default implementation as sources do not have a real FillESD method.
57 int FillESD(int eventNo, AliRunLoader* runLoader, AliESD* esd) {
58 if (esd==NULL && runLoader==NULL) {
59 // get rid of 'unused parameter' warning
66 ClassDef(AliHLTOfflineDataSource, 1);