Last change
on this file since 11 was 11, checked in by qweitzel, 16 years ago |
Makefile of pixelmap_test adjusted
|
File size:
1.2 KB
|
Line | |
---|
1 | //simple test program to check the PixelMap class
|
---|
2 |
|
---|
3 | #include "../../pixelmap/PixelMap.h"
|
---|
4 | #include <iostream>
|
---|
5 |
|
---|
6 | int main(){
|
---|
7 |
|
---|
8 | std::cout << std::endl;
|
---|
9 | std::cout << "==============================" << std::endl;
|
---|
10 | std::cout << "PixelMap Test Program" << std::endl;
|
---|
11 | std::cout << "==============================" << std::endl;
|
---|
12 | std::cout << std::endl;
|
---|
13 |
|
---|
14 | PixelMap* pm = new PixelMap();
|
---|
15 |
|
---|
16 | pm->Print();
|
---|
17 |
|
---|
18 | std::string drs1 = pm->DRS_to_Pixel(0,0,0);
|
---|
19 | std::cout << "Name: " << drs1 << std::endl;
|
---|
20 |
|
---|
21 | std::string drs2 = pm->DRS_to_Pixel(1,0,0);
|
---|
22 | std::cout << "Name: " << drs2 << std::endl;
|
---|
23 |
|
---|
24 | std::string hv1 = pm->HV_to_Pixel(6,1,8);
|
---|
25 | std::cout << "Name: " << hv1 << std::endl;
|
---|
26 |
|
---|
27 | std::string hv2 = pm->HV_to_Pixel(1,0,0);
|
---|
28 | std::cout << "Name: " << hv2 << std::endl;
|
---|
29 |
|
---|
30 | unsigned int drsb1 = pm->Pixel_to_DRSboard("0-1-1");
|
---|
31 | std::cout << "Board: " << drsb1 << std::endl;
|
---|
32 |
|
---|
33 | unsigned int drsb2 = pm->Pixel_to_DRSboard("1-0-0");
|
---|
34 | std::cout << "Board: " << drsb2 << std::endl;
|
---|
35 |
|
---|
36 | unsigned int hvchain1 = pm->Pixel_to_HVchain("0-1-1");
|
---|
37 | std::cout << "Chain: " << hvchain1 << std::endl;
|
---|
38 |
|
---|
39 | unsigned int hvchain2 = pm->Pixel_to_HVchain("1-0-0");
|
---|
40 | std::cout << "Chain: " << hvchain2 << std::endl;
|
---|
41 |
|
---|
42 | delete pm;
|
---|
43 |
|
---|
44 | return 0;
|
---|
45 |
|
---|
46 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.