Changeset 10116 for fact/pixelmap/PixelMap.h
- Timestamp:
- 01/24/11 12:04:23 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/pixelmap/PixelMap.h
r18 r10116 3 3 4 4 #include "Pixel.h" 5 #include <vector> 5 6 #include <map> 6 7 #include <string> 7 #include <map>8 8 9 9 class PixelMap { … … 13 13 public: 14 14 15 PixelMap(std::string file, bool verbose=false); 15 static const unsigned int PM_ERROR_CODE = 999999999; 16 17 PixelMap(std::string data, bool verbose=false); 16 18 ~PixelMap(); 17 19 18 std::map< std::string, Pixel*> pixelmap;20 std::map<unsigned int, Pixel*> pixelmap; 19 21 20 void ReadPixelMap(std::map< std::string, Pixel*>& pixelmap, std::string file, bool verbose=false);22 void ReadPixelMap(std::map<unsigned int, Pixel*>& pixelmap, std::string data, bool verbose=false); 21 23 void Print(); 22 24 23 std::string DRS_to_Pixel(unsigned int DRSboard, unsigned int DRSchip, unsigned int DRSchannel, bool verbose=false); 24 std::string HV_to_Pixel(unsigned int HVboard, unsigned int HVchain, unsigned int HVchannel, bool verbose=false); 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); 25 28 26 unsigned int Pixel_to_DRSboard(std::string pixelname, bool verbose=false); 27 unsigned int Pixel_to_DRSchip(std::string pixelname, bool verbose=false); 28 unsigned int Pixel_to_DRSchannel(std::string pixelname, bool verbose=false); 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); 29 33 30 unsigned int Pixel_to_HVboard(std::string pixelname, bool verbose=false); 31 unsigned int Pixel_to_HVchain(std::string pixelname, bool verbose=false); 32 unsigned int Pixel_to_HVchannel(std::string pixelname, bool verbose=false); 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); 33 40 34 41 };
Note:
See TracChangeset
for help on using the changeset viewer.