#ifndef HFRPCGEANTGEOMPAR_H #define HFRPCGEANTGEOMPAR_H #include "frpcdef.h" #include "hdetgeompar.h" class HFRpcGeomPar : public HDetGeomPar { public: HFRpcGeomPar(const Char_t *name = "FRpcGeomPar", const Char_t *title = "Geometry simulation parameters of the FRpc", const Char_t *context = "GeomProduction"); Bool_t init(HParIo *, Int_t *); Int_t write(HParIo *); Int_t getCompNum(const TString &); inline Int_t getSecNum(const TString &name) { // returns the module index retrieved from the module name DRxMx return (Int_t)(name[4] - '0') - 1; } inline Int_t getModNumInMod(const TString &name) { // returns the module index 0 return (Int_t)(name[2] - '0') - 1; } inline Int_t getModNumInComp(const TString &name) { // returns the module index 0 return (Int_t)(name[1] - '0') - 1; } ClassDef(HFRpcGeomPar, 1); // Geometry of a FRpc }; #endif // HFRPCGEANTGEOMPAR_H