Changeset 10116 for fact/pixelmap/Pixel.cc
- Timestamp:
- 01/24/11 12:04:23 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/pixelmap/Pixel.cc
r16 r10116 1 #include "Pixel Map.h"1 #include "Pixel.h" 2 2 #include <iostream> 3 3 4 Pixel::Pixel() : _DRSboard(999999999), _DRSchip(999999999), _DRSchannel(999999999), 5 _HVboard(999999999), _HVchain(999999999), _HVchannel(999999999) { } 4 Pixel::Pixel() : _FPAcrate(0), _FPAboard(0), _FPApatch(0), _FPApixel(0), 5 _HVcrate(0), _HVboard(0), _HVchannel(0), 6 _POSx(0), _POSy(0) { 6 7 7 Pixel::Pixel(unsigned int DRSboard, unsigned int DRSchip, unsigned int DRSchannel, 8 unsigned int HVboard, unsigned int HVchain, unsigned int HVchannel) 9 : _DRSboard(DRSboard), _DRSchip(DRSchip), _DRSchannel(DRSchannel), 10 _HVboard(HVboard), _HVchain(HVchain), _HVchannel(HVchannel) { 8 } 11 9 12 //???check here whether values make sense and eventually give error messages??? 10 Pixel::Pixel(unsigned int FPAcrate, unsigned int FPAboard, unsigned int FPApatch, unsigned int FPApixel, 11 unsigned int HVcrate, unsigned int HVboard, unsigned int HVchannel, 12 int POSx, int POSy) 13 : _FPAcrate(FPAcrate), _FPAboard(FPAboard), _FPApatch(FPApatch), _FPApixel(FPApixel), 14 _HVcrate(HVcrate), _HVboard(HVboard), _HVchannel(HVchannel), 15 _POSx(POSx), _POSy(POSy) { 13 16 14 17 } … … 16 19 std::ostream& operator << (std::ostream& s, const Pixel& pixel) { 17 20 18 return s << "DRSboard="<<pixel._DRSboard<<"\n" 19 << "DRSchip="<<pixel._DRSchip<<"\n" 20 << "DRSchannel="<<pixel._DRSchannel<<"\n" 21 return s << "FPAcrate="<<pixel._FPAcrate<<"\n" 22 << "FPAboard="<<pixel._FPAboard<<"\n" 23 << "FPApatch="<<pixel._FPApatch<<"\n" 24 << "FPApixel="<<pixel._FPApixel<<"\n" 25 << "HVcrate="<<pixel._HVcrate<<"\n" 21 26 << "HVboard="<<pixel._HVboard<<"\n" 22 << "HVchain="<<pixel._HVchain<<"\n" 23 << "HVchannel="<<pixel._HVchannel<<"\n"; 27 << "HVchannel="<<pixel._HVchannel<<"\n" 28 << "POSx="<<pixel._POSx<<"\n" 29 << "POSy="<<pixel._POSy<<"\n"; 24 30 25 31 }
Note:
See TracChangeset
for help on using the changeset viewer.