CMS 3D CMS Logo

CPUSpender.cc
Go to the documentation of this file.
6 
8 
9  public:
12 
14  ~CPUSpender() override {}
15 
16  void analyze(const edm::Event & event, const edm::EventSetup& eventSetup) override {
17  time_t s = time(nullptr);
18  while (time(nullptr)-s < timePerEvent_) { continue;}
19  }
20 
21  // Operations
22  void beginJob() {}
23  void endJob() {}
24 
25 protected:
26  // void printTrackRecHits(const reco::Track &, edm::ESHandle<GlobalTrackingGeometry>) const;
27 
28  private:
29  unsigned int timePerEvent_;
30 };
31 
32 
34 
unsigned int timePerEvent_
Definition: CPUSpender.cc:29
T getUntrackedParameter(std::string const &, T const &) const
~CPUSpender() override
Destructor.
Definition: CPUSpender.cc:14
void endJob()
Definition: CPUSpender.cc:23
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup) override
Definition: CPUSpender.cc:16
void beginJob()
Definition: CPUSpender.cc:22
CPUSpender(const edm::ParameterSet &pset)
Constructor.
Definition: CPUSpender.cc:11
Definition: event.py:1