]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/rec/AliHLTOUTDigitReader.h
Update master to aliroot
[u/mrichter/AliRoot.git] / HLT / rec / AliHLTOUTDigitReader.h
index 0d5756e7e3df2ff4e08b3f7f673de8d3f5aa0707..31d70468fb6af12fed01eb0fcf6ebcd5d83d87bc 100644 (file)
@@ -3,17 +3,18 @@
 
 #ifndef ALIHLTOUTDIGITREADER_H
 #define ALIHLTOUTDIGITREADER_H
-//* This file is property of and copyright by the ALICE HLT Project        * 
+//* This file is property of and copyright by the                          * 
 //* ALICE Experiment at CERN, All rights reserved.                         *
-//* See cxx source for full Copyright notice                               */
+//* See cxx source for full Copyright notice                               *
 
-/** @file   AliHLTOUTDigitReader.h
-    @author Matthias Richter
-    @date   
-    @brief  HLTOUT data wrapper for simulated AliRoot HLT digit data.
-*/
+/// @file   AliHLTOUTDigitReader.h
+/// @author Matthias Richter
+/// @date   
+/// @brief  HLTOUT data wrapper for simulated AliRoot HLT digit data.
+///
 
 #include "AliHLTOUTHomerCollection.h"
+#include "TString.h"
 
 class AliRawReader;
 class AliHLTHOMERReader;
@@ -27,8 +28,8 @@ class TArrayC;
  */
 class AliHLTOUTDigitReader : public AliHLTOUTHomerCollection {
  public:
-  /** standard constructor */
-  AliHLTOUTDigitReader(int event=-1, AliHLTEsdManager* pEsdManager=NULL);
+  /** constructor */
+  AliHLTOUTDigitReader(int event=-1, AliHLTEsdManager* pEsdManager=NULL, const char* digitFile="HLT.Digits.root");
   /** destructor */
   virtual ~AliHLTOUTDigitReader();
 
@@ -37,7 +38,7 @@ class AliHLTOUTDigitReader : public AliHLTOUTHomerCollection {
   Bool_t ReadNextData(UChar_t*& data);
   int Reset();
   int GetDataSize();
-  const AliRawDataHeader* GetDataHeader();
+  AliHLTCDHWrapper GetDataHeader();
   void SelectEquipment(int equipmentType, int minEquipmentId = -1, int maxEquipmentId = -1);
   int GetEquipmentId();
 
@@ -60,6 +61,22 @@ class AliHLTOUTDigitReader : public AliHLTOUTHomerCollection {
    */
   int CloseTree();
 
+  /**
+   * Set the RunLoader as parameter
+   * The function is for internal use only in conjunction with the
+   * AliHLTOUT::New() functions.
+   */
+  void SetParam(TTree* pDigitTree, int event=-1);
+
+  /**
+   * Set name of the digit file as parameter
+   * Overloaded from AliHLTOUT
+   */ 
+  void SetParam(const char* filename, int event=-1);
+
+  /** name of the digit file */
+  TString fDigitFileName; //! transient
+
   /** the root file for the HLT 'digit' output */
   TFile* fpDigitFile; //!transient
 
@@ -81,8 +98,8 @@ class AliHLTOUTDigitReader : public AliHLTOUTHomerCollection {
   /** number of DDL objects -> size of the arrays */
   int fNofDDLs; //!transient
 
-  /** current position in the array */
-  int fCurrent; //!transient
+  /** current position in the array of DDLs*/
+  int fCurrentLink; //!transient
 
   ClassDef(AliHLTOUTDigitReader, 0)
 };