Changeset 193 for drsdaq/HVFeedback.cc


Ignore:
Timestamp:
03/31/10 07:46:11 (15 years ago)
Author:
ogrimm
Message:
Updates for DRS4 handling
File:
1 edited

Legend:

Unmodified
Added
Removed
  • drsdaq/HVFeedback.cc

    r182 r193  
    110110  int i,j,k,q;
    111111  float Correction, Integral;
    112  
     112
    113113  // 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) {
    115116    return false;
    116117  }
     
    121122          for (k=0; k<fNumberOfChannels; k++) {
    122123                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();
    124125                }
    125126        Integral /= 2*fIntHalfWidth+1;
Note: See TracChangeset for help on using the changeset viewer.