Class Reference for E1039 Core & Analysis Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
E906SpillSelector.h
Go to the documentation of this file.
1 #ifndef _E906_SPILL_SELECTOR__H_
2 #define _E906_SPILL_SELECTOR__H_
3 #include <vector>
4 #include <fun4all/SubsysReco.h>
5 class TH1;
6 class SQEvent;
7 
9 
19 class E906SpillSelector: public SubsysReco {
20  std::vector<int> m_list_spill_ok;
21  std::string m_fn_list;
22  std::string m_fn_out;
23  TH1* m_h1_evt_cnt;
24  SQEvent* m_evt;
25 
26  public:
27  E906SpillSelector(const std::string &name="E906SpillSelector");
28  virtual ~E906SpillSelector();
29  int Init(PHCompositeNode *topNode);
30  int InitRun(PHCompositeNode *topNode);
32  int End(PHCompositeNode *topNode);
33 
34  void SetSpillListFile(const std::string fn_list) { m_fn_list = fn_list; }
35  void EnableOutput(const std::string fn_out="e906_spill_selector.tsv") { m_fn_out = fn_out; }
36 };
37 
38 #endif // _E906_SPILL_SELECTOR__H_
A SubsysReco module to select good E906 spills.
int Init(PHCompositeNode *topNode)
virtual ~E906SpillSelector()
int End(PHCompositeNode *topNode)
Called at the end of all processing.
int InitRun(PHCompositeNode *topNode)
void EnableOutput(const std::string fn_out="e906_spill_selector.tsv")
void SetSpillListFile(const std::string fn_list)
int process_event(PHCompositeNode *topNode)
E906SpillSelector(const std::string &name="E906SpillSelector")
An SQ interface class to hold one event header.
Definition: SQEvent.h:17