CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Stepper.h
Go to the documentation of this file.
1 #ifndef EvFStepperService_H
2 #define EvFStepperService_H 1
3 
4 
10 
11 #include <pthread.h>
12 
14 
15 #include <string>
16 #include <vector>
17 
18 namespace evf {
19 
20  class Stepper : public ServiceWeb
21  {
22  public:
24  ~Stepper();
25 
27  void postBeginJob();
28  void postEndJob();
29 
30  void preEventProcessing(const edm::EventID&, const edm::Timestamp&);
31  void postEventProcessing(const edm::Event&, const edm::EventSetup&);
32 
33  void preSource();
34  void postSource();
35 
36 
37  void preModule(const edm::ModuleDescription&);
39  void publish(xdata::InfoSpace *) {}
40 
41  private:
42 
44  {
45  pthread_mutex_lock(&mutex_);
46  pthread_cond_wait(&cond_,&mutex_);
47  pthread_mutex_unlock(&mutex_);
48  }
49  std::string epstate_;
50  std::string modulelabel_;
51  std::string modulename_;
52  unsigned int rid_;
53  unsigned int eid_;
54  std::string original_referrer_;
55  pthread_mutex_t mutex_;
56  pthread_cond_t cond_;
57  bool step_;
58  };
59 
60 }
61 
62 #endif
#define Input(cl)
Definition: vmac.h:189
pthread_cond_t cond_
Definition: Stepper.h:56
bool step_
Definition: Stepper.h:57
void publish(xdata::InfoSpace *)
Definition: Stepper.h:39
void preEventProcessing(const edm::EventID &, const edm::Timestamp &)
Definition: Stepper.cc:59
void postModule(const edm::ModuleDescription &)
Definition: Stepper.cc:91
std::string epstate_
Definition: Stepper.h:49
void preSource()
Definition: Stepper.cc:71
std::string modulename_
Definition: Stepper.h:51
void postBeginJob()
Definition: Stepper.cc:46
std::string original_referrer_
Definition: Stepper.h:54
unsigned int eid_
Definition: Stepper.h:53
void wait_on_signal()
Definition: Stepper.h:43
tuple out
Definition: dbtoconf.py:99
void defaultWebPage(xgi::Input *in, xgi::Output *out)
Definition: Stepper.cc:95
void preModule(const edm::ModuleDescription &)
Definition: Stepper.cc:84
Stepper(const edm::ParameterSet &, edm::ActivityRegistry &)
Definition: Stepper.cc:20
pthread_mutex_t mutex_
Definition: Stepper.h:55
std::string modulelabel_
Definition: Stepper.h:50
void postEndJob()
Definition: Stepper.cc:52
unsigned int rid_
Definition: Stepper.h:52
void postEventProcessing(const edm::Event &, const edm::EventSetup &)
Definition: Stepper.cc:68
#define Output(cl)
Definition: vmac.h:193
void postSource()
Definition: Stepper.cc:78