Changeset 176 for drsdaq/HVFeedback.cc
- Timestamp:
- 03/10/10 10:34:59 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drsdaq/HVFeedback.cc
r175 r176 29 29 30 30 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 36 35 PixMap = new PixelMap(PIXMAP_LOCATION, false); 37 36 … … 117 116 for (k=0; k<fNumberOfChannels; k++) { 118 117 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(); 120 119 } 121 120 Integral /= 2*fIntHalfWidth+1; … … 283 282 // 284 283 void HVFeedback::SetTarget(int Board, int Chip, int Channel, float TargetVal) { 284 285 285 if(Board<m->NumBoards && Chip<fNumberOfChips && Channel<fNumberOfChannels) { 286 286 Target[Board][Chip][Channel] = TargetVal;
Note:
See TracChangeset
for help on using the changeset viewer.