Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4GenHit.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4GenHit.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4DETECTORS_PHG4GENHIT_H
4 #define G4DETECTORS_PHG4GENHIT_H
5 
6 #include <fun4all/SubsysReco.h>
7 
8 #include <cmath>
9 #include <string> // for string
10 
11 class PHCompositeNode;
12 
13 class PHG4GenHit : public SubsysReco
14 {
15  public:
16  PHG4GenHit(const std::string &name = "PHG4GenHit");
17  ~PHG4GenHit() override {}
18 
19  int process_event(PHCompositeNode *topNode) override;
20 
21  void set_phi(const double d) { phi = d; }
22  void set_theta(const double d) { theta = d; }
23  void set_eloss(const double d) { eloss = d; }
24  void set_layer(const int i) { layer = i; }
25  void Detector(const std::string &n) { detector = n; }
26 
27  protected:
28  double phi = NAN;
29  double theta = NAN;
30  double eloss = NAN;
31  int layer = -9999;
33 };
34 
35 #endif