FACT++  1.0
void FactGui::ChoosePatchThreshold ( Camera cam,
int  isw 
)
inlineprivate

Definition at line 3265 of file FactGui.h.

References fBoardRate, FTM::DimTriggerRates::fBoardRate, fPatchRate, FTM::DimTriggerRates::fPatchRate, and FTM::DimStaticData::fThreshold.

3266  {
3267  cam.Reset();
3268 
3269  fThresholdIdx->setValue(isw);
3270 
3271  const int ihw = isw<0 ? 0 : fPatchMapHW[isw];
3272 
3273  fPatchRate->setEnabled(isw>=0);
3274  fThresholdCrate->setEnabled(isw>=0);
3275  fThresholdBoard->setEnabled(isw>=0);
3276  fThresholdPatch->setEnabled(isw>=0);
3277 
3278  if (isw<0)
3279  return;
3280 
3281  const int patch = ihw%4;
3282  const int board = (ihw/4)%10;
3283  const int crate = (ihw/4)/10;
3284 
3285  fInChoosePatchTH = true;
3286 
3287  fThresholdCrate->setValue(crate);
3288  fThresholdBoard->setValue(board);
3289  fThresholdPatch->setValue(patch);
3290 
3291  fInChoosePatchTH = false;
3292 
3293  fThresholdVal->setValue(fFtmStaticData.fThreshold[ihw]);
3294  fPatchRate->setValue(fTriggerRates.fPatchRate[ihw]);
3295  fBoardRate->setValue(fTriggerRates.fBoardRate[ihw/4]);
3296 
3297  // Loop over the software idx of all pixels
3298 // for (unsigned int i=0; i<1440; i++)
3299 // if (fPatchHW[i]==ihw)
3300 // cam.SetBold(i);
3301  }
float fPatchRate[160]
Definition: HeadersFTM.h:191
FTM::DimStaticData fFtmStaticData
Definition: FactGui.h:1882
float fBoardRate[40]
Definition: HeadersFTM.h:589
float fBoardRate[40]
Definition: HeadersFTM.h:190
FTM::DimTriggerRates fTriggerRates
Definition: FactGui.h:1655
bool fInChoosePatchTH
Definition: FactGui.h:78
uint16_t fThreshold[160]
Definition: HeadersFTM.h:410
float fPatchRate[160]
Definition: HeadersFTM.h:590
vector< int > fPatchMapHW
Definition: FactGui.h:76