ROOT logo
#ifndef HGEOMMDCWIREPLANES_H_
#define HGEOMMDCWIREPLANES_H_

#include "hgeomtransform.h"

#include "TObject.h"
#include "TString.h"

#include <vector>

class HGeomMdcWirePlane  : public TObject {
  public:
    TString        planeName;      // name of GEANT volume which contains the wires
    Int_t          planeType;      // 0: cathode plane, 1: sens wire plane, -1: undefined
    Int_t          numWires;       // number of sens and field wires
    Float_t        centralWireNr;  // number of wire which goes through the geometrical center of MDC
    Float_t        wireDist;       // distance between wires
    Float_t        wireOrient;     // inclination angle
    Float_t        wireRadius[2];  // radius of wires (0: cathode wires, 1: sens wires or cathode 4 wires)
    TString        wireMedium[2];  // medium name of wires (0: cathode wires, 1: sens wires)

    HGeomMdcWirePlane(TString n="undefined", Int_t t=-1);
    ~HGeomMdcWirePlane(){};

    void clear();
    void print();

    ClassDef(HGeomMdcWirePlane,1) // Class for MDC wire plane in Geant
};


class HGeomMdcWirePlanes : public TObject {
  private:
    vector <HGeomMdcWirePlane> fplanes;    // vector of all wire planes
  public:
    HGeomMdcWirePlanes() {
      fplanes.reserve(52);
    }
    ~HGeomMdcWirePlanes() {}

    vector<HGeomMdcWirePlane>& getWirePlanes() { return fplanes; }

    HGeomMdcWirePlane& addWirePlane(TString planeName, Int_t planeType);
    void printWirePlanes();

    ClassDef(HGeomMdcWirePlanes,1) // Class for all MDC wire planes in Geant

};

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