File indexing completed on 2024-04-06 12:11:05
0001 #ifndef EventFilter_Utilities_SourceCommon_h
0002 #define EventFilter_Utilities_SourceCommon_h
0003
0004
0005
0006
0007
0008 #include "EventFilter/Utilities/interface/FastMonitoringService.h"
0009
0010 class IdleSourceSentry {
0011 public:
0012 IdleSourceSentry(evf::FastMonitoringService* fms) : fms_(fms) {
0013 if (fms_)
0014 fms_->setTMicrostate(evf::FastMonState::mIdleSource);
0015 }
0016 ~IdleSourceSentry() {
0017 if (fms_)
0018 fms_->setTMicrostate(evf::FastMonState::mIdle);
0019 }
0020
0021 private:
0022 evf::FastMonitoringService* fms_;
0023 };
0024
0025 #endif