Class Reference for E1039 Core & Analysis Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AnaWait.h
Go to the documentation of this file.
1 #ifndef _ANA_WAIT__H_
2 #define _ANA_WAIT__H_
3 #include <fun4all/SubsysReco.h>
4 
5 class AnaWait: public SubsysReco {
6  int m_wait_spill;
7  int m_wait_event;
8 
9  public:
10  AnaWait(const int sec_spill=30, const int sec_event=0);
11  virtual ~AnaWait();
12 
13  void SetWaitPerSpill(const int sec) { m_wait_spill = sec; }
14  void SetWaitPerEvent(const int sec) { m_wait_event = sec; }
15 
16  int Init(PHCompositeNode *topNode);
17  int InitRun(PHCompositeNode *topNode);
18  int process_event(PHCompositeNode *topNode);
19  int End(PHCompositeNode *topNode);
20 
21  protected:
22  void DoWait(int sec);
23 };
24 
25 #endif /* _ANA_WAIT__H_ */
void SetWaitPerSpill(const int sec)
Definition: AnaWait.h:13
Definition: AnaWait.h:5
int End(PHCompositeNode *topNode)
Called at the end of all processing.
Definition: AnaWait.cc:48
int InitRun(PHCompositeNode *topNode)
Definition: AnaWait.cc:23
int Init(PHCompositeNode *topNode)
Definition: AnaWait.cc:18
void SetWaitPerEvent(const int sec)
Definition: AnaWait.h:14
virtual ~AnaWait()
Definition: AnaWait.cc:13
void DoWait(int sec)
Definition: AnaWait.cc:53
AnaWait(const int sec_spill=30, const int sec_event=0)
Definition: AnaWait.cc:7
int process_event(PHCompositeNode *topNode)
Definition: AnaWait.cc:28