ROOT logo
#ifndef HMDCGEOMPAR_H
#define HMDCGEOMPAR_H

#include "hdetgeompar.h"

class HGeomShapes;

class HMdcGeomPar : public HDetGeomPar {
public:
  HMdcGeomPar(const Char_t* name="MdcGeomPar",
              const Char_t* title="Mdc geometry parameters",
              const Char_t* context="GeomProduction");
  ~HMdcGeomPar() {}
  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 TString&);
  void shiftLayerTransToCenter();
  ClassDef(HMdcGeomPar,1) // Container for the MDC geometry parameters
};

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

inline Int_t HMdcGeomPar::getModNumInMod(const TString& name) {
  // returns the module index retrieved from the module name DRxMx
  return (Int_t)(name[2]-'0')-1;
}

inline Int_t HMdcGeomPar::getModNumInComp(const TString& name) {
  // returns the module index retrieved from the layer name DxLx
  return (Int_t)(name[1]-'0')-1;
}

inline Int_t HMdcGeomPar::getCompNum(const TString& name) {
  // returns the layer index retrieved from the layer name DxLx
  return (Int_t)(name[3]-'0')-1;
}

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