FACT++  1.0
void ConnectionBias::PrintLineV ( int  b,
int  ch 
)
inline

Definition at line 1376 of file biasctrl.cc.

References id, kGreen, BIAS::kNumChannelsPerBoard, and kRed.

1377  {
1378  Out() << setw(2) << b << "|";
1379 
1380  for (int c=ch; c<ch+4; c++)
1381  {
1382  const int id = c+kNumChannelsPerBoard*b;
1383  Out() << " ";
1384  Out() << (fDacActual[id]==fDacTarget[id]?kGreen:kRed);
1385  //Out() << setw(5) << fDacActual[id]*90/4096. << '/';
1386  //Out() << setw(5) << fDacTarget[id]*90/4096.;
1387 
1388  Out() << setw(5) << ConvertDacToVolt(id, fDacActual[id]) << '/';
1389  Out() << setw(5) << ConvertDacToVolt(id, fDacTarget[id]);
1390  }
1391  Out() << endl;
1392  }
Set color Green.
Definition: WindowLog.h:18
Set color Red.
Definition: WindowLog.h:17
char id[4]
Definition: FITS.h:71
double ConvertDacToVolt(uint16_t ch, uint16_t dac)
Definition: biasctrl.cc:986
std::ostream & Out()
Definition: ConnectionUSB.h:47
vector< uint16_t > fDacTarget
Definition: biasctrl.cc:99
vector< uint16_t > fDacActual
Definition: biasctrl.cc:101