Changeset 11619 for trunk/FACT++
- Timestamp:
- 07/26/11 15:32:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/mcp.cc
r11587 r11619 174 174 int StopRun(const EventImp &) 175 175 { 176 if (fStatusFTM.second==FTM::kTakingData) 177 Dim::SendCommand("FTM_CONTROL/STOP_RUN"); 176 if (fStatusFTM.second==FTM::kTakingData) 177 { 178 Message("Stopping FTM"); 179 Dim::SendCommand("FTM_CONTROL/STOP_RUN"); 180 } 178 181 179 182 // FIXME: Do step 2 only when FTM is stopped … … 181 184 { 182 185 //Dim::SendCommand("FAD_CONTROL/ENABLE_TRIGGER_LINE", bool(false)); 186 Message("Stopping FAD"); 183 187 Dim::SendCommand("FAD_CONTROL/ENABLE_CONTINOUS_TRIGGER", bool(false)); 184 188 } … … 190 194 { 191 195 fRunType = ""; 196 Message("Resetiing configuration states of FAD and FTM"); 192 197 Dim::SendCommand("FTM_CONTROL/RESET_CONFIGURE"); 193 198 Dim::SendCommand("FAD_CONTROL/RESET_CONFIGURE"); … … 260 265 strcpy(val->type, fRunType.c_str()); 261 266 267 Message("Configuring FAD"); 262 268 Dim::SendCommand("FAD_CONTROL/CONFIGURE", buf, len); 263 269 … … 283 289 if (GetCurrentState()==kStateConfiguring1) 284 290 { 285 if (fStatusLog.second!=30/*kSM_WaitForRun*/) 286 Dim::SendCommand("DATA_LOGGER/WAIT_FOR_RUN_NUMBER"); 291 if (fStatusLog.second!=30/*kSM_WaitForRun*/) 292 { 293 Message("Starting datalogger"); 294 Dim::SendCommand("DATA_LOGGER/WAIT_FOR_RUN_NUMBER"); 295 } 296 Message("Configuring Trigger (FTM)"); 287 297 Dim::SendCommand("FTM_CONTROL/CONFIGURE", fRunType); 288 298 return kStateConfiguring2;
Note:
See TracChangeset
for help on using the changeset viewer.