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
|
||||
for(int ch = 0; ch < MaxNChannels; ch++){
|
||||
if( ch > numInputCh ) continue;
|
||||
if( DataIndex[ch] < 0 ) continue;
|
||||
|
||||
if( NumEventsDecoded[ch] > 0 ) {
|
||||
// printf("%s | ch %d | %d %d \n", __func__, ch, LoopIndex[ch], DataIndex[ch]);
|
||||
IsNotRollOverFakeAgg = true;
|
||||
}else{
|
||||
TriggerRate[ch] = 0;
|
||||
NonPileUpRate[ch] = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
if( DataIndex[ch] < 0 ){
|
||||
TriggerRate[ch] = 0;
|
||||
NonPileUpRate[ch] = 0;
|
||||
// TriggerRate[ch] = 0;
|
||||
// NonPileUpRate[ch] = 0;
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
|
@ -1008,9 +1008,12 @@ void MainWindow::UpdateScalar(){
|
|||
leTrigger[iDigi][i]->setText(a);
|
||||
leAccept[iDigi][i]->setText(b);
|
||||
|
||||
digi[iDigi]->GetData()->ClearTriggerRate();
|
||||
|
||||
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());
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user