Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:17:48

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4DETECTORS_PHG4GENHIT_H
0004 #define G4DETECTORS_PHG4GENHIT_H
0005 
0006 #include <fun4all/SubsysReco.h>
0007 
0008 #include <cmath>
0009 #include <string>  // for string
0010 
0011 class PHCompositeNode;
0012 
0013 class PHG4GenHit : public SubsysReco
0014 {
0015  public:
0016   PHG4GenHit(const std::string &name = "PHG4GenHit");
0017   ~PHG4GenHit() override {}
0018 
0019   int process_event(PHCompositeNode *topNode) override;
0020 
0021   void set_phi(const double d) { phi = d; }
0022   void set_theta(const double d) { theta = d; }
0023   void set_eloss(const double d) { eloss = d; }
0024   void set_layer(const int i) { layer = i; }
0025   void Detector(const std::string &n) { detector = n; }
0026 
0027  protected:
0028   double phi = NAN;
0029   double theta = NAN;
0030   double eloss = NAN;
0031   int layer = -9999;
0032   std::string detector;
0033 };
0034 
0035 #endif