Skip to content

Commit

Permalink
Excise jtest:nevents
Browse files Browse the repository at this point in the history
This parameter is redundant with jana:nevents.
  • Loading branch information
nathanwbrei committed Nov 10, 2023
1 parent d1c08e8 commit be4691b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/plugins/JTest/JTestParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class JTestParser : public JEventSource {
double m_write_spread = 0.25;
std::shared_ptr<std::vector<char>> m_latest_entangled_buffer;

size_t m_max_event_count = 0;
size_t m_events_generated = 0;

public:
Expand All @@ -35,7 +34,6 @@ class JTestParser : public JEventSource {
app->GetParameter("jtest:parser_ms", m_cputime_ms);
app->GetParameter("jtest:parser_bytes_spread", m_write_spread);
app->GetParameter("jtest:parser_spread", m_cputime_spread);
app->GetParameter("jtest:nevents", m_max_event_count);

SetTypeName(NAME_OF_THIS);
}
Expand All @@ -45,9 +43,6 @@ class JTestParser : public JEventSource {
}

void GetEvent(std::shared_ptr<JEvent> event) {
if (m_max_event_count != 0 && m_events_generated > m_max_event_count) {
throw RETURN_STATUS::kNO_MORE_EVENTS;
}

if ((m_events_generated % 40) == 0) {
// "Read" new entangled event every 40 events
Expand Down

0 comments on commit be4691b

Please sign in to comment.