6 namespace electronicsmap
18 std::vector<HcalElectronicsId> eids =
20 for (std::vector<HcalElectronicsId>::const_iterator it=
21 eids.begin(); it!=eids.end(); ++it)
28 _ids.insert(std::make_pair(did.
rawId(), it->rawId()));
34 std::vector<HcalTrigTowerDetId> tids =
36 for (std::vector<HcalTrigTowerDetId>::const_iterator it=
37 tids.begin(); it!=tids.end(); ++it)
40 uint32_t
hash = it->rawId();
41 EMapType::iterator eit =
_ids.find(hash);
45 _ids.insert(std::make_pair(hash, eid.
rawId()));
51 std::vector<HcalElectronicsId> eids =
53 for (std::vector<HcalElectronicsId>::const_iterator
54 it=eids.begin(); it!=eids.end(); ++it)
59 EMapType::iterator eit =
_ids.find(hash);
64 _ids.insert(std::make_pair(hash, did.
rawId()));
70 std::vector<HcalElectronicsId> eids =
72 for (std::vector<HcalElectronicsId>::const_iterator
73 it=eids.begin(); it!=eids.end(); ++it)
77 EMapType::iterator eit =
_ids.find(it->rawId());
82 _ids.insert(std::make_pair(it->rawId(),
103 std::vector<HcalElectronicsId> eids =
105 for (std::vector<HcalElectronicsId>::const_iterator it=
106 eids.begin(); it!=eids.end(); ++it)
116 _ids.insert(std::make_pair(did.
rawId(), it->rawId()));
121 std::vector<HcalElectronicsId> eids=
123 for (std::vector<HcalElectronicsId>::const_iterator it=
124 eids.begin(); it!=eids.end(); ++it)
129 _ids.insert(std::make_pair(tid.
rawId(), it->rawId()));
134 std::vector<HcalElectronicsId> eids =
136 for (std::vector<HcalElectronicsId>::const_iterator it=
137 eids.begin(); it!=eids.end(); ++it)
150 _ids.insert(std::make_pair(hash,did.
rawId()));
155 std::vector<HcalElectronicsId> eids=
157 for (std::vector<HcalElectronicsId>::const_iterator it=
158 eids.begin(); it!=eids.end(); ++it)
163 _ids.insert(std::make_pair(it->rawId(), tid.
rawId()));
172 uint32_t
hash =
id.rawId();
179 uint32_t
hash =
id.rawId();
190 <<
" "<< v.second <<
std::dec << std::endl;
std::vector< HcalElectronicsId > allElectronicsIdPrecision() const
void initialize(HcalElectronicsMap const *, ElectronicsMapType etype=fHcalElectronicsMap)
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