ALIROOT-5433 Transition to CDHv3 in HLT
[u/mrichter/AliRoot.git] / HLT / rec / AliHLTOUTRawReader.h
CommitLineData
176d8684 1//-*- Mode: C++ -*-
8bc2b457 2// $Id$
176d8684 3
4#ifndef ALIHLTOUTRAWREADER_H
5#define ALIHLTOUTRAWREADER_H
8bc2b457 6//* This file is property of and copyright by the *
c5123824 7//* ALICE Experiment at CERN, All rights reserved. *
8bc2b457 8//* See cxx source for full Copyright notice *
176d8684 9
8bc2b457 10/// @file AliHLTOUTRawReader.h
11/// @author Matthias Richter
12/// @date
13/// @brief HLTOUT data wrapper for AliRawReader.
14///
64defa03 15
c5123824 16#include "AliHLTOUTHomerCollection.h"
176d8684 17
18class AliRawReader;
19class AliHLTHOMERReader;
20
21/**
22 * @class AliHLTOUTRawReader
23 * Handler of HLTOUT data for AliRawReader input.
24 */
c5123824 25class AliHLTOUTRawReader : public AliHLTOUTHomerCollection {
176d8684 26 public:
c1292031 27 /** standard constructor */
28 AliHLTOUTRawReader();
176d8684 29 /** constructor */
c5123824 30 AliHLTOUTRawReader(AliRawReader* pRawReader, int event=-1, AliHLTEsdManager* pEsdManager=NULL);
176d8684 31 /** destructor */
32 virtual ~AliHLTOUTRawReader();
33
34 protected:
c5123824 35 // interface functions of AliHLTOUTHomerCollection
36 Bool_t ReadNextData(UChar_t*& data);
37 int Reset();
38 int GetDataSize();
16e6f752 39 AliHLTCDHWrapper GetDataHeader();
c5123824 40 void SelectEquipment(int equipmentType, int minEquipmentId = -1, int maxEquipmentId = -1);
41 int GetEquipmentId();
176d8684 42
43 private:
176d8684 44 /** copy constructor prohibited */
45 AliHLTOUTRawReader(const AliHLTOUTRawReader&);
46 /** assignment operator prohibited */
47 AliHLTOUTRawReader& operator=(const AliHLTOUTRawReader&);
48
c1292031 49 /**
50 * Set the RawReader as parameter.
51 * The function is for internal use only in conjunction with the
52 * AliHLTOUT::New() functions.
53 */
54 void SetParam(AliRawReader* pRawReader) {fpRawreader=pRawReader;}
55
176d8684 56 /** the rawreader */
57 AliRawReader* fpRawreader; //!transient
58
c5123824 59 ClassDef(AliHLTOUTRawReader, 1)
176d8684 60};
61#endif