- Timestamp:
- 03/23/09 15:38:22 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/pixelmap_test/PixelMapTest.cc
r11 r16 12 12 std::cout << std::endl; 13 13 14 PixelMap* pm = new PixelMap( );14 PixelMap* pm = new PixelMap(true); 15 15 16 16 pm->Print(); 17 17 18 std::string drs1 = pm->DRS_to_Pixel(0,0,0 );18 std::string drs1 = pm->DRS_to_Pixel(0,0,0,true); 19 19 std::cout << "Name: " << drs1 << std::endl; 20 20 21 std::string drs2 = pm->DRS_to_Pixel(1,0,0 );21 std::string drs2 = pm->DRS_to_Pixel(1,0,0,true); 22 22 std::cout << "Name: " << drs2 << std::endl; 23 23 24 std::string hv1 = pm->HV_to_Pixel(6,1,8); 24 std::string drs3 = pm->DRS_to_Pixel(0,0,0,true); 25 std::cout << "Name: " << drs3 << std::endl; 26 27 std::string hv1 = pm->HV_to_Pixel(6,1,8,true); 25 28 std::cout << "Name: " << hv1 << std::endl; 26 29 27 std::string hv2 = pm->HV_to_Pixel( 1,0,0);30 std::string hv2 = pm->HV_to_Pixel(6,9,1,true); 28 31 std::cout << "Name: " << hv2 << std::endl; 29 32 30 unsigned int drsb1 = pm->Pixel_to_DRSboard("0-1-1"); 33 std::string hv3 = pm->HV_to_Pixel(1,0,0,true); 34 std::cout << "Name: " << hv3 << std::endl; 35 36 unsigned int drsb1 = pm->Pixel_to_DRSboard("0-1-1",true); 31 37 std::cout << "Board: " << drsb1 << std::endl; 32 38 33 unsigned int drsb2 = pm->Pixel_to_DRSboard("1-0-0" );39 unsigned int drsb2 = pm->Pixel_to_DRSboard("1-0-0",true); 34 40 std::cout << "Board: " << drsb2 << std::endl; 35 41 36 unsigned int hvchain1 = pm->Pixel_to_HVchain("0-1-1"); 42 pm->Print(); 43 44 std::string drs4 = pm->DRS_to_Pixel(0,0,1,true); 45 std::cout << "Name: " << drs4 << std::endl; 46 47 unsigned int hvchain1 = pm->Pixel_to_HVchain("0-1-1",true); 37 48 std::cout << "Chain: " << hvchain1 << std::endl; 38 49 39 unsigned int hvchain2 = pm->Pixel_to_HVchain("1-0-0" );50 unsigned int hvchain2 = pm->Pixel_to_HVchain("1-0-0",true); 40 51 std::cout << "Chain: " << hvchain2 << std::endl; 41 52
Note:
See TracChangeset
for help on using the changeset viewer.