|
ATLAS Offline Software
|
Go to the documentation of this file.
18 ATH_MSG_INFO(
"Request to reinitialize not satisfied - tags have not changed");
32 ATH_MSG_ERROR(
" initialize_from_dict - cannot access MuonSpectrometer dictionary ");
43 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'tgcGasGap' field ");
51 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'isStrip' field ");
59 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find channel' field ");
82 ATH_MSG_DEBUG(
" TGC decode index and bit fields for each level: " << std::endl
97 if (atlasDict->
get_label_value(
"subdet",
"MuonSpectrometer", muonField)) {
98 ATH_MSG_ERROR(
"Could not get value for label 'MuonSpectrometer' of field 'subdet' in dictionary " << atlasDict->
m_name);
107 if (muon_range.
size() > 0) {
108 ATH_MSG_INFO(
"MultiRange built successfully to Technology: "
109 <<
"MultiRange size is " << muon_range.
size());
117 detectorElement_region.
add(muonField);
118 Range detectorElement_prefix;
120 if (muon_detectorElement_range.
size() > 0) {
121 ATH_MSG_INFO(
"MultiRange built successfully to detector element: "
122 <<
"Multilayer MultiRange size is " << muon_detectorElement_range.
size());
124 ATH_MSG_ERROR(
"Muon TGC detector element MultiRange is empty");
129 tgc_region.
add(muonField);
132 if (muon_channel_range.
size() > 0) {
133 ATH_MSG_INFO(
"MultiRange built successfully to channel: "
134 <<
"MultiRange size is " << muon_channel_range.
size());
144 for (
int i = 0;
i < (
int)muon_range.
size(); ++
i) {
155 for (
int j = 0; j < (
int)muon_detectorElement_range.
size(); ++j) {
156 const Range&
range = muon_detectorElement_range[j];
161 ATH_MSG_DEBUG(
"detector element field size is " << (
int)
range.cardinality() <<
" field index = " << j);
166 for (
int j = 0; j < (
int)muon_channel_range.
size(); ++j) {
172 ATH_MSG_DEBUG(
"channel field size is " << (
int)
range.cardinality() <<
" field index = " << j);
186 ATH_MSG_ERROR(
"TGC MultiRange ID is empty for detector elements");
203 ATH_MSG_INFO(
"Initializing TGC hash indices for finding neighbors ... ");
222 for (
unsigned int i = 0;
i < hash_max; ++
i) {
251 for (
const auto &expId : rit) {
266 if (
range.match(expId)) {
268 if (not eta_field.
empty()) {
290 if (
range.match(expId)) {
292 if (not eta_field.
empty()) {
309 if (
range.match(expId)) {
325 if (
range.match(expId)) {
342 if (
range.match(expId)) {
344 if (not gasgap_field.
empty()) {
365 if (
range.match(expId)) {
382 if (
range.match(expId)) {
384 if (not isstrip_field.
empty()) {
406 if (
range.match(expId)) {
408 if (not isstrip_field.
empty()) {
426 if (
range.match(expId)) {
428 if (not channel_field.
empty()) {
450 if (
range.match(expId)) {
452 if (not channel_field.
empty()) {
571 }
catch (
const std::out_of_range&) {
isValid =
false; }
602 }
catch (
const std::out_of_range&) {
isValid =
false; }
626 }
catch (
const std::out_of_range&) {
isValid =
false; }
682 return (
'E' ==
name[2]);
687 return (
'1' ==
name[1]);
static int stationPhiMin(bool endcap)
bool validStation(int stationName, int technology) const
int stationNameIndex(const std::string &name) const
IdDictFieldImplementation m_ist_impl
constexpr uint8_t stationPhi
station Phi 1 to 8
MultiRange build_multirange() const
Get MultiRange for full dictionary.
Identifier parentID(const Identifier &id) const
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
Scalar phi() const
phi method
static int chamberType(const std::string &stationName, int stationEta)
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const override
Create compact id from hash id (return == 0 for OK)
int technologyIndex(const std::string &name) const
int gasGap(const Identifier &id) const override
get the hashes
std::string show_to_string(void) const
int muon_field_value() const
IdContext channel_context() const
id for channel
Scalar eta() const
pseudorapidity method
void add(const Range &range)
element_type get_minimum() const
Query the values.
IdDictFieldImplementation m_sta_impl
bool validElement(const Identifier &id) const
void add(element_type value)
Append a value into a new field.
unsigned int moduleHashIdx(const Identifier &id) const
void pack(int value, Identifier &id) const
element_type get_maximum() const
int tgcTechnology() const
Utility methods.
int stationName(const Identifier &id) const
virtual int get_detectorElement_hash(const Identifier &id, IdentifierHash &hash_id) const override
IdDictFieldImplementation m_phi_impl
int unpack(Identifier id) const
Identifier manipulation methods.
MultiRange m_full_channel_range
bool measuresPhi(const Identifier &id) const override
@ u
Enums for curvilinear frames.
IdDictField * find_field(const std::string &name) const
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
bool is_tgc(const Identifier &id) const
void reset(Identifier &id) const
int channel(const Identifier &id) const override
unsigned int m_stationShift
Minimal station index found.
IdDictGroup * find_group(const std::string &group_name) const
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
static int stationEtaMin()
IdDictFieldImplementation m_cha_impl
static int stationPhiMax(bool endcap)
virtual int get_module_hash(const Identifier &id, IdentifierHash &hash_id) const override
std::vector< IdDictRegion * > m_regions
bool tripletChamber(int stationName) const
MultiRange m_full_detectorElement_range
int tgc_field_value() const
bool isStNameInTech(const std::string &stationName) const override
The valid element checks converted the identifier to a stationName string in order to assess whether ...
MultiRange m_full_module_range
int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
Create expanded id from compact id (return == 0 for OK)
const std::vector< IdDictRegion * > & regions()
IdDictFieldImplementation m_eta_impl
int isStrip(const Identifier &id) const
isStrip corresponds to measuresPhi
static int gasGapMax(bool triplet)
IdDictFieldImplementation m_muon_impl
int register_dict_tag(const IdDictMgr &dict_mgr, const std::string &dict_name)
Register the file and tag names for a particular IdDict dictionary.
Identifier elementID(int stationName, int stationEta, int stationPhi) const
int stationPhi(const Identifier &id) const
int get_label_value(const std::string &field, const std::string &label, int &value) const
const std::string & stationNameString(const int &index) const
A MultiRange combines several Ranges.
int stationEta(const Identifier &id) const
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
std::array< unsigned int, s_modHashDim > m_module_hashes
size_type module_hash_max() const
the maximum hash value
bool validChannel(const Identifier &id, int stationName, int stationEta, int stationPhi, int gasGap, int isStrip, int channel) const
bool endcapChamber(int stationName) const
virtual int init_detectorElement_hashes()
static constexpr unsigned int s_phiDim
48 phi stations
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
size_type m_TECHNOLOGY_INDEX
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
void resetAndSet(const IdDictFieldImplementation &dict, const int new_val, Identifier &id) const
size_type m_DETECTORELEMENT_INDEX
IdDictFieldImplementation m_tec_impl
unsigned long long value_type
Identifier channelID(int stationName, int stationEta, int stationPhi, int gasGap, int isStrip, int channel) const
constexpr uint8_t stationEta
1 to 3
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
void idChannels(const Identifier &id, std::vector< Identifier > &vect) const
static int stationEtaMax()
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
std::vector< IdDictFieldImplementation > m_implementation
size_type m_ISSTRIP_INDEX
static constexpr unsigned int s_etaDim
Except T2E all stations have 4 associated eta stations.
IdDictFieldImplementation m_gap_impl
bool valid(const Identifier &id) const
size_type m_CHANNEL_INDEX
const IdDictDictionary * m_dict