24 namespace castor_impl {
33 std::vector<const CastorElectronicsMap::PrecisionItem*>::const_iterator item;
38 if (item ==
mPItemsById.end() || (*item)->mId != fId)
48 if (i!=0 && i->
mElId!=fElId) i=0;
56 if (i!=0 && i->
mElId!=fElId) i=0;
63 std::vector<const CastorElectronicsMap::TriggerItem*>::const_iterator item;
96 if (i!=0 && i->
mId!=0) {
114 std::vector <CastorElectronicsId>
result;
115 for (std::vector<PrecisionItem>::const_iterator item =
mPItems.begin (); item !=
mPItems.end (); item++)
117 for (std::vector<TriggerItem>::const_iterator item =
mTItems.begin (); item !=
mTItems.end (); item++)
124 std::vector <CastorElectronicsId>
result;
125 for (std::vector<PrecisionItem>::const_iterator item =
mPItems.begin (); item !=
mPItems.end (); item++)
131 std::vector <CastorElectronicsId>
result;
132 for (std::vector<TriggerItem>::const_iterator item =
mTItems.begin (); item !=
mTItems.end (); item++)
139 std::vector <HcalGenericDetId>
result;
140 std::set <unsigned long> allIds;
141 for (std::vector<PrecisionItem>::const_iterator item =
mPItems.begin (); item !=
mPItems.end (); item++)
142 if (item->mId) allIds.insert (item->mId);
143 for (std::set <unsigned long>::const_iterator channel = allIds.begin (); channel != allIds.end (); channel++) {
150 std::vector <HcalTrigTowerDetId>
result;
151 std::set <unsigned long> allIds;
152 for (std::vector<TriggerItem>::const_iterator item =
mTItems.begin (); item !=
mTItems.end (); item++)
153 if (item->mTrigId) allIds.insert (item->mTrigId);
154 for (std::set <unsigned long>::const_iterator channel = allIds.begin (); channel != allIds.end (); channel++)
167 edm::LogWarning(
"CASTOR") <<
"CastorElectronicsMap::mapEId2tId-> Electronics channel " << fElectronicsId <<
" already mapped to trigger channel "
182 else if (item.
mId != fId.
rawId ()) {
183 edm::LogWarning(
"CASTOR") <<
"CastorElectronicsMap::mapEId2tId-> Electronics channel " << fElectronicsId <<
" already mapped to channel "
193 for (std::vector<PrecisionItem>::const_iterator
i=
mPItems.begin();
i!=
mPItems.end(); ++
i) {
205 for (std::vector<TriggerItem>::const_iterator
i=
mTItems.begin();
i!=
mTItems.end(); ++
i) {
std::vector< PrecisionItem > mPItems
const DetId lookupTrigger(CastorElectronicsId fId) const
brief lookup the trigger logical detid associated with the given electronics id
std::vector< const TriggerItem * > mTItemsByTrigId
std::vector< CastorElectronicsId > allElectronicsIdTrigger() const
std::vector< CastorElectronicsId > allElectronicsIdPrecision() const
bool operator()(const CastorElectronicsMap::PrecisionItem *a, const CastorElectronicsMap::PrecisionItem *b)
bool mapEId2tId(CastorElectronicsId fElectronicsId, HcalTrigTowerDetId fTriggerId)
uint32_t rawId() const
get the raw id
const PrecisionItem * findById(unsigned long fId) const
const DetId lookup(CastorElectronicsId fId) const
lookup the logical detid associated with the given electronics id
const TriggerItem * findTByElId(unsigned long fElId) const
std::vector< HcalTrigTowerDetId > allTriggerId() const
std::vector< const PrecisionItem * > mPItemsById
const PrecisionItem * findPByElId(unsigned long fElId) const
const TriggerItem * findByTrigId(unsigned long fTrigId) const
std::vector< HcalGenericDetId > allPrecisionId() const
bool operator()(const CastorElectronicsMap::TriggerItem *a, const CastorElectronicsMap::TriggerItem *b)
void sortByTriggerId() const
std::vector< CastorElectronicsId > allElectronicsId() const
std::vector< TriggerItem > mTItems
bool mapEId2chId(CastorElectronicsId fElectronicsId, DetId fId)
Readout chain identification for Castor Bits for the readout chain : some names need change! [31:26] ...