1 #ifndef ALIEMCALRAWSTREAM_H
2 #define ALIEMCALRAWSTREAM_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
8 ///////////////////////////////////////////////////////////////////////////////
10 /// This class provides access to EMCAL digits in raw data.
12 ///////////////////////////////////////////////////////////////////////////////
14 // --- ROOT system ---
16 // --- AliRoot header files ---
17 #include "AliAltroRawStream.h"
21 class AliEMCALRawStream: public AliAltroRawStream {
25 AliEMCALRawStream(AliRawReader* rawReader);
26 virtual ~AliEMCALRawStream();
29 virtual Bool_t Next();
31 Int_t GetId() const {return fId;};
32 Int_t GetPrevId() const {return fPrevId;};
33 Int_t GetModule() const {return fModule;}
34 Int_t GetPrevModule() const {return fPrevModule;}
35 Bool_t IsNewId() const {return (fId != fPrevId);};
36 Bool_t IsNewModule() const {return (fModule != fPrevModule) || (fId != fPrevId);};
39 AliEMCALRawStream(const AliEMCALRawStream& stream);
40 AliEMCALRawStream& operator = (const AliEMCALRawStream& stream);
42 virtual void ApplyAltroMapping();
44 Int_t fId; //Id of channel
45 Int_t fPrevId; //previous id
46 Int_t fModule; //module containing channel
47 Int_t fPrevModule; //previous module
49 ClassDef(AliEMCALRawStream, 0) // class for reading EMCAL raw digits