Commit c3287275 authored by LEGEARD Luc's avatar LEGEARD Luc
Browse files

Better Stat information with Numexo cards

parent 2eb34e49
......@@ -181,8 +181,8 @@ void MFMNumExoFrame::InitStat() {
MFMCommonFrame::InitStat();
int i;
fCountNbEventCard = new long long[NUMEXO_MAX_NUMB_BOARDS];
for (i = 0; i < NUMEXO_MAX_NUMB_BOARDS; i++) {
fCountNbEventCard = new long long[NUMEXO_MAX_CHAN_AND_BOARDS];
for (i = 0; i < NUMEXO_MAX_CHAN_AND_BOARDS; i++) {
fCountNbEventCard[i] = 0;
}
}
......@@ -191,9 +191,10 @@ void MFMNumExoFrame::FillStat() {
if (fInitStatDone == false )return ;
MFMCommonFrame::FillStat();
uint16_t id;
id = GetBoardId();
if (id >NUMEXO_MAX_NUMB_BOARDS ) cout << " Error MFMNumExoFrame::FillStat() BoardId to big"<<id<<" \n";
//id = GetBoardId();
id = GetCristalId();
//cout <<id <<" ";
if (id >NUMEXO_MAX_CHAN_AND_BOARDS ) cout << " Error MFMNumExoFrame::FillStat() BoardId to big"<<id<<" \n";
else fCountNbEventCard[id]++;
}
//____________________________________________________________________
......
......@@ -18,6 +18,7 @@
#define NUMEXO_STD_UNIT_BLOCK_SIZE 4
#define NUMEXO_NB_CHANNELS 16
#define NUMEXO_MAX_NUMB_BOARDS 0x07ff
#define NUMEXO_MAX_CHAN_AND_BOARDS 0xffff
#define MFM_NUMEXO_TYPE_TXT "MFM_NUMEXO_GENERIC_TYPE"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment