Skip to content

Commit 363572d

Browse files
authored
Merge pull request #967 from JeffersonLab/nsj_itrig
extend rocid array in itrig plugin and fix a few typos
2 parents 3355cd5 + 0dbd435 commit 363572d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/libraries/DAQ/DEVIOWorkerThread.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,7 +1727,7 @@ void DEVIOWorkerThread::Parsef250Bank(uint32_t rocid, uint32_t* &iptr, uint32_t
17271727
exit(-1);
17281728
}
17291729

1730-
// Event headers may be supressed so determine event from hit data
1730+
// Event headers may be suppressed so determine event from hit data
17311731
if( (event_number_within_block > current_parsed_events.size()) ) { jerr << "Bad f250 event number for rocid="<<rocid<<" slot="<<slot<<" channel="<<channel<<endl; throw JException("Bad f250 event number", __FILE__, __LINE__);}
17321732
pe_iter = current_parsed_events.begin();
17331733
advance( pe_iter, event_number_within_block-1 );
@@ -1988,15 +1988,15 @@ void DEVIOWorkerThread::Parsef125Bank(uint32_t rocid, uint32_t* &iptr, uint32_t
19881988
++iptr;
19891989
if(iptr>=iend){
19901990
PrintLimitCDC++;
1991-
if (PrintLimitCDC == 10) jerr << "Truncated f125 CDC hit: further warnings supressed" << endl;
1991+
if (PrintLimitCDC == 10) jerr << "Truncated f125 CDC hit: further warnings suppressed" << endl;
19921992
if (PrintLimitCDC<10) {
19931993
jerr << " Truncated f125 CDC hit (block ends before continuation word!)" << endl;
19941994
continue;
19951995
}
19961996
}
19971997
if( ((*iptr>>31) & 0x1) != 0 ){
19981998
PrintLimitCDC++;
1999-
if (PrintLimitCDC == 10) jerr << "Truncated f125 CDC hit: further warnings supressed" << endl;
1999+
if (PrintLimitCDC == 10) jerr << "Truncated f125 CDC hit: further warnings suppressed" << endl;
20002000
if (PrintLimitCDC<10)
20012001
jerr << " Truncated f125 CDC hit (missing continuation word!)" << endl;
20022002
--iptr;
@@ -2054,14 +2054,14 @@ void DEVIOWorkerThread::Parsef125Bank(uint32_t rocid, uint32_t* &iptr, uint32_t
20542054
++iptr;
20552055
if(iptr>=iend){
20562056
PrintLimitFDC++;
2057-
if (PrintLimitFDC == 10) jerr << "Truncated f125 FDC hit: further warnings supressed" << endl;
2057+
if (PrintLimitFDC == 10) jerr << "Truncated f125 FDC hit: further warnings suppressed" << endl;
20582058
if (PrintLimitFDC<10)
20592059
jerr << " Truncated f125 FDC hit (block ends before continuation word!)" << endl;
20602060
break;
20612061
}
20622062
if( ((*iptr>>31) & 0x1) != 0 ){
20632063
PrintLimitFDC++;
2064-
if (PrintLimitFDC == 10) jerr << "Truncated f125 FDC hit: further warnings supressed" << endl;
2064+
if (PrintLimitFDC == 10) jerr << "Truncated f125 FDC hit: further warnings suppressed" << endl;
20652065
if (PrintLimitFDC<10)
20662066
jerr << " Truncated f125 FDC hit (missing continuation word) from rocid=" << rocid << " slot=" << slot << " chan=" << channel << " pulse_number="<<pulse_number << endl;
20672067
--iptr;
@@ -2149,14 +2149,14 @@ void DEVIOWorkerThread::Parsef125Bank(uint32_t rocid, uint32_t* &iptr, uint32_t
21492149
++iptr;
21502150
if(iptr>=iend){
21512151
PrintLimitFDC++;
2152-
if (PrintLimitFDC == 10) jerr << "Truncated f125 FDC hit: further warnings supressed" << endl;
2152+
if (PrintLimitFDC == 10) jerr << "Truncated f125 FDC hit: further warnings suppressed" << endl;
21532153
if (PrintLimitFDC<10)
21542154
jerr << " Truncated f125 FDC hit (block ends before continuation word!)" << endl;
21552155
break;
21562156
}
21572157
if( ((*iptr>>31) & 0x1) != 0 ){
21582158
PrintLimitFDC++;
2159-
if (PrintLimitFDC == 10) jerr << "Truncated f125 FDC hit: further warnings supressed" << endl;
2159+
if (PrintLimitFDC == 10) jerr << "Truncated f125 FDC hit: further warnings suppressed" << endl;
21602160
if (PrintLimitFDC<10)
21612161
jerr << " Truncated f125 FDC hit (missing continuation word) from rocid=" << rocid << " slot=" << slot << " chan=" << channel << " pulse_number="<<pulse_number << endl;
21622162
--iptr;

src/plugins/monitoring/fa125_itrig/JEventProcessor_fa125_itrig.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ void JEventProcessor_fa125_itrig::Init()
9191

9292
hevents = new TH1I("num_events","Number of events", 1, 0.0, 1.0);
9393

94-
for (int i=0; i<70; i++) rocmap[i] = 0; // rocmap[rocid] = bin number for roc rocid in histogram
94+
for (int i=0; i<77; i++) rocmap[i] = 0; // rocmap[rocid] = bin number for roc rocid in histogram
9595

9696
int xlabels[70] = {0};
9797
int nbins;

src/plugins/monitoring/fa125_itrig/JEventProcessor_fa125_itrig.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class JEventProcessor_fa125_itrig:public JEventProcessor{
3333

3434
bool MAKE_TREE;
3535

36-
int rocmap[70]; // which bin to use for each roc in the histogram, to make the histogram compact, not gappy
36+
int rocmap[77]; // which bin to use for each roc in the histogram, to make the histogram compact, not gappy
3737
};
3838

3939
#endif // _JEventProcessor_fa125_itrig_

0 commit comments

Comments
 (0)