File indexing completed on 2024-04-06 12:04:40
0001 #ifndef DataFormats_Luminosity_LumiSummaryRunHeader_h
0002 #define DataFormats_Luminosity_LumiSummaryRunHeader_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 #include <vector>
0019 #include <string>
0020
0021 class LumiSummaryRunHeader {
0022 public:
0023 typedef std::vector<std::string> vstring_t;
0024
0025
0026
0027
0028 LumiSummaryRunHeader() {}
0029
0030
0031
0032 LumiSummaryRunHeader(vstring_t& l1names, vstring_t& hltnames);
0033
0034
0035 ~LumiSummaryRunHeader() {}
0036
0037
0038 bool isProductEqual(LumiSummaryRunHeader const& o) const;
0039
0040
0041
0042
0043 void setL1Names(const vstring_t& l1names);
0044
0045
0046 void setHLTNames(const vstring_t& hltnames);
0047
0048
0049 void swapL1Names(vstring_t& l1names);
0050
0051
0052 void swapHLTNames(vstring_t& hltnames);
0053
0054
0055
0056
0057 std::string getL1Name(unsigned int idx) const { return m_l1Names.at(idx); }
0058
0059
0060 std::string getHLTName(unsigned int idx) const { return m_hltNames.at(idx); }
0061
0062
0063 const vstring_t& getL1Names(vstring_t& l1names) const { return m_l1Names; }
0064
0065
0066 const vstring_t& getHLTNames(vstring_t& hltnames) const { return m_hltNames; }
0067
0068
0069 unsigned int getL1Index(const std::string& name) const;
0070
0071
0072 unsigned int getHLTIndex(const std::string& name) const;
0073
0074
0075
0076 private:
0077 vstring_t m_l1Names;
0078 vstring_t m_hltNames;
0079 };
0080
0081 #endif