Definition at line 1041 of file fadctrl.cc.
References ConnectionFAD::Cmd(), ConnectionFAD::CmdSetDacValue(), ConnectionFAD::CmdSetRoi(), ConnectionFAD::CmdSetRunNumber(), ConnectionFAD::CmdSetTriggerRate(), Error(), EventImp::Get(), i, kCmdBusyOff, kCmdBusyOn, kCmdContTrigger, kCmdDrsEnable, kCmdDwrite, kCmdResetEventCounter, kCmdSocket, kCmdTriggerLine, FTM::State::kConfiguring1, Agilent::State::kConnected, kNumChannelsPerChip, kNumChips, kNumDac, EventImp::Ptr(), and str.
Referenced by StateMachineFAD< T >::StateMachineFAD().
1043 const string name = evt.
Ptr<
char>(16);
1048 T::Error(
"StartConfigure - Run-type '"+name+
"' not found.");
1049 return T::GetCurrentState();
1053 const uint32_t runno =
StartNewRun(evt.
Get<int64_t>(), evt.
Get<int64_t>(8), *fTargetConfig);
1058 str <<
"Starting configuration for run " << runno <<
" (" << name <<
")";
1059 T::Message(str.str());
1062 T::Warn(
"Run number exceeds logical maximum of 999 - this is no problem for writing but might give raise to problems in the analysis.");
1064 const FAD::Configuration &conf = fTargetConfig->second;
1066 for (BoardList::iterator it=
fBoards.begin(); it!=
fBoards.end(); it++)
1084 fad.
CmdSetRoi(
i*FAD::kNumChannelsPerChip+j, conf.fRoi[j]);
1097 const int64_t runs[2] = { runno, runno+1 };
void CmdSetRunNumber(uint32_t num)
bool CmdSetTriggerRate(int32_t val)
bool CmdSetRoi(int8_t addr, uint16_t val)
DimDescribedService fDimStartRun
uint32_t StartNewRun(int64_t maxtime, int64_t maxevt, const pair< string, FAD::Configuration > &ref)
Configs::const_iterator fTargetConfig
T Get(size_t offset=0) const
const T * Ptr(size_t offset=0) const
void Cmd(FAD::Enable cmd, bool on=true)
bool CmdSetDacValue(int8_t addr, uint16_t val)