Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:16:34

0001 #ifndef JETBACKGROUND_COPYANDSUBTRACTJETS_H
0002 #define JETBACKGROUND_COPYANDSUBTRACTJETS_H
0003 
0004 //===========================================================
0005 /// \file CopyAndSubtractJets.h
0006 /// \brief Creates subtracted copy of a jet collection
0007 /// \author Dennis V. Perepelitsa
0008 //===========================================================
0009 
0010 #include <fun4all/SubsysReco.h>
0011 
0012 #include <string>
0013 
0014 // forward declarations
0015 class PHCompositeNode;
0016 
0017 /// \class CopyAndSubtractJets
0018 ///
0019 /// \brief Creates subtractd copy of a jet collection
0020 ///
0021 /// Makes a copy of a jet collection with a new name and then updates
0022 /// the kinematics of the jets in that collection based on a given UE
0023 /// background (intended use is to create the set of jets used as
0024 /// seeds in the second part of UE determination procedure)
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