Class Reference for E1039 Core & Analysis Software
EvtFilter.h
Go to the documentation of this file.
1 #ifndef EvtFilter_H
2 #define EvtFilter_H
3 
4 // ROOT
5 #include <TString.h>
6 
7 // Fun4All includes
8 #include <fun4all/SubsysReco.h>
9 
10 // STL includes
11 #include <vector>
12 #include <string>
13 #include <iostream>
14 #include <set>
15 #include <list>
16 #include <map>
17 #include <string>
18 
19 class SQEvent;
20 
21 
22 class EvtFilter : public SubsysReco
23 {
24 public:
25 
26 public:
27  EvtFilter(const std::string &name = "EvtFilter");
28  virtual ~EvtFilter();
29 
30 #ifndef __CINT__
31  int Init(PHCompositeNode *topNode);
32 #endif
33 
35  int InitRun(PHCompositeNode *topNode);
36 
38  int process_event(PHCompositeNode *topNode);
39 
40  int End(PHCompositeNode *topNode);
41 
42  unsigned short get_trigger_req() const {
43  return _trigger_req;
44  }
45 
46  void set_trigger_req(unsigned short triggerReq) {
47  _trigger_req = triggerReq;
48  }
49 
50  int get_event_id_req() const {
51  return _event_id_req;
52  }
53 
54  void set_event_id_req(int eventIdReq) {
55  _event_id_req = eventIdReq;
56  }
57 
58 private:
59 
60  int GetNodes(PHCompositeNode *topNode);
61 
62  size_t _event;
63 
64  unsigned short _trigger_req;
65  int _event_id_req;
66 
67 
68  SQEvent* _event_header;
69 };
70 
71 
72 #endif
void set_event_id_req(int eventIdReq)
Definition: EvtFilter.h:54
int Init(PHCompositeNode *topNode)
Definition: EvtFilter.cxx:30
int get_event_id_req() const
Definition: EvtFilter.h:50
int process_event(PHCompositeNode *topNode)
event processing
Definition: EvtFilter.cxx:53
void set_trigger_req(unsigned short triggerReq)
Definition: EvtFilter.h:46
int End(PHCompositeNode *topNode)
Called at the end of all processing.
Definition: EvtFilter.cxx:95
int InitRun(PHCompositeNode *topNode)
module initialization
Definition: EvtFilter.cxx:48
unsigned short get_trigger_req() const
Definition: EvtFilter.h:42
EvtFilter(const std::string &name="EvtFilter")
Definition: EvtFilter.cxx:35
virtual ~EvtFilter()
Definition: EvtFilter.cxx:44
An SQ interface class to hold one event header.
Definition: SQEvent.h:17