Changeset 16 for tools/pixelmap_test


Ignore:
Timestamp:
03/23/09 15:38:22 (16 years ago)
Author:
qweitzel
Message:
bug fixed in pixelmap, verbose mode added
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/pixelmap_test/PixelMapTest.cc

    r11 r16  
    1212    std::cout << std::endl;
    1313
    14     PixelMap* pm = new PixelMap();
     14    PixelMap* pm = new PixelMap(true);
    1515
    1616    pm->Print();
    1717
    18     std::string drs1 = pm->DRS_to_Pixel(0,0,0);
     18    std::string drs1 = pm->DRS_to_Pixel(0,0,0,true);
    1919    std::cout << "Name: " << drs1 << std::endl;
    2020
    21     std::string drs2 = pm->DRS_to_Pixel(1,0,0);
     21    std::string drs2 = pm->DRS_to_Pixel(1,0,0,true);
    2222    std::cout << "Name: " << drs2 << std::endl;
    2323
    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);
    2528    std::cout << "Name: " << hv1 << std::endl;
    2629
    27     std::string hv2 = pm->HV_to_Pixel(1,0,0);
     30    std::string hv2 = pm->HV_to_Pixel(6,9,1,true);
    2831    std::cout << "Name: " << hv2 << std::endl;
    2932
    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);
    3137    std::cout << "Board: " << drsb1 << std::endl;
    3238
    33     unsigned int drsb2 = pm->Pixel_to_DRSboard("1-0-0");
     39    unsigned int drsb2 = pm->Pixel_to_DRSboard("1-0-0",true);
    3440    std::cout << "Board: " << drsb2 << std::endl;
    3541
    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);
    3748    std::cout << "Chain: " << hvchain1 << std::endl;
    3849
    39     unsigned int hvchain2 = pm->Pixel_to_HVchain("1-0-0");
     50    unsigned int hvchain2 = pm->Pixel_to_HVchain("1-0-0",true);
    4051    std::cout << "Chain: " << hvchain2 << std::endl;
    4152
Note: See TracChangeset for help on using the changeset viewer.