StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
eeSmdGeomTest.C
1 void eeSmdGeomTest() {
2 
3  // Test that the new StEEmcSmdGeom class behaves the same as
4  // the original
5 
6  gROOT -> LoadMacro("libs.C");
7  libs();
8 
9  StEEmcSmdGeom *smdGeom = StEEmcSmdGeom::instance();
10  smdGeom -> printGeom();
11 
12 
13  for ( Int_t i = 0; i < 12; i++ ) {
14 
15  smdGeom -> printSector( smdGeom -> getEEmcSector(0, i) );
16  smdGeom -> printSector( smdGeom -> getEEmcSector(1, i) );
17 
18  smdGeom -> printSectorPhis( 0, i );
19  smdGeom -> printSectorPhis( 1, i );
20  smdGeom -> printSectorPhis( 2, i );
21 
22  }
23 
24 
25 
26  for ( Int_t isector = 0; isector < 12; isector++ ) {
27 
28  for ( Int_t istrip = 0;
29  istrip < smdGeom -> getNStrips(isector,0);
30  istrip+=36 ) {
31 
32  smdGeom -> printStrip(*smdGeom -> getStripPtr(istrip,0,isector));
33  smdGeom -> printStrip(*smdGeom -> getStripPtr(istrip,1,isector));
34 
35  }
36 
37  }
38 
39 
40 
41 
42 }