Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:18:06

0001 // Tell emacs that this is a C++ source
0002 //  -*- C++ -*-.
0003 #ifndef G4MAIN_COSMICSPRAY_H
0004 #define G4MAIN_COSMICSPRAY_H
0005 
0006 #include "EcoMug.h"
0007 
0008 #include <fun4all/SubsysReco.h>
0009 
0010 #include <cmath>
0011 #include <string>  // for string
0012 
0013 class PHCompositeNode;
0014 
0015 // class CosmicSpray : public PHG4ParticleGeneratorBase
0016 class CosmicSpray : public SubsysReco
0017 {
0018  public:
0019   bool InDetector(double x, double y, double z);
0020   CosmicSpray(const std::string &name = "COSMICS", const double R = 650);
0021   ~CosmicSpray() override {}
0022   int InitRun(PHCompositeNode *topNode) override;
0023   int process_event(PHCompositeNode *topNode) override;
0024 
0025  private:
0026   EcoMug gen;
0027 
0028   double _gun_e = NAN;
0029   double _x_min = NAN;
0030   double _x_max = NAN;
0031   double _z_min = NAN;
0032   double _z_max = NAN;
0033   double _y_fix = NAN;
0034 
0035   double _R = NAN;
0036 };
0037 #endif