21 mTItemsByTrigId(nullptr) {}
27 return a->mId <
b->mId;
33 return a->mTrigId <
b->mTrigId;
44 : mPItems(
src.mPItems), mTItems(
src.mTItems), mPItemsById(nullptr), mTItemsByTrigId(nullptr) {}
63 std::vector<const CastorElectronicsMap::PrecisionItem*>::const_iterator
item;
68 if (
item == (*mPItemsById).end() || (*item)->mId != fId)
78 if (
i !=
nullptr &&
i->mElId != fElId)
87 if (
i !=
nullptr &&
i->mElId != fElId)
94 std::vector<const CastorElectronicsMap::TriggerItem*>::const_iterator
item;
99 if (
item == (*mTItemsByTrigId).end() || (*item)->mTrigId != fTrigId)
129 if (
i !=
nullptr &&
i->mId != 0) {
141 if (
i !=
nullptr &&
i->mTrigId != 0) {
150 std::vector<CastorElectronicsId>
result;
162 std::vector<CastorElectronicsId>
result;
170 std::vector<CastorElectronicsId>
result;
179 std::vector<HcalGenericDetId>
result;
180 std::set<unsigned long> allIds;
183 allIds.insert(
item->mId);
184 for (std::set<unsigned long>::const_iterator channel = allIds.begin(); channel != allIds.end(); channel++) {
191 std::vector<HcalTrigTowerDetId>
result;
192 std::set<unsigned long> allIds;
195 allIds.insert(
item->mTrigId);
196 for (std::set<unsigned long>::const_iterator channel = allIds.begin(); channel != allIds.end(); channel++)
205 if (
item.mTrigId == 0) {
207 }
else if (
item.mTrigId != fTriggerId.
rawId()) {
208 edm::LogWarning(
"CASTOR") <<
"CastorElectronicsMap::mapEId2tId-> Electronics channel " << fElectronicsId
210 <<
". New value " << fTriggerId <<
" is ignored";
224 edm::LogWarning(
"CASTOR") <<
"CastorElectronicsMap::mapEId2tId-> Electronics channel " << fElectronicsId
234 auto ptr =
new std::vector<const PrecisionItem*>;
237 (*ptr).push_back(&(*
i));
241 std::vector<const PrecisionItem*>* expect =
nullptr;
242 bool exchanged =
mPItemsById.compare_exchange_strong(expect, ptr);
251 auto ptr =
new std::vector<const TriggerItem*>;
254 (*ptr).push_back(&(*
i));
259 std::vector<const TriggerItem*>* expect =
nullptr;