Changeset 17009 for trunk


Ignore:
Timestamp:
08/19/13 11:36:26 (11 years ago)
Author:
tbretz
Message:
Added count() member function
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/PixelMap.h

    r16966 r17009  
    3939    int hw() const    { return pixel()+patch()*9+board()*36+crate()*360; }
    4040    int group() const { return pixel()>3; }
     41    int count() const { return pixel()>3 ? 5 : 4; }
    4142    int hv() const    { return hv_channel+hv_board*32; }
    4243
     
    201202    int   hv_channel;          /// Bias supply channel
    202203    float Vnom;                /// Channel bias voltage nominal
    203     float Voff;                /// Channel bias voltage offset
    204     float Vslope;              /// Channel bias voltage slope
    205 
    206     BiasMapEntry() : hv_board(-1) { }
     204    float Voff;                /// Channel bias voltage offset [V]
     205    float Vslope;              /// Channel bias voltage slope  [Ohm]
     206
     207    BiasMapEntry() : hv_board(-1), Voff(0), Vslope(90000) { }
    207208
    208209    int hv() const { return hv_channel+hv_board*32; }
     
    270271#ifdef __EXCEPTIONS
    271272        if (l!=416)
    272             throw std::runtime_error("Number of lines read from "+fname+" does not match 416.");
     273            throw std::runtime_error("Number of lines ("+std::to_string(l)+") read from "+fname+" does not match 416.");
    273274
    274275        if (size()!=416)
Note: See TracChangeset for help on using the changeset viewer.