Changeset 20071 for trunk/FACT++
- Timestamp:
- 04/12/21 18:49:01 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/fpgaftmctrl.cc
r20069 r20071 36 36 class ConnectionFPGAFTM : public Connection 37 37 { 38 public: 39 static bool fIsFACT; 40 38 41 private: 39 42 bool fIsVerbose; … … 674 677 }; 675 678 679 bool ConnectionFPGAFTM::fIsFACT = true; 680 676 681 // ------------------------------------------------------------------------ 677 682 … … 687 692 ConnectionDimFPGAFTM(ba::io_service& ioservice, MessageImp &imp) : 688 693 ConnectionFPGAFTM(ioservice, imp), 689 fDimConfig( "FTM_CONTROL/CONFIGURATION",694 fDimConfig(fIsFACT?"FPGAFTM_CONTROL/CONFIGURATION":"FTM_CONTROL/CONFIGURATION", 690 695 "X:1;X:1;C:1;X:1;D:1;C:1;X:1;D:1;C:1;C:1;C:1;S:1;S:1;S:1;I:1;I:1;C:1;S:1", 691 696 "|firmware[uint64]:Firmware ID" … … 707 712 "|trg_inhibit_state[uint8]:" 708 713 "|trg_inhibit_time[5ns]:"), 709 fDimData( "FTM_CONTROL/DATA", "I:1;I:1;I:1;I:1;I:1;S:1;F:1",714 fDimData(fIsFACT?"FPGAFTM_CONTROL/DATA":"FTM_CONTROL/DATA", "I:1;I:1;I:1;I:1;I:1;S:1;F:1", 710 715 "|run_time[10ns]:Absolute Run Time" 711 716 "|dead_time[10ns]:Measured Dead Time" … … 1087 1092 public: 1088 1093 StateMachineFPGAFTM(ostream &out=cout) : 1089 StateMachineAsio<T>(out, "FTM_CONTROL"), fFTM(*this, *this) 1094 StateMachineAsio<T>(out, ConnectionFPGAFTM::fIsFACT?"FPGAFTM_CONTROL":"FTM_CONTROL"), 1095 fFTM(*this, *this) 1090 1096 { 1091 1097 // State names … … 1511 1517 int RunShell(Configuration &conf) 1512 1518 { 1519 #if BOOST_VERSION < 104600 1520 const string fname = boost::filesystem::path(conf.GetName()).filename(); 1521 #else 1522 const string fname = boost::filesystem::path(conf.GetName()).filename().string(); 1523 #endif 1524 1525 ConnectionFPGAFTM::fIsFACT = fname!="ftmctrl"; 1513 1526 return Main::execute<T, StateMachineFPGAFTM<S, R>>(conf); 1514 1527 }
Note:
See TracChangeset
for help on using the changeset viewer.