]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/BASE/AliHLTEsdManager.h
updated my Jet Hadron Correlations task, updated event mixing, included multiple...
[u/mrichter/AliRoot.git] / HLT / BASE / AliHLTEsdManager.h
index 44727b536440f61bf6bcdb093c5d89aab9732f31..454fbbdb673c0d536f51bab705aed6c891fce1a9 100644 (file)
@@ -70,11 +70,11 @@ class AliHLTEsdManager : public AliHLTLogging {
    * where 'det' is derived from the data type origin. Each time the function is invoked
    * a new event is created. Dummy events are added if the previous events did not contain
    *
-   * @param pBuffer  [in] the data buffer
-   * @param size     [in] data buffer size
-   * @param dt       [in] data type of the block
-   * @param tgtesd   [out] optional target
-   * @param eventno  [in] optional event no
+   * @param [in]  pBuffer  the data buffer
+   * @param [in]  size     data buffer size
+   * @param [in]  dt       data type of the block
+   * @param [out] tgtesd   optional target
+   * @param [in]  eventno  optional event no
    */
   virtual int WriteESD(const AliHLTUInt8_t* pBuffer, AliHLTUInt32_t size, AliHLTComponentDataType dt,
               AliESDEvent* tgtesd=NULL, int eventno=-1)=0;
@@ -114,7 +114,12 @@ class AliHLTEsdManager : public AliHLTLogging {
    * Create an AliESDEvent object.
    * The standard content can optionally be initialized.
    */
-  virtual AliESDEvent* CreateEsdEvent(bool bCreateStdContent=false) const = 0;
+  virtual TObject* CreateEsdEvent(bool bCreateStdContent=false) const = 0;
+
+  /**
+   * Delete instance of AliESDEvent
+   */
+  virtual int DestroyEsdEvent(TObject* pESDInstance) const=0;
 
   /**
    * Add object to ESD event.
@@ -122,7 +127,7 @@ class AliHLTEsdManager : public AliHLTLogging {
    * Note: some of the objects have (branch-)names which differ from the object name
    * However, parameter branchname is never used when adding an object not yet existing.
    */
-  virtual int AddObject(AliESDEvent* pESD, const TObject* pObject, const char* branchname) const = 0;
+  virtual int AddObject(TObject* pESDInstance, const TObject* pObject, const char* branchname) const = 0;
 
   /**
    * Reset the specified object.
@@ -130,7 +135,7 @@ class AliHLTEsdManager : public AliHLTLogging {
    * The actual implementation is outside the HLT base library in a
    * child class.
    */
-  virtual int ResetEsdEvent(AliESDEvent* pESD) const = 0;
+  virtual int ResetEsdEvent(TObject* pESDInstance) const = 0;
 
  protected:
   /** constructor */