ROOT logo
#ifndef HRPCGEOMCELLPAR_H
#define HRPCGEOMCELLPAR_H
#include "TArrayF.h"
#include "hparcond.h"

class HParamList;

class HRpcGeomCellPar : public HParCond {
protected:
    TArrayF fXcell;     // X position at module (left-down cell corner) [mm] 
    TArrayF fYcell;     // Y position at module (left-down cell corner) [mm]
    TArrayF fLcell;     // Cell lenght (down edge) [mm] 
    TArrayF fWcell;     // Cell width [mm]
    Float_t fDPlanes;   // Efective distance between layers ( center of the active regions of the two layers) [mm]
    Float_t fDeltaZ;    // Thickness of the cell active region (between inner and outer gaps) [mm]
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) // Container for the RPC cells geometry parameters
};
#endif  /*!HRPCGEOMCELLPAR_H*/
 hrpcgeomcellpar.h:1
 hrpcgeomcellpar.h:2
 hrpcgeomcellpar.h:3
 hrpcgeomcellpar.h:4
 hrpcgeomcellpar.h:5
 hrpcgeomcellpar.h:6
 hrpcgeomcellpar.h:7
 hrpcgeomcellpar.h:8
 hrpcgeomcellpar.h:9
 hrpcgeomcellpar.h:10
 hrpcgeomcellpar.h:11
 hrpcgeomcellpar.h:12
 hrpcgeomcellpar.h:13
 hrpcgeomcellpar.h:14
 hrpcgeomcellpar.h:15
 hrpcgeomcellpar.h:16
 hrpcgeomcellpar.h:17
 hrpcgeomcellpar.h:18
 hrpcgeomcellpar.h:19
 hrpcgeomcellpar.h:20
 hrpcgeomcellpar.h:21
 hrpcgeomcellpar.h:22
 hrpcgeomcellpar.h:23
 hrpcgeomcellpar.h:24
 hrpcgeomcellpar.h:25
 hrpcgeomcellpar.h:26
 hrpcgeomcellpar.h:27
 hrpcgeomcellpar.h:28
 hrpcgeomcellpar.h:29
 hrpcgeomcellpar.h:30
 hrpcgeomcellpar.h:31
 hrpcgeomcellpar.h:32
 hrpcgeomcellpar.h:33
 hrpcgeomcellpar.h:34
 hrpcgeomcellpar.h:35
 hrpcgeomcellpar.h:36
 hrpcgeomcellpar.h:37
 hrpcgeomcellpar.h:38
 hrpcgeomcellpar.h:39
 hrpcgeomcellpar.h:40
 hrpcgeomcellpar.h:41
 hrpcgeomcellpar.h:42
 hrpcgeomcellpar.h:43
 hrpcgeomcellpar.h:44
 hrpcgeomcellpar.h:45
 hrpcgeomcellpar.h:46