Changeset 11483 for trunk/FACT++/src/mcp.cc
- Timestamp:
- 07/20/11 10:27:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/mcp.cc
r11481 r11483 179 179 int Reset(const EventImp &evt) 180 180 { 181 fRunType = ""; 181 182 return kStateIdle; 182 183 /* … … 200 201 } 201 202 203 string fRunType; 204 202 205 int StartRun(const EventImp &evt) 203 206 { 207 Message("Starting configuration '"+evt.GetString()+"' for new run."); 208 fRunType = evt.GetString(); 204 209 return kStateConfiguring1; 205 210 } … … 225 230 if (fStatusLog.second!=30/*kSM_WaitForRun*/) 226 231 Dim::SendCommand("DATA_LOGGER/WAIT_FOR_RUN_NUMBER"); 227 Dim::SendCommand("FTM_CONTROL/CONFIGURE", "data");232 Dim::SendCommand("FTM_CONTROL/CONFIGURE", fRunType); 228 233 return kStateConfiguring2; 229 234 } … … 236 241 return GetCurrentState(); 237 242 238 Dim::SendCommand("FAD_CONTROL/CONFIGURE", "data");243 Dim::SendCommand("FAD_CONTROL/CONFIGURE", fRunType); 239 244 return kStateConfiguring3; 240 245 } … … 248 253 Message("START DATA TAKING"); 249 254 Fatal("Distribute run-number to start datalogger!"); 250 Fatal("fadctrl should go out of Configured after first event received!"); 251 Fatal("Must configure if FTM should be started or not?"); 255 //Fatal("Must configure if FTM should be started or not?"); 252 256 Dim::SendCommand("FTM_CONTROL/START_RUN"); 253 257 return kStateConfigured; … … 329 333 330 334 331 AddEvent("START", kStateIdle)335 AddEvent("START", "C", kStateIdle) 332 336 (bind(&StateMachineMCP::StartRun, this, placeholders::_1)) 333 337 (""); … … 352 356 } 353 357 354 int Eval Configuration(constConfiguration &conf)358 int EvalOptions(Configuration &conf) 355 359 { 356 360 //SetEndpoint(conf.Get<string>("addr")); … … 401 405 402 406 template<class T> 403 int RunShell( constConfiguration &conf)407 int RunShell(Configuration &conf) 404 408 { 405 409 return Main<T, StateMachineMCP>(conf);
Note:
See TracChangeset
for help on using the changeset viewer.