]> git.uio.no Git - u/mrichter/AliRoot.git/blob - EMCAL/AliEMCALRawStream.h
updates from Raffaele for assigning volume names in AddAlignableVolumes
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALRawStream.h
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                               */
5
6 /* $Id$ */
7
8 ///////////////////////////////////////////////////////////////////////////////
9 ///
10 /// This class provides access to EMCAL digits in raw data.
11 ///
12 ///////////////////////////////////////////////////////////////////////////////
13
14 // --- ROOT system ---
15
16 // --- AliRoot header files ---
17 #include "AliAltroRawStream.h"
18 class AliRawReader;
19
20
21 class AliEMCALRawStream: public AliAltroRawStream {
22
23 public :
24   
25   AliEMCALRawStream(AliRawReader* rawReader);
26   virtual ~AliEMCALRawStream();
27   
28   virtual void             Reset();
29   virtual Bool_t           Next();
30
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);};
37   
38 protected:
39   AliEMCALRawStream(const AliEMCALRawStream& stream);
40   AliEMCALRawStream& operator = (const AliEMCALRawStream& stream);
41
42   virtual void ApplyAltroMapping();
43
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
48
49   ClassDef(AliEMCALRawStream, 0)   // class for reading EMCAL raw digits
50     };
51
52 #endif