ECCE @ EIC 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 <string> // for string
9 
10 class PHCompositeNode;
11 
12 class PHG4GenHit: public SubsysReco
13 {
14  public:
15  PHG4GenHit(const std::string &name = "PHG4GenHit");
16  ~PHG4GenHit() override {}
17 
18  int process_event(PHCompositeNode *topNode) override;
19 
20  void set_phi(const double d) {phi = d;}
21  void set_theta(const double d) {theta = d;}
22  void set_eloss(const double d) {eloss = d;}
23  void set_layer(const int i) {layer = i;}
24  void Detector(const std::string &n) {detector = n;}
25 
26  protected:
27  double phi;
28  double theta;
29  double eloss;
30  int layer;
31  std::string detector;
32 
33 };
34 
35 #endif