Changeset 11095
- Timestamp:
- 06/21/11 21:57:35 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/EventBuilderWrapper.h
r11092 r11095 1161 1161 geloescht (nicht an die write-routine weitergeleitet [mind. im Prinzip] 1162 1162 */ 1163 1164 return 0; 1163 1165 } 1164 1166 } -
trunk/FACT++/src/fadctrl.cc
r11091 r11095 65 65 for (unsigned int c=0; c<FAD::kNumChips; c++) 66 66 { 67 Out() << "ROI " << fEventHeader.Crate() << ":" << fEventHeader.Board() << ":" << c << ":";67 Out() << "ROI|" << fEventHeader.Crate() << ":" << fEventHeader.Board() << ":" << c << ":"; 68 68 for (unsigned int ch=0; ch<FAD::kNumChannelsPerChip; ch++) 69 69 Out() << " " << setw(4) << fChannelHeader[c*FAD::kNumChannelsPerChip+ch].fRegionOfInterest; … … 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 { … … 1070 1070 { 1071 1071 ptr->PostClose(false); 1072 } 1073 else 1074 { 1075 ostringstream str; 1076 str << c.first; 1077 ptr->SetEndpoint(str.str()); 1078 ptr->StartConnect(); 1079 } 1072 return; 1073 } 1074 1075 ostringstream str; 1076 str << c.first; 1077 1078 if (!ptr->IsDisconnected()) 1079 { 1080 T::Warn("Connection to "+str.str()+" already in progress."); 1081 return; 1082 } 1083 1084 ptr->SetEndpoint(str.str()); 1085 ptr->StartConnect(); 1080 1086 } 1081 1087 … … 1100 1106 1101 1107 const BoardList::iterator it = GetSlot(slot); 1102 1103 1108 if (it==fBoards.end()) 1104 1109 return T::GetCurrentState(); … … 1393 1398 (""); 1394 1399 1395 T::AddEvent("PRINT_EVENT", " I:1")1400 T::AddEvent("PRINT_EVENT", "S:1") 1396 1401 (boost::bind(&StateMachineFAD::PrintEvent, this, _1)) 1397 1402 ("Print (last) event" 1398 "|board[ int]:slot from which the event should be printed (-1 for all)");1403 "|board[short]:slot from which the event should be printed (-1 for all)"); 1399 1404 1400 1405 T::AddEvent("DUMP_STREAM", "B:1") … … 1437 1442 T::AddEvent("START", FAD::kOffline) 1438 1443 (boost::bind(&StateMachineFAD::StartConnection, this)) 1439 (""); 1444 ("Start EventBuilder thread and connect all valid slots."); 1445 1440 1446 T::AddEvent("STOP", FAD::kDisconnected, FAD::kConnecting, FAD::kConnected) 1441 1447 (boost::bind(&StateMachineFAD::StopConnection, this)) 1442 (" ");1448 ("Stop EventBuilder thread (still write buffered events) and disconnect all slots."); 1443 1449 1444 1450 T::AddEvent("ABORT", FAD::kDisconnected, FAD::kConnecting, FAD::kConnected) 1445 1451 (boost::bind(&StateMachineFAD::AbortConnection, this)) 1446 (" ");1452 ("Immediately abort EventBuilder thread and disconnect all slots."); 1447 1453 1448 1454 T::AddEvent("CONNECT", "S:1", FAD::kConnecting, FAD::kConnected) 1449 1455 (boost::bind(&StateMachineFAD::EnableSlot, this, _1, true)) 1450 (" ");1456 ("Connect a disconnected slot."); 1451 1457 1452 1458 T::AddEvent("DISCONNECT", "S:1", FAD::kConnecting, FAD::kConnected) 1453 1459 (boost::bind(&StateMachineFAD::EnableSlot, this, _1, false)) 1454 (" ");1460 ("Disconnect a connected slot."); 1455 1461 1456 1462 T::AddEvent("CLOSE_OPEN_FILES", FAD::kConnecting, FAD::kConnected) 1457 1463 (boost::bind(&StateMachineFAD::CloseOpenFiles, this)) 1458 (" ");1464 ("Close all run files opened by the EventBuilder."); 1459 1465 1460 1466 T::AddEvent("TEST", "S:1")
Note:
See TracChangeset
for help on using the changeset viewer.