Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PrintTowers.h
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file PrintTowers.h
1 #ifndef PRINTTOWERS___H
2 #define PRINTTOWERS___H
3 
4 #include <fun4all/SubsysReco.h>
5 #include <jetbase/Jet.h>
6 
7 #include <memory>
8 #include <string>
9 #include <utility> // std::pair, std::make_pair
10 
11 #include <array>
12 #include <vector>
13 
14 class Jet;
15 class PHCompositeNode;
16 class JetEvalStack;
17 class TTree;
18 class TH2D;
19 class TH1;
20 class JetInput;
21 
22 class PrintTowers : public SubsysReco
23 {
24  public:
26  (
27  std::vector<std::string> jet_names
28  , std::vector<std::pair<std::string,std::string>> matchlist = {}
29  , std::vector<std::pair<Jet::SRC,std::string>> tower_sources = {}
30  , const float min_jet_pt = 5.
31  , const float m_tow_tow_pt = 0.01
32  /* , const float _jet_R = 0.4 */
33  /* , const std::string& truthjetname = "AntiKt_Truth_r04" */
34  /* , const std::string& sub1jetname = "AntiKt_Truth_r04" */
35  /* , const float min_lead_truth_pt = 10. */
36  );
37 
38  virtual ~PrintTowers();
39  float m_max_cent = 100.;
40  int nmax_jetprint = 10.;
41  float m_pt_min_match = 30.;
42 
43  /* void use_initial_vertex(const bool b = true) {initial_vertex = b;} */
44  int Init (PHCompositeNode *topNode);
45  int InitRun (PHCompositeNode *topNode);
46  int process_event (PHCompositeNode *topNode);
47  int End (PHCompositeNode *topNode);
48  void clear_vectors();
49  /* void add_input(JetInput *input) { m_inputs.push_back(input); } */
50 
51  private:
52 
53  const std::vector<std::string> m_jet_names;
54  const std::vector<std::pair<std::string,std::string>> m_matchlist;
55  const std::vector<std::pair<Jet::SRC,std::string>> m_SRC;
56  const float m_min_jet_pt;
57  const float m_min_tow_pt;
58  int nevnt {0};
59 
60 };
61 
62 #endif // JETRHOMEDIAN__H