ROOT logo
#ifndef HGEOMMDC_H
#define HGEOMMDC_H

#include "hgeomset.h"
#include "TString.h"

class HGeomBuilder;
class HGeomMedia;
class HGeomMdcWire;

class  HGeomMdc : public HGeomSet {
protected:
  Char_t modName[6];                 // name of module
  Char_t eleName[3];                 // substring for elements in module
  Char_t wnbuf[36];                  // character array to generate the wire names
  Int_t wn0 , wn1 , wn2 , wn3;       // indexes in character array
  vector<HGeomMdcWire*> wireObjects; // temporary working array for creation of cathode wires
public:
  HGeomMdc();
  ~HGeomMdc() {}
  const Char_t* getModuleName(Int_t);
  const Char_t* getEleName(Int_t);
  inline Int_t getSecNumInMod(const TString&);
  inline Int_t getModNumInMod(const TString&);
protected:
  Bool_t createAdditionalGeometry(HGeomBuilder*, const TString&, HGeomMedia*);
  void generateWireName(TString& vName);
  void clearWireObjects();
  Int_t addWireObject(Int_t, TString&, Int_t, Int_t, Float_t, Double_t, Double_t, Double_t,  Double_t);
  ClassDef(HGeomMdc,0) // Class for geometry of Mdc
};

#endif  /* !HGEOMMDC_H */

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

inline Int_t HGeomMdc::getModNumInMod(const TString& name) {
  // returns the module index retrieved from DRxMx
  return (Int_t)(name[2]-'0')-1;
}
 hgeommdc.h:1
 hgeommdc.h:2
 hgeommdc.h:3
 hgeommdc.h:4
 hgeommdc.h:5
 hgeommdc.h:6
 hgeommdc.h:7
 hgeommdc.h:8
 hgeommdc.h:9
 hgeommdc.h:10
 hgeommdc.h:11
 hgeommdc.h:12
 hgeommdc.h:13
 hgeommdc.h:14
 hgeommdc.h:15
 hgeommdc.h:16
 hgeommdc.h:17
 hgeommdc.h:18
 hgeommdc.h:19
 hgeommdc.h:20
 hgeommdc.h:21
 hgeommdc.h:22
 hgeommdc.h:23
 hgeommdc.h:24
 hgeommdc.h:25
 hgeommdc.h:26
 hgeommdc.h:27
 hgeommdc.h:28
 hgeommdc.h:29
 hgeommdc.h:30
 hgeommdc.h:31
 hgeommdc.h:32
 hgeommdc.h:33
 hgeommdc.h:34
 hgeommdc.h:35
 hgeommdc.h:36
 hgeommdc.h:37
 hgeommdc.h:38
 hgeommdc.h:39
 hgeommdc.h:40
 hgeommdc.h:41
 hgeommdc.h:42
 hgeommdc.h:43