6 namespace electronicsmap
18 std::vector<HcalElectronicsId> eids =
20 for (std::vector<HcalElectronicsId>::const_iterator it=
21 eids.begin(); it!=eids.end(); ++it)
25 EMapType::iterator dit =
_ids.find(did.
rawId());
31 _ids.insert(std::make_pair(did.
rawId(), it->rawId()));
37 std::vector<HcalTrigTowerDetId> tids =
39 for (std::vector<HcalTrigTowerDetId>::const_iterator it=
40 tids.begin(); it!=tids.end(); ++it)
43 uint32_t
hash = it->rawId();
44 EMapType::iterator eit =
_ids.find(hash);
48 _ids.insert(std::make_pair(hash, eid.
rawId()));
54 std::vector<HcalElectronicsId> eids =
56 for (std::vector<HcalElectronicsId>::const_iterator
57 it=eids.begin(); it!=eids.end(); ++it)
60 uint32_t
hash = it->rawId();
61 EMapType::iterator eit =
_ids.find(hash);
66 _ids.insert(std::make_pair(hash, did.
rawId()));
72 std::vector<HcalElectronicsId> eids =
74 for (std::vector<HcalElectronicsId>::const_iterator
75 it=eids.begin(); it!=eids.end(); ++it)
79 EMapType::iterator eit =
_ids.find(it->rawId());
84 _ids.insert(std::make_pair(it->rawId(),
105 std::vector<HcalElectronicsId> eids =
107 for (std::vector<HcalElectronicsId>::const_iterator it=
108 eids.begin(); it!=eids.end(); ++it)
118 _ids.insert(std::make_pair(did.
rawId(), it->rawId()));
123 std::vector<HcalElectronicsId> eids=
125 for (std::vector<HcalElectronicsId>::const_iterator it=
126 eids.begin(); it!=eids.end(); ++it)
131 _ids.insert(std::make_pair(tid.
rawId(), it->rawId()));
136 std::vector<HcalElectronicsId> eids =
138 for (std::vector<HcalElectronicsId>::const_iterator it=
139 eids.begin(); it!=eids.end(); ++it)
152 _ids.insert(std::make_pair(hash,did.
rawId()));
157 std::vector<HcalElectronicsId> eids=
159 for (std::vector<HcalElectronicsId>::const_iterator it=
160 eids.begin(); it!=eids.end(); ++it)
165 _ids.insert(std::make_pair(it->rawId(), tid.
rawId()));
174 uint32_t
hash =
id.rawId();
179 EMapType::iterator it =
_ids.find(hash);
180 return it==
_ids.end() ? 0 : it->second;
188 uint32_t
hash = (
id.oldFormat() ?
id.otherForm() :
id.rawId());
194 EMapType::iterator it =
_ids.find(hash);
195 return it==
_ids.end() ? 0 : it->second;
202 uint32_t
hash =
id.rawId();
207 EMapType::iterator it=
_ids.find(hash);
208 return it==
_ids.end() ? 0 : it->second;
219 <<
" "<< v.second <<
std::dec << std::endl;
constexpr uint32_t rawId() const
std::vector< HcalElectronicsId > allElectronicsIdPrecision() const
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
constexpr uint32_t rawId() const
get the raw id
std::vector< HcalElectronicsId > allElectronicsIdTrigger() const
uint32_t lookup(DetId const &)
Container::value_type value_type
HcalElectronicsMap const * _emap
ElectronicsMapType _etype
virtual bool filter(HcalDetId const &) const
const DetId lookupTrigger(HcalElectronicsId fId) const
brief lookup the trigger logical detid associated with the given electronics id
uint32_t hash_EChannel(HcalElectronicsId const &)
Readout chain identification for Hcal.
std::vector< HcalTrigTowerDetId > allTriggerId() const
const DetId lookup(HcalElectronicsId fId) const
lookup the logical detid associated with the given electronics id