Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
JetHepMCLoader.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file JetHepMCLoader.h
1 // $Id: $
2 
11 #ifndef G4JET_JETHEPMCLOADER_H
12 #define G4JET_JETHEPMCLOADER_H
13 
14 #include <jetbase/Jet.h>
15 
16 #include <fun4all/SubsysReco.h>
17 #include <string>
18 #include <vector>
19 
21 class PHCompositeNode;
22 
42 class JetHepMCLoader : public SubsysReco
43 {
44  public:
46  JetHepMCLoader(const std::string &jetInputCategory);
47  ~JetHepMCLoader() override {}
48 
49  int InitRun(PHCompositeNode *topNode) override;
50  int process_event(PHCompositeNode *topNode) override;
51  int End(PHCompositeNode *topNode) override;
52 
64  void addJet(
65  const std::string &name,
66  int embeddingID,
68  double parameter,
69  int tagPID,
70  int tagStatus);
71 
72  void saveQAPlots(bool b = true) { m_saveQAPlots = b; }
73 
74  private:
75  int CreateNodes(PHCompositeNode *topNode);
77 
79 
80  bool m_saveQAPlots = false;
81 
83  {
86 
89 
92 
94 
96  double m_parameter;
97 
99  int m_tagPID;
100 
103  };
104 
105  std::vector<hepmc_jet_src> m_jetSrc;
106 };
107 
108 #endif /* JETHEPMCLOADER_H_ */