Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CosmicSpray.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file CosmicSpray.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 #ifndef G4MAIN_COSMICSPRAY_H
4 #define G4MAIN_COSMICSPRAY_H
5 
6 #include "EcoMug.h"
7 
8 #include <fun4all/SubsysReco.h>
9 
10 #include <cmath>
11 #include <string> // for string
12 
13 class PHCompositeNode;
14 
15 //class CosmicSpray : public PHG4ParticleGeneratorBase
16 class CosmicSpray : public SubsysReco
17 {
18  public:
19  bool InDetector(double x, double y, double z);
20  CosmicSpray(const std::string &name = "COSMICS", const double R = 650);
21  ~CosmicSpray() override {}
22  int InitRun(PHCompositeNode *topNode) override;
23  int process_event(PHCompositeNode *topNode) override;
24 
25  private:
27 
28  double _gun_e = NAN;
29  double _x_min = NAN;
30  double _x_max = NAN;
31  double _z_min = NAN;
32  double _z_max = NAN;
33  double _y_fix = NAN;
34 
35  double _R = NAN;
36 };
37 #endif