Changeset 193 for drsdaq/HVFeedback.cc
- Timestamp:
- 03/31/10 07:46:11 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
drsdaq/HVFeedback.cc
r182 r193 110 110 int i,j,k,q; 111 111 float Correction, Integral; 112 112 113 113 // Check for LED trigger channel on given channel and if feedback running 114 if (FBMode==FB_Off || m->WaveForm[fLedTrigBoard][fLedTrigChip][fLedTrigChannel][(fLedTrigSample+m->TriggerCell[fLedTrigBoard][fLedTrigChip])%kNumberOfBins] < fLedTrigThreshold) { 114 //if (FBMode==FB_Off || m->WaveForm[fLedTrigBoard][fLedTrigChip][fLedTrigChannel][(fLedTrigSample+m->TriggerCell[fLedTrigBoard][fLedTrigChip])%kNumberOfBins] < fLedTrigThreshold) { 115 if (FBMode==FB_Off || m->WaveForm[fLedTrigBoard][fLedTrigChip][fLedTrigChannel][fLedTrigSample] < fLedTrigThreshold) { 115 116 return false; 116 117 } … … 121 122 for (k=0; k<fNumberOfChannels; k++) { 122 123 for (Integral=0, q=-fIntHalfWidth; q<=(int) fIntHalfWidth; q++) { 123 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();124 Integral += (m->WaveForm[i][j][k][fLedSignalSample+q] - m->WaveForm[i][j][k][fLedBaselineSample+q])*m->GetBoard(i)->GetPrecision(); 124 125 } 125 126 Integral /= 2*fIntHalfWidth+1;
Note:
See TracChangeset
for help on using the changeset viewer.