Open the relevant text files related to a particular run.
add a new run number
Add a new active run number
- Parameters
-
newRun | the new run number |
time | the time at which the new run number was issued |
Definition at line 1216 of file datalogger.cc.
References MessageImp::Debug(), MessageImp::Error(), StateMachineImp::GetCurrentState(), kSM_BadFolder, kSM_Logging, kSM_WaitingRun, StateMachineDim::SetCurrentState(), str, and time.
Referenced by CheckForRunNumber().
1219 if (newRun > 0xffffffff)
1221 Error(
"New run number too large, out of range. Ignoring.");
1228 Error(
"Newly provided run number has already been used (or is still in use). Going to error state");
1236 str <<
"Adding new run number " << newRun <<
" issued at " <<
time;
1241 fRunNumber.back().runNumber = int32_t(newRun);
1247 str <<
"The new run number is: " <<
fRunNumber.back().runNumber;
the folder specified for Nightly logging does not exist or has bad permissions
int GetCurrentState() const
return the current state of the machine
int Debug(const std::string &str)
both files openned and writing
bool fDebugIsOn
configuration flags
std::vector< int64_t > previousRunNumbers
int Error(const std::string &str)
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
list< RunNumberType > fRunNumber
run numbers
Run number record. Used to keep track of which run numbers are still active.
waiting for the run number to open the run file
std::string SetCurrentState(int state, const char *txt="", const std::string &cmd="")