File indexing completed on 2025-12-17 09:20:29
0001
0002
0003 #ifndef JETDSTSKIMMER_H
0004 #define JETDSTSKIMMER_H
0005
0006 #include <fun4all/SubsysReco.h>
0007
0008 #include <string>
0009 #include <map>
0010
0011 class PHCompositeNode;
0012
0013 class JetDSTSkimmer : public SubsysReco
0014 {
0015 public:
0016
0017 JetDSTSkimmer(const std::string &name = "JetDSTSkimmer");
0018
0019
0020 ~JetDSTSkimmer() override = default;
0021
0022 int process_event(PHCompositeNode *topNode) override;
0023
0024 void SetJetNodeThresholds(const std::string &jetNodeName, float threshold) { m_JetNodePts[jetNodeName] = threshold; }
0025 void SetClusterNodeThresholds(const std::string &clusterNodeName, float threshold) { m_ClusterNodePts[clusterNodeName] = threshold; }
0026
0027 void SetJetNodeThresholds(const std::map<std::string, float> &jetNodePts) { m_JetNodePts = jetNodePts; }
0028 void SetClusterNodeThresholds(const std::map<std::string, float> &clusterNodePts) { m_ClusterNodePts = clusterNodePts; }
0029
0030 void ResetJetNodeThresholds() { m_JetNodePts.clear(); }
0031 void ResetClusterNodeThresholds() { m_ClusterNodePts.clear(); }
0032
0033 private:
0034 bool isBackgroundEvent();
0035
0036 std::map<std::string, float> m_JetNodePts;
0037 std::map<std::string, float> m_ClusterNodePts;
0038 };
0039
0040 #endif