source: pixelmap/Pixel.cc@ 9

Last change on this file since 9 was 9, checked in by qweitzel, 16 years ago
first checkin after renaming of repository, pixelmap stuff added
File size: 880 bytes
Line 
1#include "PixelMap.h"
2#include <iostream>
3
4Pixel::Pixel() : _DRSboard(-1), _DRSchip(-1), _DRSchannel(-1),
5 _HVboard(-1), _HVchain(-1), _HVchannel(-1) { }
6
7Pixel::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) {
11
12 //check here whether values make sense and eventually give error messages
13
14}
15
16std::ostream& operator << (std::ostream& s, const Pixel& pixel) {
17
18 return s << "DRSboard="<<pixel._DRSboard<<"\n"
19 << "DRSchip="<<pixel._DRSchip<<"\n"
20 << "DRSchannel="<<pixel._DRSchannel<<"\n"
21 << "HVboard="<<pixel._HVboard<<"\n"
22 << "HVchain="<<pixel._HVchain<<"\n"
23 << "HVchannel="<<pixel._HVchannel<<"\n";
24
25}
Note: See TracBrowser for help on using the repository browser.