source: fact/pixelmap/PixelMap.h@ 17563

Last change on this file since 17563 was 10116, checked in by weitzel, 14 years ago
new version of pixelmap class
File size: 1.5 KB
Line 
1#ifndef PIXELMAP_H
2#define PIXELMAP_H
3
4#include "Pixel.h"
5#include <vector>
6#include <map>
7#include <string>
8
9class PixelMap {
10
11private:
12
13public:
14
15 static const unsigned int PM_ERROR_CODE = 999999999;
16
17 PixelMap(std::string data, bool verbose=false);
18 ~PixelMap();
19
20 std::map<unsigned int, Pixel*> pixelmap;
21
22 void ReadPixelMap(std::map<unsigned int, Pixel*>& pixelmap, std::string data, bool verbose=false);
23 void Print();
24
25 unsigned int FPA_to_Pixel(unsigned int FPAcrate, unsigned int FPAboard, unsigned int FPApatch, unsigned int FPApixel, bool verbose=false);
26 std::vector<unsigned int> HV_to_Pixel(unsigned int HVcrate, unsigned int HVboard, unsigned int HVchannel, bool verbose=false);
27 unsigned int POS_to_Pixel(int POSx, int POSy, bool verbose=false);
28
29 unsigned int Pixel_to_FPAcrate(unsigned int PixelID, bool verbose=false);
30 unsigned int Pixel_to_FPAboard(unsigned int PixelID, bool verbose=false);
31 unsigned int Pixel_to_FPApatch(unsigned int PixelID, bool verbose=false);
32 unsigned int Pixel_to_FPApixel(unsigned int PixelID, bool verbose=false);
33
34 unsigned int Pixel_to_HVcrate(unsigned int PixelID, bool verbose=false);
35 unsigned int Pixel_to_HVboard(unsigned int PixelID, bool verbose=false);
36 unsigned int Pixel_to_HVchannel(unsigned int PixelID, bool verbose=false);
37
38 int Pixel_to_POSx(unsigned int PixelID, bool verbose=false);
39 int Pixel_to_POSy(unsigned int PixelID, bool verbose=false);
40
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.