File indexing completed on 2025-08-05 08:18:10
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #ifndef G4MAIN_PHG4SCORINGMANAGER_H
0014 #define G4MAIN_PHG4SCORINGMANAGER_H
0015
0016 #include <fun4all/SubsysReco.h>
0017
0018 #include <string>
0019 #include <utility>
0020 #include <vector>
0021
0022 class Fun4AllHistoManager;
0023 class PHCompositeNode;
0024
0025
0026
0027
0028
0029
0030
0031
0032 class PHG4ScoringManager : public SubsysReco
0033 {
0034 public:
0035 PHG4ScoringManager();
0036
0037 ~PHG4ScoringManager() override {}
0038
0039
0040 int InitRun(PHCompositeNode *topNode) override;
0041
0042
0043 int process_event(PHCompositeNode *) override;
0044
0045
0046 int End(PHCompositeNode *) override;
0047
0048
0049 void setOutputFileName(const std::string &outputfilename) { m_outputFileName = outputfilename; };
0050
0051
0052
0053
0054
0055
0056
0057
0058
0059
0060
0061
0062
0063
0064
0065
0066
0067 void G4Command(const std::string &cmd);
0068
0069 void setVertexHistRange(double min, double max)
0070 {
0071 m_vertexHistRange.first = min;
0072 m_vertexHistRange.second = max;
0073 }
0074 void setVertexAcceptanceRange(double min, double max)
0075 {
0076 m_vertexAcceptanceRange.first = min;
0077 m_vertexAcceptanceRange.second = max;
0078 }
0079
0080 private:
0081 Fun4AllHistoManager *getHistoManager();
0082 void makeScoringHistograms();
0083
0084 std::vector<std::string> m_commands;
0085
0086 std::string m_outputFileName;
0087
0088 std::pair<double, double> m_vertexHistRange{-5e2, 5e2};
0089 std::pair<double, double> m_vertexAcceptanceRange{-5e2, 5e2};
0090 };
0091
0092 #endif