27 #include "StSvtWaferGeometry.hh"
28 #include "StMessMgr.h"
34 StSvtWaferGeometry::StSvtWaferGeometry(
int barrel,
int ladder,
int wafer) :
35 TGeoHMatrix(),
StSvtHybrid(barrel, ladder, wafer, 0) {setName();}
37 StSvtWaferGeometry::StSvtWaferGeometry(
int barrel,
int ladder,
int wafer, TGeoHMatrix &martix) :
38 TGeoHMatrix(martix),
StSvtHybrid(barrel, ladder, wafer, 0) {setName();}
40 void StSvtWaferGeometry::setName() {
41 id = 1000*getLayerID() + 100*getWaferID() + getLadderID() ;
42 SetName(Form(
"R%04i",
id));
45 void StSvtWaferGeometry::print(Option_t *option) {
46 cout <<
"Barrel " << getBarrelID()
47 <<
"\tLayer " << getLayerID()
48 <<
"\tLadder " << getLadderID()
49 <<
"\tWafer " << getWaferID()
50 <<
"\tHybrid " << getHybridID() <<
"\t";
51 ((TGeoHMatrix *)
this)->Print(option);