CMS 3D CMS Logo

CPUSpender.cc
Go to the documentation of this file.
6 
8 
9  public:
12 
14  virtual ~CPUSpender() {}
15 
16  void analyze(const edm::Event & event, const edm::EventSetup& eventSetup) {
17  time_t s = time(0);
18  while (time(0)-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
void endJob()
Definition: CPUSpender.cc:23
virtual ~CPUSpender()
Destructor.
Definition: CPUSpender.cc:14
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:17
void beginJob()
Definition: CPUSpender.cc:22
CPUSpender(const edm::ParameterSet &pset)
Constructor.
Definition: CPUSpender.cc:11
void analyze(const edm::Event &event, const edm::EventSetup &eventSetup)
Definition: CPUSpender.cc:16
Definition: event.py:1