trigger rate only clear by ClearTriggerRate() Method.
This commit is contained in:
parent
0177be09cc
commit
5e82065fc1
11
ClassData.h
11
ClassData.h
|
@ -445,19 +445,14 @@ inline void Data::DecodeBuffer(bool fastDecode, int verbose){
|
||||||
///^===================Calculate trigger rate and first and last Timestamp
|
///^===================Calculate trigger rate and first and last Timestamp
|
||||||
for(int ch = 0; ch < MaxNChannels; ch++){
|
for(int ch = 0; ch < MaxNChannels; ch++){
|
||||||
if( ch > numInputCh ) continue;
|
if( ch > numInputCh ) continue;
|
||||||
|
if( DataIndex[ch] < 0 ) continue;
|
||||||
|
|
||||||
if( NumEventsDecoded[ch] > 0 ) {
|
if( NumEventsDecoded[ch] > 0 ) {
|
||||||
// printf("%s | ch %d | %d %d \n", __func__, ch, LoopIndex[ch], DataIndex[ch]);
|
// printf("%s | ch %d | %d %d \n", __func__, ch, LoopIndex[ch], DataIndex[ch]);
|
||||||
IsNotRollOverFakeAgg = true;
|
IsNotRollOverFakeAgg = true;
|
||||||
}else{
|
}else{
|
||||||
TriggerRate[ch] = 0;
|
// TriggerRate[ch] = 0;
|
||||||
NonPileUpRate[ch] = 0;
|
// NonPileUpRate[ch] = 0;
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if( DataIndex[ch] < 0 ){
|
|
||||||
TriggerRate[ch] = 0;
|
|
||||||
NonPileUpRate[ch] = 0;
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1008,9 +1008,12 @@ void MainWindow::UpdateScalar(){
|
||||||
leTrigger[iDigi][i]->setText(a);
|
leTrigger[iDigi][i]->setText(a);
|
||||||
leAccept[iDigi][i]->setText(b);
|
leAccept[iDigi][i]->setText(b);
|
||||||
|
|
||||||
|
digi[iDigi]->GetData()->ClearTriggerRate();
|
||||||
|
|
||||||
if( influx && a != "inf" ){
|
if( influx && a != "inf" ){
|
||||||
influx->AddDataPoint("Rate,Bd="+std::to_string(digi[iDigi]->GetSerialNumber()) + ",Ch=" + QString::number(i).rightJustified(2, '0').toStdString() + " value=" + a.toStdString());
|
influx->AddDataPoint("Rate,Bd="+std::to_string(digi[iDigi]->GetSerialNumber()) + ",Ch=" + QString::number(i).rightJustified(2, '0').toStdString() + " value=" + a.toStdString());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -474,6 +474,7 @@ void Scope::UpdateScope(){
|
||||||
}else{
|
}else{
|
||||||
leTriggerRate->setStyleSheet("");
|
leTriggerRate->setStyleSheet("");
|
||||||
leTriggerRate->setText(QString::number(data->TriggerRate[ch]));
|
leTriggerRate->setText(QString::number(data->TriggerRate[ch]));
|
||||||
|
data->ClearTriggerRate();
|
||||||
}
|
}
|
||||||
|
|
||||||
int index = data->DataIndex[ch];
|
int index = data->DataIndex[ch];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user