source: fact/pixelmap/Pixel.cc@ 10564

Last change on this file since 10564 was 10116, checked in by weitzel, 14 years ago
new version of pixelmap class
File size: 1.0 KB
Line 
1#include "Pixel.h"
2#include <iostream>
3
4Pixel::Pixel() : _FPAcrate(0), _FPAboard(0), _FPApatch(0), _FPApixel(0),
5 _HVcrate(0), _HVboard(0), _HVchannel(0),
6 _POSx(0), _POSy(0) {
7
8}
9
10Pixel::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) {
16
17}
18
19std::ostream& operator << (std::ostream& s, const Pixel& pixel) {
20
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"
26 << "HVboard="<<pixel._HVboard<<"\n"
27 << "HVchannel="<<pixel._HVchannel<<"\n"
28 << "POSx="<<pixel._POSx<<"\n"
29 << "POSy="<<pixel._POSy<<"\n";
30
31}
Note: See TracBrowser for help on using the repository browser.