File indexing completed on 2023-03-17 11:25:05
0001 #ifndef Watcher_SimWatcher_h
0002 #define Watcher_SimWatcher_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024 #include "FWCore/Framework/interface/EventSetup.h"
0025 #include "FWCore/Framework/interface/ConsumesCollector.h"
0026
0027 class SimWatcher {
0028 public:
0029 SimWatcher() {}
0030 virtual ~SimWatcher() {}
0031
0032
0033
0034 virtual void registerConsumes(edm::ConsumesCollector){};
0035 virtual void beginRun(edm::EventSetup const &){};
0036
0037 bool isMT() const { return applicableForMT; }
0038
0039 SimWatcher(const SimWatcher &) = delete;
0040 const SimWatcher &operator=(const SimWatcher &) = delete;
0041
0042 protected:
0043
0044 void setMT(bool val) { applicableForMT = val; }
0045
0046 private:
0047 bool applicableForMT{false};
0048 };
0049
0050 #endif