#ifndef HRPCGEOMCELLPAR_H
#define HRPCGEOMCELLPAR_H
#include "TArrayF.h"
#include "hparcond.h"
class HParamList;
class HRpcGeomCellPar : public HParCond {
protected:
TArrayF fXcell;
TArrayF fYcell;
TArrayF fLcell;
TArrayF fWcell;
Float_t fDPlanes;
Float_t fDeltaZ;
public:
HRpcGeomCellPar(const Char_t* name ="RpcGeomCellPar",
const Char_t* title ="Geometry parameters of cells for the Rpc Detector",
const Char_t* context="RpcGeomCellProduction");
~HRpcGeomCellPar();
Float_t getX(Int_t col,Int_t cell) {return (cell<0||cell>31||col<0||col>5)? -10000 :fXcell[32*col+cell];}
void setX(Int_t col,Int_t cell,Float_t x) {fXcell[32*col+cell]=x;}
Float_t getY(Int_t col,Int_t cell) {return (cell<0||cell>31||col<0||col>5)? -10000 :fYcell[32*col+cell];}
void setY(Int_t col,Int_t cell,Float_t y) {fYcell[32*col+cell]=y;}
Float_t getLength(Int_t col,Int_t cell) {return (cell<0||cell>31||col<0||col>5)? -10000 :fLcell[32*col+cell];}
void setLength(Int_t col,Int_t cell,Float_t len) {fLcell[32*col+cell]=len;}
Float_t getWidth(Int_t col,Int_t cell) {return (cell<0||cell>31||col<0||col>5)? -10000 :fWcell[32*col+cell];}
void setWidth(Int_t col,Int_t cell,Float_t wid) {fWcell[32*col+cell]=wid;}
Float_t getDPlanes() {return fDPlanes;}
void setDPlanes(Float_t dp) {fDPlanes=dp;}
Float_t getDeltaZ() {return fDeltaZ;}
void setDeltaZ(Float_t dz) {fDeltaZ=dz;}
void putParams(HParamList*);
Bool_t getParams(HParamList*);
void clear();
ClassDef(HRpcGeomCellPar,1)
};
#endif /*!HRPCGEOMCELLPAR_H*/