]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTOUT.h
Cosmetics. Fixed bug preventing creation of async block list
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTOUT.h
index 89bd008e0680da7faeb31da84d371f03a937e8a1..747cfbad0e6c15e5cfc71c6e9ebe2645b21a3cae 100644 (file)
@@ -58,6 +58,13 @@ class AliHLTOUT {
    */
   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
@@ -367,6 +374,11 @@ class AliHLTOUT {
    */
   int Reset();
 
+  /**
+   * Get the current event id
+   */
+  AliHLTUInt64_t EventId() {return fCurrentEventId;}
+
   /**
    * Get number of data blocks in the HLTOUT data
    */
@@ -603,6 +615,11 @@ class AliHLTOUT {
    */
   int AddBlockDescriptor(const AliHLTOUTBlockDescriptor desc);
 
+  /**
+   * Set the event id, only for child classes
+   */
+  void SetEventId(AliHLTUInt64_t id);
+
   /**
    * Print output or suppress.
    */
@@ -721,13 +738,6 @@ class AliHLTOUT {
    */
   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
@@ -742,6 +752,13 @@ class AliHLTOUT {
    */
   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
 
@@ -780,6 +797,9 @@ class AliHLTOUT {
   const AliHLTUInt8_t* fpObjectBuffer; //!
   AliHLTUInt32_t fObjectBufferSize; //!
 
-  ClassDef(AliHLTOUT, 5)
+  /** current event id */
+  AliHLTUInt64_t fCurrentEventId; //!
+
+  ClassDef(AliHLTOUT, 6)
 };
 #endif