ROOT logo
#ifndef HRPCGEOMPAR_H
#define HRPCGEOMPAR_H

#include "hdetgeompar.h"

class HGeomShapes;

class HRpcGeomPar : public HDetGeomPar {
  Int_t maxCells;  
public:
  HRpcGeomPar(const Char_t* name="RpcGeomPar",
              const Char_t* title="Rpc geometry parameters",
              const Char_t* context="GeomProduction");
  ~HRpcGeomPar() {}
  Bool_t init(HParIo*,Int_t*);
  Int_t write(HParIo*);
  inline Int_t getSecNum(const TString&);
  inline Int_t getModNumInMod(const TString&);
  inline Int_t getModNumInComp(const TString&);
  inline Int_t getCompNum(const Int_t, const Int_t);
  Int_t getCompNum(const TString&);
  ClassDef(HRpcGeomPar,1) // Container for the Rpc geometry parameters
};

inline Int_t HRpcGeomPar::getSecNum(const TString& name) {
  // returns the module index retrieved from the module name EBOXx
  return (Int_t)(name[4]-'0')-1;
}

inline Int_t HRpcGeomPar::getModNumInMod(const TString& name) {
  // returns the module index (always 0)
  return 0;
}

inline Int_t HRpcGeomPar::getModNumInComp(const TString& name) {
  // returns the module index (always 0)
  return 0;
}

inline Int_t HRpcGeomPar::getCompNum(const Int_t col, const Int_t cell) {
  // returns the cell index calculated by column and cell number
  return col*maxCells+cell;
}

#endif /* !HRPCGEOMPAR_H */
 hrpcgeompar.h:1
 hrpcgeompar.h:2
 hrpcgeompar.h:3
 hrpcgeompar.h:4
 hrpcgeompar.h:5
 hrpcgeompar.h:6
 hrpcgeompar.h:7
 hrpcgeompar.h:8
 hrpcgeompar.h:9
 hrpcgeompar.h:10
 hrpcgeompar.h:11
 hrpcgeompar.h:12
 hrpcgeompar.h:13
 hrpcgeompar.h:14
 hrpcgeompar.h:15
 hrpcgeompar.h:16
 hrpcgeompar.h:17
 hrpcgeompar.h:18
 hrpcgeompar.h:19
 hrpcgeompar.h:20
 hrpcgeompar.h:21
 hrpcgeompar.h:22
 hrpcgeompar.h:23
 hrpcgeompar.h:24
 hrpcgeompar.h:25
 hrpcgeompar.h:26
 hrpcgeompar.h:27
 hrpcgeompar.h:28
 hrpcgeompar.h:29
 hrpcgeompar.h:30
 hrpcgeompar.h:31
 hrpcgeompar.h:32
 hrpcgeompar.h:33
 hrpcgeompar.h:34
 hrpcgeompar.h:35
 hrpcgeompar.h:36
 hrpcgeompar.h:37
 hrpcgeompar.h:38
 hrpcgeompar.h:39
 hrpcgeompar.h:40
 hrpcgeompar.h:41
 hrpcgeompar.h:42
 hrpcgeompar.h:43
 hrpcgeompar.h:44
 hrpcgeompar.h:45