4 #ifndef ALIHLTOUTDIGITREADER_H
5 #define ALIHLTOUTDIGITREADER_H
6 //* This file is property of and copyright by the ALICE HLT Project *
7 //* ALICE Experiment at CERN, All rights reserved. *
8 //* See cxx source for full Copyright notice */
10 /** @file AliHLTOUTDigitReader.h
11 @author Matthias Richter
13 @brief HLTOUT data wrapper for simulated AliRoot HLT digit data.
16 #include "AliHLTOUTHomerCollection.h"
19 class AliHLTHOMERReader;
25 * @class AliHLTOUTDigitReader
26 * Handler of HLTOUT data for simulated HLT digit input.
28 class AliHLTOUTDigitReader : public AliHLTOUTHomerCollection {
30 /** standard constructor */
31 AliHLTOUTDigitReader(int event=-1, AliHLTEsdManager* pEsdManager=NULL);
33 virtual ~AliHLTOUTDigitReader();
36 // interface functions of AliHLTOUTHomerCollection
37 Bool_t ReadNextData(UChar_t*& data);
40 const AliRawDataHeader* GetDataHeader();
41 void SelectEquipment(int equipmentType, int minEquipmentId = -1, int maxEquipmentId = -1);
45 /** copy constructor prohibited */
46 AliHLTOUTDigitReader(const AliHLTOUTDigitReader&);
47 /** assignment operator prohibited */
48 AliHLTOUTDigitReader& operator=(const AliHLTOUTDigitReader&);
51 * Read the data from the root file and HLTOUT raw tree.
52 * Retrieve the number of branches and allocate arrays acording
53 * to that. After initialization of the arrays and variables, the
54 * event fEnvent is read.
59 * Cleanup tree and data arrays.
63 /** the root file for the HLT 'digit' output */
64 TFile* fpDigitFile; //!transient
66 /** the tree for the HLT 'digit' output */
67 TTree* fpDigitTree; //!transient
69 /** min DDL id for equipment selection */
70 int fMinDDL; //!transient
72 /** max DDL id for equipment selection */
73 int fMaxDDL; //!transient
75 /** array of digit data read from tree */
76 TArrayC** fppDigitArrays; //!transient
78 /** array of equipment ids for the corresponding data blocks in fppDigitArrays */
79 int* fpEquipments; //!transient
81 /** number of DDL objects -> size of the arrays */
82 int fNofDDLs; //!transient
84 /** current position in the array */
85 int fCurrent; //!transient
87 ClassDef(AliHLTOUTDigitReader, 0)