#ifndef HEMCCELLSTATUSPAR_H #define HEMCCELLSTATUSPAR_H #include "emcdef.h" #include "TArrayI.h" #include "hparcond.h" class HParamList; class HEmcCellStatusPar : public HParCond { protected: TArrayI cellStatus; // Status of cell: 0=dead/off, 1=on public: HEmcCellStatusPar(const Char_t* name ="EmcCellStatusPar", const Char_t* title ="Cell status parameters for the Emc Detector", const Char_t* context="EmcCellStatusProduction"); ~HEmcCellStatusPar() {;} Int_t getCellStatus(Int_t sec, Int_t cell) { return cellStatus[163*sec+cell]; } void setCellStatus(Int_t sec, Int_t cell, Int_t a); Int_t getTileStatus(Int_t sec, Int_t tile) { return getCellStatus(sec, emc_tile2cell_map[tile]); } void setTileStatus(Int_t sec, Int_t tile, Int_t a) { setCellStatus(sec, emc_tile2cell_map[tile], a); } void printCellParams(); void clear(); void putParams(HParamList*); Bool_t getParams(HParamList*); ClassDef(HEmcCellStatusPar,1) // Container for Emc cell status parameters }; #endif /* !HEMCCELLSTATUSPAR_H */