]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EMCAL/AliEMCALRawStream.h
Storing the trigger class mask into the raw data header. Should be ok for TPC,PHOS...
[u/mrichter/AliRoot.git] / EMCAL / AliEMCALRawStream.h
CommitLineData
f51151a0 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"
18class AliRawReader;
19
20
21class AliEMCALRawStream: public AliAltroRawStream {
22
23public :
24
25 AliEMCALRawStream(AliRawReader* rawReader);
a5514f03 26 virtual ~AliEMCALRawStream();
f51151a0 27
a5514f03 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);};
f51151a0 37
a5514f03 38protected:
39 AliEMCALRawStream(const AliEMCALRawStream& stream);
40 AliEMCALRawStream& operator = (const AliEMCALRawStream& stream);
41
42 virtual void ApplyAltroMapping();
43
14ce0a6e 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
a5514f03 48
f51151a0 49 ClassDef(AliEMCALRawStream, 0) // class for reading EMCAL raw digits
50 };
51
52#endif