19 #ifndef STSVTGEOMETRY_HH
20 #define STSVTGEOMETRY_HH
22 #include "StSvtWaferCollection.hh"
35 StSvtGeometry(srs_srspar_st* param, svg_geom_st *geom, svg_shape_st *shape);
41 void setBarrelRadius(
double x[6]);
42 void setWaferLength(
double x);
43 void setWaferThickness(
double x);
44 void setWaferWidth(
double x);
45 void setAnodePitch(
double x);
46 void setFocusRegionLength(
double x);
47 void setDistanceInjector(
double x[4]);
48 void setLaserPosition(
double x[5]);
50 double getBarrelRadius(
int layer){
return barrelRadius[layer-1];}
51 double getWaferLength(){
return waferLength;}
52 double getWaferThickness(){
return waferThickness;}
53 double getWaferWidth(){
return waferWidth;}
54 double getAnodePitch(){
return anodePitch;}
55 double getFocusRegionLength(){
return focusRegionLength;}
56 double getDistanceInjector(
int line){
return distanceInjector[line-1];}
57 double getLaserPosition(
int i){
return laserPosition[i];}
59 int getWaferIndex(
int barrel,
int ladder,
int wafer);
60 int getWaferIndex(
int HardWarePos);
61 int getBarrelID(
int layer,
int ladder);
65 double barrelRadius[6];
68 double waferThickness;
71 double focusRegionLength;
72 double distanceInjector[4];
73 double laserPosition[5];
78 inline void StSvtGeometry::setBarrelRadius(
double x[6])
79 {barrelRadius[0] = x[0];
80 barrelRadius[1] = x[1];
81 barrelRadius[2] = x[2];
82 barrelRadius[3] = x[3];
83 barrelRadius[4] = x[4];
84 barrelRadius[5] = x[5];
87 inline void StSvtGeometry::setWaferLength(
double x)
90 inline void StSvtGeometry::setWaferThickness(
double x)
91 {waferThickness = x;};
93 inline void StSvtGeometry::setWaferWidth(
double x)
96 inline void StSvtGeometry::setAnodePitch(
double x)
99 inline void StSvtGeometry::setFocusRegionLength(
double x)
100 {focusRegionLength = x;};
102 inline void StSvtGeometry::setDistanceInjector(
double x[4])
103 {distanceInjector[0] = x[0];
104 distanceInjector[1] = x[1];
105 distanceInjector[2] = x[2];
106 distanceInjector[3] = x[3];
109 inline void StSvtGeometry::setLaserPosition(
double x[5])
110 {laserPosition[0] = x[0];
111 laserPosition[1] = x[1];
112 laserPosition[2] = x[2];
113 laserPosition[3] = x[3];
114 laserPosition[4] = x[4];