File indexing completed on 2025-08-05 08:13:08
0001 #ifndef JETUTILS_H_
0002 #define JETUTILS_H_
0003
0004 #include <iostream>
0005 #include <string>
0006 #include <vector>
0007
0008 using std::string;
0009 using std::vector;
0010 using std::pair;
0011
0012 class JetUtils
0013 {
0014 public:
0015 static bool check_bad_jet_eta(float jet_eta, float zvtx, float jet_radius);
0016 static vector<string> split(const string &s, const char delimiter);
0017 static int readEventList(const string &input, vector<pair<int, int>> &vec, int nEvents=0, bool verbose=false);
0018
0019 static vector<string> m_triggers;
0020
0021 static bool failsLoEmFracETCut(float emFrac, float ET);
0022 static bool failsHiEmFracETCut(float emFrac, float ET);
0023
0024 private:
0025 static float get_emcal_mineta_zcorrected(float zvtx);
0026 static float get_emcal_maxeta_zcorrected(float zvtx);
0027 static float get_ihcal_mineta_zcorrected(float zvtx);
0028 static float get_ihcal_maxeta_zcorrected(float zvtx);
0029 static float get_ohcal_mineta_zcorrected(float zvtx);
0030 static float get_ohcal_maxeta_zcorrected(float zvtx);
0031
0032 constexpr static float radius_EM = 93.5;
0033 constexpr static float mineta_EM = -1.13381;
0034 constexpr static float maxeta_EM = 1.13381;
0035 constexpr static float minz_EM = -130.23;
0036 constexpr static float maxz_EM = 130.23;
0037
0038 constexpr static float radius_IH = 127.503;
0039 constexpr static float mineta_IH = -1.1;
0040 constexpr static float maxeta_IH = 1.1;
0041 constexpr static float minz_IH = -170.299;
0042 constexpr static float maxz_IH = 170.299;
0043
0044 constexpr static float radius_OH = 225.87;
0045 constexpr static float mineta_OH = -1.1;
0046 constexpr static float maxeta_OH = 1.1;
0047 constexpr static float minz_OH = -301.683;
0048 constexpr static float maxz_OH = 301.683;
0049 };
0050
0051 #endif