Changeset 176 for drsdaq/HVFeedback.cc


Ignore:
Timestamp:
03/10/10 10:34:59 (15 years ago)
Author:
ogrimm
Message:
Migrated to DRS4. DRS class does not run with DRS2 FPGA firmware anymore.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • drsdaq/HVFeedback.cc

    r175 r176  
    2929
    3030  m = DAQClass;
    31   //fNumberOfChannels = m->fNumberOfChannels;
    32   //fNumberOfChips = m->fNumberOfChips;
    33   fNumberOfChannels = 10;
    34   fNumberOfChips = 2; 
    35  
     31
     32  fNumberOfChannels = m->fNumberOfChannels;
     33  fNumberOfChips = m->fNumberOfChips; 
     34
    3635  PixMap = new PixelMap(PIXMAP_LOCATION, false);
    3736
     
    117116          for (k=0; k<fNumberOfChannels; k++) {
    118117                for (Integral=0, q=-fIntHalfWidth; q<=(int) fIntHalfWidth; q++) {
    119           Integral += (m->WaveForm[i][j][k][(fLedSignalSample+q+m->TriggerCell[i][j])%kNumberOfBins] - m->WaveForm[i][j][k][(fLedBaselineSample+q+m->TriggerCell[i][j])%kNumberOfBins])*m->drs->GetBoard(i)->GetPrecision();
     118          Integral += (m->WaveForm[i][j][k][(fLedSignalSample+q+m->TriggerCell[i][j])%kNumberOfBins] - m->WaveForm[i][j][k][(fLedBaselineSample+q+m->TriggerCell[i][j])%kNumberOfBins])*m->GetBoard(i)->GetPrecision();
    120119                }
    121120        Integral /= 2*fIntHalfWidth+1;
     
    283282//
    284283void HVFeedback::SetTarget(int Board, int Chip, int Channel, float TargetVal) {
     284
    285285  if(Board<m->NumBoards && Chip<fNumberOfChips && Channel<fNumberOfChannels) {
    286286    Target[Board][Chip][Channel] = TargetVal;
Note: See TracChangeset for help on using the changeset viewer.