FACT++  1.0
int StateMachineFeedback::PrintCalibration ( )
inlineprivate

Definition at line 916 of file feedback.cc.

Referenced by StateMachineFeedback().

917  {
918  /*
919  if (fCalibration.size()==0)
920  {
921  Out() << "No calibration performed so far." << endl;
922  return GetCurrentState();
923  }
924 
925  const float *avg = fCalibration.data();
926  const float *rms = fCalibration.data()+BIAS::kNumChannels;
927  const float *res = fCalibration.data()+BIAS::kNumChannels*2;
928 
929  Out() << "Average current at " << fCalibrationOffset << "V below G-APD operation voltage:\n";
930 
931  for (int k=0; k<13; k++)
932  for (int j=0; j<8; j++)
933  {
934  Out() << setw(2) << k << "|" << setw(2) << j*4 << "|";
935  for (int i=0; i<4; i++)
936  Out() << Tools::Form(" %6.1f+-%4.1f", avg[k*32+j*4+i], rms[k*32+j*4+i]);
937  Out() << '\n';
938  }
939  Out() << '\n';
940 
941  Out() << "Measured calibration resistor:\n";
942  for (int k=0; k<13; k++)
943  for (int j=0; j<4; j++)
944  {
945  Out() << setw(2) << k << "|" << setw(2) << j*8 << "|";
946  for (int i=0; i<8; i++)
947  Out() << Tools::Form(" %5.0f", res[k*32+j*8+i]);
948  Out() << '\n';
949  }
950 
951  Out() << flush;
952  */
953  return GetCurrentState();
954  }
int GetCurrentState() const
return the current state of the machine

+ Here is the caller graph for this function: