StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StSvtWaferGeometry.cc
1 /***************************************************************************
2  *
3  * $Id: StSvtWaferGeometry.cc,v 1.2 2007/03/21 17:22:21 fisyak Exp $
4  *
5  * Author: Marcelo Munhoz
6  ***************************************************************************
7  *
8  * Description: SVT Wafer Geometry
9  *
10  ***************************************************************************
11  *
12  * $Log: StSvtWaferGeometry.cc,v $
13  * Revision 1.2 2007/03/21 17:22:21 fisyak
14  * Ivan Kotov's drift velocities, use TGeoHMatrix for coordinate transformation
15  *
16  * Revision 1.1 2001/08/16 21:02:04 munhoz
17  * changing StObjArray to StStrArray. StSvtConfig reestructured. New classes for geometry DB
18  *
19  *
20  **************************************************************************/
22 // //
23 // This class represents the SVT Geometry object. //
24 // //
26 #include "Stiostream.h"
27 #include "StSvtWaferGeometry.hh"
28 #include "StMessMgr.h"
29 #include "TString.h"
30 
31 ClassImp(StSvtWaferGeometry);
32 
33 //________________________________________________________________________________
34 StSvtWaferGeometry::StSvtWaferGeometry(int barrel, int ladder, int wafer) :
35  TGeoHMatrix(), StSvtHybrid(barrel, ladder, wafer, 0) {setName();}
36 //________________________________________________________________________________
37 StSvtWaferGeometry::StSvtWaferGeometry(int barrel, int ladder, int wafer, TGeoHMatrix &martix) :
38  TGeoHMatrix(martix), StSvtHybrid(barrel, ladder, wafer, 0) {setName();}
39 //________________________________________________________________________________
40 void StSvtWaferGeometry::setName() {
41  id = 1000*getLayerID() + 100*getWaferID() + getLadderID() ;
42  SetName(Form("R%04i",id));
43 }
44 //________________________________________________________________________________
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);
52 }