*/
static AliHLTOUT* New(TTree* pDigitTree, int event=-1);
+ /**
+ * Create an AliHLTOUTDigitReader instance
+ * Helper function to transparently access classes from the
+ * libHLTrec library.
+ */
+ static AliHLTOUT* New(const char* filename, int event=-1);
+
/**
* Get the global instance.
* The global instance is set temporarily by the AliHLTOUTGlobalInstanceGuard
*/
int Reset();
+ /**
+ * Get the current event id
+ */
+ AliHLTUInt64_t EventId() {return fCurrentEventId;}
+
/**
* Get number of data blocks in the HLTOUT data
*/
*/
int AddBlockDescriptor(const AliHLTOUTBlockDescriptor desc);
+ /**
+ * Set the event id, only for child classes
+ */
+ void SetEventId(AliHLTUInt64_t id);
+
/**
* Print output or suppress.
*/
*/
const AliHLTOUTHandlerListEntry& FindHandlerDesc(AliHLTUInt32_t blockIndex);
- /**
- * Internal New function for the external HLTOUT instances.
- * Currently supported classes are AliHLTOUTRawReader and
- * AliHLTOUTDigitReader, both implemented in libHLTrec.so.
- */
- static AliHLTOUT* New(const char* classname);
-
/**
* Set the RawReader as parameter.
* The function is for internal use only in conjunction with the
*/
virtual void SetParam(TTree* pDigitTree, int event=-1);
+ /**
+ * Set name of the digit file as parameter
+ * The function is for internal use only in conjunction with the
+ * New() functions.
+ */
+ virtual void SetParam(const char* filename, int event=-1);
+
/** data type for the current block search, set from @ref SelectFirstDataBlock */
AliHLTComponentDataType fSearchDataType; //!transient
const AliHLTUInt8_t* fpObjectBuffer; //!
AliHLTUInt32_t fObjectBufferSize; //!
- ClassDef(AliHLTOUT, 5)
+ /** current event id */
+ AliHLTUInt64_t fCurrentEventId; //!
+
+ ClassDef(AliHLTOUT, 6)
};
#endif