#ifndef HSTARTGEOMPAR_H #define HSTARTGEOMPAR_H #include "hdetgeompar.h" class HStartGeomPar : public HDetGeomPar { public: HStartGeomPar(const Char_t* name="StartGeomPar", const Char_t* title="Start geometry parameters", const Char_t* context="GeomProduction"); ~HStartGeomPar() {} Bool_t init(HParIo*,Int_t*); Int_t write(HParIo*); inline Int_t getModNumInMod(const TString&); inline Int_t getModNumInComp(const TString&); inline Int_t getCompNum(const TString&); ClassDef(HStartGeomPar,1) // Container for the Start geometry parameters }; inline Int_t HStartGeomPar::getModNumInMod(const TString& name) { // returns the module index retrieved from the module name ISTx return (Int_t)(name[3]-'0'); } inline Int_t HStartGeomPar::getModNumInComp(const TString& name) { // returns the module index retrieved from the strip name Ixxx return (Int_t)(name[1]-'0'); } inline Int_t HStartGeomPar::getCompNum(const TString& name) { // returns the strip index retrieved from the strip name Ixxx return ((Int_t)(name[2]-'0')*10+(Int_t)(name[3]-'0')); } #endif /* !HSTARTGEOMPAR_H */