File indexing completed on 2025-08-05 08:16:34
0001 #ifndef JETBACKGROUND_COPYANDSUBTRACTJETS_H
0002 #define JETBACKGROUND_COPYANDSUBTRACTJETS_H
0003
0004
0005
0006
0007
0008
0009
0010 #include <fun4all/SubsysReco.h>
0011
0012 #include <string>
0013
0014
0015 class PHCompositeNode;
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026 class CopyAndSubtractJets : public SubsysReco
0027 {
0028 public:
0029 CopyAndSubtractJets(const std::string &name = "CopyAndSubtractJets");
0030 ~CopyAndSubtractJets() override {}
0031
0032 int InitRun(PHCompositeNode *topNode) override;
0033 int process_event(PHCompositeNode *topNode) override;
0034 int End(PHCompositeNode *topNode) override;
0035
0036 void SetFlowModulation(bool use_flow_modulation) { _use_flow_modulation = use_flow_modulation; }
0037 void set_towerinfo(bool use_towerinfo)
0038 {
0039 m_use_towerinfo = use_towerinfo;
0040 }
0041 void set_towerNodePrefix(const std::string &prefix)
0042 {
0043 m_towerNodePrefix = prefix;
0044 return;
0045 }
0046
0047 private:
0048 int CreateNode(PHCompositeNode *topNode);
0049
0050 bool _use_flow_modulation{false};
0051 bool m_use_towerinfo{false};
0052 std::string m_towerNodePrefix{"TOWERINFO_CALIB"};
0053 std::string EMTowerName;
0054 std::string IHTowerName;
0055 std::string OHTowerName;
0056 };
0057
0058 #endif