Changeset 11116
- Timestamp:
- 06/22/11 19:56:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fadctrl.cc
r11112 r11116 67 67 Out() << "ROI|" << fEventHeader.Crate() << ":" << fEventHeader.Board() << ":" << c << ":"; 68 68 for (unsigned int ch=0; ch<FAD::kNumChannelsPerChip; ch++) 69 Out() << " " << setw(4) << fChannelHeader[c*FAD::kNumChannelsPerChip+ch].fRegionOfInterest;69 Out() << " " << setw(4) << fChannelHeader[c+ch*FAD::kNumChips].fRegionOfInterest; 70 70 Out() << endl; 71 71 } 72 72 73 Out() << "CEL|" << fEventHeader.Crate() << ":" << fEventHeader.Board() << ":";73 Out() << "CEL|" << fEventHeader.Crate() << ":" <<fEventHeader.Board() << ": "; 74 74 for (unsigned int c=0; c<FAD::kNumChips; c++) 75 75 { … … 77 77 { 78 78 for (unsigned int ch=0; ch<FAD::kNumChannelsPerChip; ch++) 79 Out() << " " << setw(4) << fChannelHeader[c *FAD::kNumChannelsPerChip+ch].fStartCell;79 Out() << " " << setw(4) << fChannelHeader[c+ch*FAD::kNumChips].fStartCell; 80 80 Out() << endl; 81 81 } … … 85 85 const uint16_t cel = fChannelHeader[c*FAD::kNumChannelsPerChip].fStartCell; 86 86 for (unsigned int ch=1; ch<FAD::kNumChannelsPerChip; ch++) 87 if (cel!=fChannelHeader[c *FAD::kNumChannelsPerChip+ch].fStartCell)87 if (cel!=fChannelHeader[c+ch*FAD::kNumChips].fStartCell) 88 88 { 89 89 Out() << "!"; … … 185 185 fBuffer.resize(fEventHeader.fPackageLength-sizeof(FAD::EventHeader)/2); 186 186 AsyncRead(ba::buffer(fBuffer), kReadData); 187 AsyncWait(fInTimeout, 500, &Connection::HandleReadTimeout);187 AsyncWait(fInTimeout, 2000, &Connection::HandleReadTimeout); 188 188 189 189 return; … … 312 312 // CmdSetRoi(i, 100); 313 313 314 Cmd(FAD::kCmdTriggerLine, true);315 Cmd(FAD::kCmdSingleTrigger);314 // Cmd(FAD::kCmdTriggerLine, true); 315 // Cmd(FAD::kCmdSingleTrigger); 316 316 } 317 317 … … 319 319 void PostCmd(std::vector<uint16_t> cmd) 320 320 { 321 if (fBlockTransmission )321 if (fBlockTransmission || !IsConnected()) 322 322 return; 323 323 … … 336 336 void PostCmd(uint16_t cmd) 337 337 { 338 if (fBlockTransmission )338 if (fBlockTransmission || !IsConnected()) 339 339 return; 340 340 … … 351 351 void PostCmd(uint16_t cmd, uint16_t data) 352 352 { 353 if (fBlockTransmission )353 if (fBlockTransmission || !IsConnected()) 354 354 return; 355 355
Note:
See TracChangeset
for help on using the changeset viewer.