Changeset 13239 for trunk/FACT++


Ignore:
Timestamp:
03/26/12 22:03:31 (13 years ago)
Author:
tbretz
Message:
Propagate G-APD bias offset and set-point seperately.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/PixelMap.h

    r13167 r13239  
    223223    }
    224224
     225    /*
    225226    float Vgapd(int board, int channel) const
    226227    {
    227228        const BiasMapEntry &entry = hv(board, channel);
    228         //return entry.Vnom/*-entry.Voff*/; // for testing purposes only
    229229        return entry.Vnom - entry.Voff; // use this with GAPDmap_20111126.txt
    230230    }
     
    233233    {
    234234        return Vgapd(idx/32, idx%32);
    235     }
     235    }*/
    236236
    237237    std::vector<float> Vgapd() const
     
    242242        {
    243243            const int ch = it->hv_board*32 + it->hv_channel;
    244            
    245             //volt[ch] += it->Vnom/*-it->Voff*/; // for testing purposes only
    246             volt[ch] += it->Vnom - it->Voff; // use this with GAPDmap_20111126.txt
     244            volt[ch] = it->Vnom;
    247245        }
    248246
    249247        return volt;
    250248    }
    251 };
    252 
    253 #endif
     249    std::vector<float> Voffset() const
     250    {
     251        std::vector<float> volt(416);
     252
     253        for (std::vector<BiasMapEntry>::const_iterator it=begin(); it!=end(); it++)
     254        {
     255            const int ch = it->hv_board*32 + it->hv_channel;
     256            volt[ch] = -it->Voff;
     257        }
     258
     259        return volt;
     260    }
     261};
     262
     263#endif
Note: See TracChangeset for help on using the changeset viewer.