Ignore:
Timestamp:
01/24/11 12:04:23 (14 years ago)
Author:
weitzel
Message:
new version of pixelmap class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/pixelmap/Pixel.cc

    r16 r10116  
    1 #include "PixelMap.h"
     1#include "Pixel.h"
    22#include <iostream>
    33
    4 Pixel::Pixel() : _DRSboard(999999999), _DRSchip(999999999), _DRSchannel(999999999),
    5                  _HVboard(999999999), _HVchain(999999999), _HVchannel(999999999) { }
     4Pixel::Pixel() : _FPAcrate(0), _FPAboard(0), _FPApatch(0), _FPApixel(0),
     5                 _HVcrate(0), _HVboard(0), _HVchannel(0),
     6                 _POSx(0), _POSy(0) {
    67
    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}
    119
    12     //???check here whether values make sense and eventually give error messages???
     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) {
    1316
    1417}
     
    1619std::ostream& operator << (std::ostream& s, const Pixel& pixel) {
    1720 
    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"
    2126             << "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";
    2430
    2531}
Note: See TracChangeset for help on using the changeset viewer.