Skip to content

Commit

Permalink
Add "SlowControls" to JEventLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanwbrei committed Apr 23, 2024
1 parent c0b2097 commit 86a4676
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/libraries/JANA/Utils/JEventLevel.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
#include <ostream>
#include <sstream>

enum class JEventLevel { Run, Subrun, Timeslice, Block, PhysicsEvent, Subevent, Task, None };
enum class JEventLevel { Run, Subrun, SlowControls, Timeslice, Block, PhysicsEvent, Subevent, Task, None };

inline std::ostream& operator<<(std::ostream& os, JEventLevel level) {
switch (level) {
case JEventLevel::Run: os << "Run"; break;
case JEventLevel::Subrun: os << "Subrun"; break;
case JEventLevel::Timeslice: os << "Timeslice"; break;
case JEventLevel::Block: os << "Block"; break;
case JEventLevel::SlowControls: os << "SlowControls"; break;
case JEventLevel::PhysicsEvent: os << "PhysicsEvent"; break;
case JEventLevel::Subevent: os << "Subevent"; break;
case JEventLevel::Task: os << "Task"; break;
Expand All @@ -33,7 +34,8 @@ inline JEventLevel next_level(JEventLevel current_level) {
case JEventLevel::Run: return JEventLevel::Subrun;
case JEventLevel::Subrun: return JEventLevel::Timeslice;
case JEventLevel::Timeslice: return JEventLevel::Block;
case JEventLevel::Block: return JEventLevel::PhysicsEvent;
case JEventLevel::Block: return JEventLevel::SlowControls;
case JEventLevel::SlowControls: return JEventLevel::PhysicsEvent;
case JEventLevel::PhysicsEvent: return JEventLevel::Subevent;
case JEventLevel::Subevent: return JEventLevel::Task;
case JEventLevel::Task: return JEventLevel::None;
Expand Down

0 comments on commit 86a4676

Please sign in to comment.