Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TruthJetInput.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file TruthJetInput.h
1 #ifndef G4JET_TRUTHJETINPUT_H
2 #define G4JET_TRUTHJETINPUT_H
3 
4 #include <jetbase/JetInput.h>
5 #include <jetbase/Jet.h>
6 
7 #include <iostream> // for cout, ostream
8 #include <vector>
9 
10 class PHCompositeNode;
11 
12 class TruthJetInput : public JetInput
13 {
14  public:
16  ~TruthJetInput() override {}
17 
22  void add_embedding_flag(const int embed_stream_id)
23  {
24  m_EmbedID.push_back(embed_stream_id);
25  }
26 
27  void identify(std::ostream& os = std::cout) override;
28 
29  Jet::SRC get_src() override { return m_Input; }
30 
31  std::vector<Jet*> get_input(PHCompositeNode* topNode) override;
32 
33  void set_eta_range(float eta_min, float eta_max)
34  {
35  m_EtaMin = eta_min;
36  m_EtaMax = eta_max;
37  }
38 
39  private:
41  float m_EtaMin = -4.;
42  float m_EtaMax = 4.;
43 
46  std::vector<int> m_EmbedID;
47 
48  bool use_embed_stream() { return m_EmbedID.size() > 0; }
49 };
50 
51 #endif