12 mPItems(helper.mPItems.
begin(),helper.mPItems.
end())
45 return HcalObjectAddons::findByT<PrecisionItem,HcalFrontEndMapAddons::LessById>(&
target,
mPItemsById);
57 <<
HcalDetId(fId) <<
" already exists with RM " 58 << iter->mRM <<
" RBX " << iter->mRBX
59 <<
" new values " << rm <<
" and " << rbx
70 return (item ? item->
mRM : 0);
82 return (item ? item->
mRBX :
"");
93 std::vector <DetId>
result;
94 for (std::vector<PrecisionItem>::const_iterator item =
mPItems.begin ();
96 if (item->mId) result.push_back(
DetId(item->mId));
102 for (std::vector<PrecisionItem>::const_iterator item =
mPItems.begin ();
103 item !=
mPItems.end (); item++) {
104 if (
std::find(result.begin(),result.end(),item->mRM) == result.end())
105 result.push_back(item->mRM);
111 std::vector <std::string>
result;
112 for (std::vector<PrecisionItem>::const_iterator item =
mPItems.begin ();
113 item !=
mPItems.end (); item++) {
114 if (
std::find(result.begin(),result.end(),item->mRBX) == result.end())
115 result.push_back(item->mRBX);
121 HcalObjectAddons::sortByT<PrecisionItem,HcalFrontEndMapAddons::LessById>(
mPItems,
mPItemsById);
std::vector< std::string > allRBXs() const
std::vector< const PrecisionItem * > mPItemsById
bool loadObject(DetId fId, int rm, std::string rbx)
load a new entry
HcalFrontEndMap & operator=(const HcalFrontEndMap &rhs)
const int lookupRMIndex(DetId fId) const
constexpr uint32_t rawId() const
get the raw id
void find(edm::Handle< EcalRecHitCollection > &hits, DetId thisDet, std::vector< EcalRecHitCollection::const_iterator > &hit, bool debug=false)
const int lookupRBXIndex(DetId fId) const
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::vector< DetId > allDetIds() const
void swap(HcalFrontEndMap &other)
const PrecisionItem * findById(uint32_t fId) const
const int lookupRM(DetId fId) const
brief lookup the RM associated with the given logical id
std::vector< int > allRMs() const
const std::string lookupRBX(DetId fId) const
brief lookup the RBX associated with the given logical id
std::vector< PrecisionItem > mPItems