#ifndef ALICALORAWSTREAM_H #define ALICALORAWSTREAM_H /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * See cxx source for full Copyright notice */ /* $Id$ */ /////////////////////////////////////////////////////////////////////////////// /// /// This class provides access to Calo digits in raw data. /// ///Modification: Class exported from PHOS to be used by EMCAL and PHOS ///November 2006 Gustavo Conesa Balbastre /////////////////////////////////////////////////////////////////////////////// // --- ROOT system --- #include "TString.h" // --- AliRoot header files --- #include "AliAltroRawStream.h" class AliRawReader; class AliAltroMapping; class AliCaloRawStream: public AliAltroRawStream { public : AliCaloRawStream(AliRawReader* rawReader, TString calo, AliAltroMapping **mapping = NULL); virtual ~AliCaloRawStream(); virtual void Reset(); virtual Bool_t Next(); Int_t GetModule() const {return fModule;} Int_t GetRow() const {return fRow;} Int_t GetColumn() const {return fColumn;} Int_t GetPrevModule() const {return fPrevModule;} Int_t GetPrevRow() const {return fPrevRow;} Int_t GetPrevColumn() const {return fPrevColumn;} Bool_t IsNewModule() const {return GetModule() != GetPrevModule();} Bool_t IsNewRow() const {return (GetRow() != GetPrevRow()) || IsNewModule();} Bool_t IsNewColumn() const {return (GetColumn() != GetPrevColumn()) || IsNewRow();} Int_t GetNRCU() const {return fNRCU;} Int_t GetNSides() const {return fNSides;} TString GetCalorimeter() const {return fCalo;} enum EAliCaloFlag { kLowGain=0, kHighGain=1, kTRUData=2, kLEDMonData=3 }; Bool_t IsLowGain() const {return (fCaloFlag == kLowGain);} Bool_t IsHighGain() const {return (fCaloFlag == kHighGain);} Bool_t IsTRUData() const {return (fCaloFlag == kTRUData);} Bool_t IsLEDMonData() const {return (fCaloFlag == kLEDMonData);} Int_t GetCaloFlag() const { return fCaloFlag; } Int_t GetFilter() const { return fFilter; } void SkipData(EAliCaloFlag caloFlag=kLEDMonData) { fFilter |= (1<