Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHG4ScoringManager.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PHG4ScoringManager.h
1 // Tell emacs that this is a C++ source
2 // -*- C++ -*-.
3 // $Id: $
4 
13 #ifndef G4MAIN_PHG4SCORINGMANAGER_H
14 #define G4MAIN_PHG4SCORINGMANAGER_H
15 
16 #include <fun4all/SubsysReco.h>
17 
18 #include <string>
19 #include <vector>
20 #include <utility>
21 
23 class PHCompositeNode;
24 
33 {
34  public:
36 
37  ~PHG4ScoringManager() override {}
38 
40  int InitRun(PHCompositeNode *topNode) override;
41 
43  int process_event(PHCompositeNode *) override;
44 
46  int End(PHCompositeNode *) override;
47 
49  void setOutputFileName(const std::string &outputfilename) { m_outputFileName = outputfilename; };
50 
53 
67  void G4Command(const std::string &cmd);
68 
69  void setVertexHistRange(double min, double max) {m_vertexHistRange.first = min; m_vertexHistRange.second = max;}
70  void setVertexAcceptanceRange(double min, double max) {m_vertexAcceptanceRange.first = min; m_vertexAcceptanceRange.second = max;}
71 
72  private:
74  void makeScoringHistograms();
75 
76  std::vector<std::string> m_commands;
77 
79 
80  std::pair<double, double> m_vertexHistRange {-5e2 ,5e2 };
81  std::pair<double, double> m_vertexAcceptanceRange {-5e2 ,5e2 };
82 };
83 
84 #endif /* PHG4SCORINGMANAGER_H_ */