Changeset 11095


Ignore:
Timestamp:
06/21/11 21:57:35 (13 years ago)
Author:
tbretz
Message:
Return 0 as default in eventCheck; added comment to commands; fixed PRINT_EVENT; allow double CONNECT or DISCONNECT
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/EventBuilderWrapper.h

    r11092 r11095  
    11611161         geloescht (nicht an die write-routine weitergeleitet [mind. im Prinzip]
    11621162         */
     1163
     1164        return 0;
    11631165    }
    11641166}
  • trunk/FACT++/src/fadctrl.cc

    r11091 r11095  
    6565        for (unsigned int c=0; c<FAD::kNumChips; c++)
    6666        {
    67             Out() << "ROI" << fEventHeader.Crate() << ":" << fEventHeader.Board() << ":" << c << ":";
     67            Out() << "ROI|" << fEventHeader.Crate() << ":" << fEventHeader.Board() << ":" << c << ":";
    6868            for (unsigned int ch=0; ch<FAD::kNumChannelsPerChip; ch++)
    6969                Out() << " " << setw(4) << fChannelHeader[c*FAD::kNumChannelsPerChip+ch].fRegionOfInterest;
     
    7171        }
    7272
    73         Out() << "CEL" << fEventHeader.Crate() << ":" << fEventHeader.Board() << ":";
     73        Out() << "CEL|" << fEventHeader.Crate() << ":" << fEventHeader.Board() << ":";
    7474        for (unsigned int c=0; c<FAD::kNumChips; c++)
    7575        {
     
    10701070        {
    10711071            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();
    10801086    }
    10811087
     
    11001106
    11011107        const BoardList::iterator it = GetSlot(slot);
    1102 
    11031108        if (it==fBoards.end())
    11041109            return T::GetCurrentState();
     
    13931398            ("");
    13941399
    1395         T::AddEvent("PRINT_EVENT", "I:1")
     1400        T::AddEvent("PRINT_EVENT", "S:1")
    13961401            (boost::bind(&StateMachineFAD::PrintEvent, this, _1))
    13971402            ("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)");
    13991404
    14001405        T::AddEvent("DUMP_STREAM", "B:1")
     
    14371442        T::AddEvent("START", FAD::kOffline)
    14381443            (boost::bind(&StateMachineFAD::StartConnection, this))
    1439             ("");
     1444            ("Start EventBuilder thread and connect all valid slots.");
     1445
    14401446        T::AddEvent("STOP",  FAD::kDisconnected, FAD::kConnecting, FAD::kConnected)
    14411447            (boost::bind(&StateMachineFAD::StopConnection, this))
    1442             ("");
     1448            ("Stop EventBuilder thread (still write buffered events) and disconnect all slots.");
    14431449
    14441450        T::AddEvent("ABORT", FAD::kDisconnected, FAD::kConnecting, FAD::kConnected)
    14451451            (boost::bind(&StateMachineFAD::AbortConnection, this))
    1446             ("");
     1452            ("Immediately abort EventBuilder thread and disconnect all slots.");
    14471453
    14481454        T::AddEvent("CONNECT", "S:1", FAD::kConnecting, FAD::kConnected)
    14491455            (boost::bind(&StateMachineFAD::EnableSlot, this, _1, true))
    1450             ("");
     1456            ("Connect a disconnected slot.");
    14511457
    14521458        T::AddEvent("DISCONNECT", "S:1", FAD::kConnecting, FAD::kConnected)
    14531459            (boost::bind(&StateMachineFAD::EnableSlot, this, _1, false))
    1454             ("");
     1460            ("Disconnect a connected slot.");
    14551461
    14561462        T::AddEvent("CLOSE_OPEN_FILES", FAD::kConnecting, FAD::kConnected)
    14571463            (boost::bind(&StateMachineFAD::CloseOpenFiles, this))
    1458             ("");
     1464            ("Close all run files opened by the EventBuilder.");
    14591465
    14601466        T::AddEvent("TEST", "S:1")
Note: See TracChangeset for help on using the changeset viewer.