Definition at line 99 of file ratescan.cc.
References data, FTM::DimTriggerRates::fBoardRate, FTM::DimTriggerRates::fElapsedTime, FTM::DimTriggerRates::fOnTime, FTM::DimTriggerRates::fPatchRate, fThreshold, FTM::DimTriggerRates::fTriggerRate, EventImp::GetData(), i, if(), RateScan::State::kConnected, RateScan::State::kInProgress, RateScan::State::kPaused, Dim::SendCommandNB(), DimDescribedService::setData(), DimService::setQuality(), time, and DimDescribedService::Update().
Referenced by StateMachineRateScan().
135 for (
int i=0;
i<40;
i++)
137 for (
int i=0;
i<160;
i++)
140 double reference =
fRate;
153 out <<
"Triggers so far: " << reference;
155 out <<
" (" << sqrt(reference)/reference <<
")";
164 float data[2+3+1+40+160];
166 memcpy(data+2, &th, 4);
170 for (
int i=0;
i<40;
i++)
172 for (
int i=0;
i<160;
i++)
175 ostringstream sout1, sout2, sout3;
177 sout1 << th <<
" " << data[5];
178 for (
int i=0;
i<200;
i++)
179 sout2 <<
" " << data[
i+6];
180 sout3 <<
" " << data[3] <<
" " << data[4];
195 Message(
"Rate scan stopped due to timeout.");
202 Message(
"Rate scan finished.");
int GetCurrentState() const
return the current state of the machine
void setQuality(int quality)
DimDescribedService fDimData
void setData(const void *ptr, size_t sz)
void SendCommandNB(const std::string &command)
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
int Info(const std::string &str)
int Message(const std::string &str)
bool CheckEventSize(const EventImp &evt, size_t size)
virtual const void * GetData() const