Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4InputFilter.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4InputFilter.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MAIN_PHG4INPUTFILTER_H
4 #define G4MAIN_PHG4INPUTFILTER_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <string>
9 
10 class PHCompositeNode;
11 
13 {
14  public:
15  PHG4InputFilter(const std::string &name = "G4INPUTFILTER");
16  ~PHG4InputFilter() override {}
17 
18  int process_event(PHCompositeNode *topNode) override;
19 
20  void set_eta_range(const double min, const double max) {etamin = min; etamax = max;}
21  void set_etamin(const double min) {etamin = min;}
22  void set_etamax(const double max) {etamax = max;}
23  void set_ptmin(const double min) {ptmin = min;}
24  void set_ptmax(const double max) {ptmax = max;}
25 
26  protected:
27  double get_eta(const double x, const double y, const double z);
28  double etamin;
29  double etamax;
30  double ptmin;
31  double ptmax;
32 
33 };
34 
35 #endif
36