#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 */

Last change: Sat May 22 13:02:07 2010
Last generated: 2010-05-22 13:02

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.