File indexing completed on 2025-01-14 23:16:43
0001 #ifndef DataFormats_L1TGlobal_GlobalObjectMapRecord_h
0002 #define DataFormats_L1TGlobal_GlobalObjectMapRecord_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019 #include <string>
0020 #include <vector>
0021
0022
0023 #include "DataFormats/L1TGlobal/interface/GlobalObjectMapFwd.h"
0024 #include "DataFormats/L1TGlobal/interface/GlobalObjectMap.h"
0025
0026
0027
0028
0029 class GlobalObjectMapRecord {
0030 public:
0031
0032 GlobalObjectMapRecord() {}
0033
0034
0035 ~GlobalObjectMapRecord() {}
0036
0037 void swap(GlobalObjectMapRecord& rh) { m_gtObjectMap.swap(rh.m_gtObjectMap); }
0038
0039 public:
0040
0041 const GlobalObjectMap* getObjectMap(const std::string& algoNameVal) const;
0042
0043
0044 const GlobalObjectMap* getObjectMap(const int algoBitNumberVal) const;
0045
0046
0047
0048 const CombinationsWithBxInCond* getCombinationsInCond(const std::string& algoNameVal,
0049 const std::string& condNameVal) const;
0050
0051
0052
0053 const CombinationsWithBxInCond* getCombinationsInCond(const int algoBitNumberVal,
0054 const std::string& condNameVal) const;
0055
0056
0057
0058 bool getConditionResult(const std::string& algoNameVal, const std::string& condNameVal) const;
0059
0060
0061
0062 bool getConditionResult(const int algoBitNumberVal, const std::string& condNameVal) const;
0063
0064 public:
0065
0066 inline const std::vector<GlobalObjectMap>& gtObjectMap() const { return m_gtObjectMap; }
0067
0068 inline void setGtObjectMap(const std::vector<GlobalObjectMap>& gtObjectMapValue) { m_gtObjectMap = gtObjectMapValue; }
0069
0070 inline void swapGtObjectMap(std::vector<GlobalObjectMap>& gtObjectMapValue) { m_gtObjectMap.swap(gtObjectMapValue); }
0071
0072 private:
0073 std::vector<GlobalObjectMap> m_gtObjectMap;
0074 };
0075
0076 inline void swap(GlobalObjectMapRecord& lh, GlobalObjectMapRecord& rh) { lh.swap(rh); }
0077
0078 #endif