|
ATLAS Offline Software
|
Go to the documentation of this file.
19 ATH_MSG_INFO(
"Request to reinitialize not satisfied - tags have not changed");
33 ATH_MSG_ERROR(
" initialize_from_dict - cannot access MuonSpectrometer dictionary ");
43 ATH_MSG_DEBUG(
"initLevelsFromDict - there are no CSC entries in the dictionary! ");
51 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'chamberLayer' field ");
59 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'wireLayer' field ");
67 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'cscMeasuresPhi' field ");
75 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'cscStrip' field ");
100 ATH_MSG_DEBUG(
" CSC decode index and bit fields for each level: " << std::endl
119 if (atlasDict->
get_label_value(
"subdet",
"MuonSpectrometer", muonField)) {
120 ATH_MSG_ERROR(
"Could not get value for label 'MuonSpectrometer' of field "
121 <<
"'subdet' in dictionary " << atlasDict->
m_name);
131 if (muon_range.
size() > 0) {
132 ATH_MSG_INFO(
"MultiRange built successfully to Technology: "
133 <<
"MultiRange size is " << muon_range.
size());
141 detectorElement_region.
add(muonField);
142 Range detectorElement_prefix;
144 if (muon_detectorElement_range.
size() > 0) {
145 ATH_MSG_INFO(
"MultiRange built successfully to detector element: "
146 <<
"Multilayer MultiRange size is " << muon_detectorElement_range.
size());
148 ATH_MSG_ERROR(
"Muon CSC detector element MultiRange is empty");
154 csc_region.
add(muonField);
157 if (muon_channel_range.
size() > 0) {
158 ATH_MSG_INFO(
"MultiRange built successfully to cscStrip: "
159 <<
"MultiRange size is " << muon_channel_range.
size());
174 for (
int i = 0;
i < (
int)muon_range.
size(); ++
i) {
185 for (
int j = 0; j < (
int)muon_detectorElement_range.
size(); ++j) {
186 const Range&
range = muon_detectorElement_range[j];
191 ATH_MSG_DEBUG(
"detector element field size is " << (
int)
range.cardinality() <<
" field index = " << j);
196 for (
int j = 0; j < (
int)muon_channel_range.
size(); ++j) {
202 ATH_MSG_DEBUG(
"channel field size is " << (
int)
range.cardinality() <<
" field index = " << j);
217 ATH_MSG_ERROR(
"CSC MultiRange ID is empty for detector elements");
239 ATH_MSG_INFO(
"Initializing CSC hash indices for finding neighbors ... ");
253 ATH_MSG_ERROR(
"Failed to retrieve ExpandedIdentifier from Identifier " <<
id.get_compact());
259 if (
range.match(expId)) {
261 if (not !phi_field.
empty()) {
262 ATH_MSG_ERROR(
"Range::field for phi at position " <<
i <<
" does not have a maximum");
305 for (
unsigned int i = 0;
i < hash_max; ++
i) {
316 for (
unsigned int i = 0;
i < hash_max; ++
i) {
350 for (
const auto & expId : rit) {
365 if (
range.match(expId)) {
367 if (not eta_field.
empty()) {
389 if (
range.match(expId)) {
391 if (not eta_field.
empty()) {
408 if (
range.match(expId)) {
424 if (
range.match(expId)) {
440 if (
range.match(expId)) {
456 if (
range.match(expId)) {
472 if (
range.match(expId)) {
488 if (
range.match(expId)) {
504 if (
range.match(expId)) {
520 if (
range.match(expId)) {
536 if (
range.match(expId)) {
630 int measuresPhi,
int strip)
const {
663 }
else if (
version ==
"CSC Cosmic") {
693 }
catch (
const std::out_of_range&) {
isValid =
false; }
722 int strip,
bool&
isValid)
const {
727 }
catch (
const std::out_of_range&) {
isValid =
false; }
732 int measuresPhi,
int strip)
const {
736 int measuresPhi,
int strip,
bool&
isValid)
const {
753 }
catch (
const std::out_of_range&) {
isValid =
false; }
bool validStation(int stationName, int technology) const
int stationNameIndex(const std::string &name) const
bool valid(const Identifier &id) const
Public validation of levels.
constexpr uint8_t stationPhi
station Phi 1 to 8
MultiRange build_multirange() const
Get MultiRange for full dictionary.
static constexpr unsigned int s_phiDim
8 phi stations
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
unsigned int moduleHashIdx(const Identifier &id) const
Scalar phi() const
phi method
int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
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
std::string show_to_string(void) const
int muon_field_value() const
size_type m_MEASURESPHI_INDEX
IdContext channel_context() const
id for channel
Scalar eta() const
pseudorapidity method
size_type detectorElement_hash_max() const
void add(const Range &range)
element_type get_minimum() const
Query the values.
IdDictFieldImplementation m_sta_impl
void idChannels(const Identifier &id, std::vector< Identifier > &vect) const
size_type m_CHAMBERLAYER_INDEX
void add(element_type value)
Append a value into a new field.
static int measuresPhiMax()
bool is_csc(const Identifier &id) const
void pack(int value, Identifier &id) const
element_type get_maximum() const
int stationName(const Identifier &id) const
bool isValid(const T &p)
Av: we implement here an ATLAS-sepcific convention: all particles which are 99xxxxx are fine.
IdDictFieldImplementation m_phi_impl
static int measuresPhiMin()
static int chamberLayerMin()
int unpack(Identifier id) const
Identifier manipulation methods.
MultiRange m_full_channel_range
unsigned int m_stationShift
Minimal station index found.
@ u
Enums for curvilinear frames.
IdDictField * find_field(const std::string &name) const
int channel(const Identifier &id) const override
void reset(Identifier &id) const
static int stationEtaMax()
int wireLayer(const Identifier &id) 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 ...
IdDictGroup * find_group(const std::string &group_name) const
std::array< unsigned int, s_modHashDim > m_module_hashes
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
Identifier parentID(const Identifier &id) const
get parent id from channel id
static int stationEtaMin()
Access to min and max of level ranges.
IdDictFieldImplementation m_str_impl
bool validChannel(const Identifier &id, int stationName, int stationEta, int stationPhi, int chamberLayer, int wireLayer, int measuresPhi, int strip) const
int get_module_hash(const Identifier &id, IdentifierHash &hash_id) const override
static int wireLayerMax()
unsigned int m_stripMaxPhi
std::vector< IdDictRegion * > m_regions
MultiRange m_full_detectorElement_range
int gasGap(const Identifier &id) const override
get the hashes
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
size_type m_WIRELAYER_INDEX
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.
IdDictFieldImplementation m_lay_impl
int stationPhi(const Identifier &id) const
static int stationPhiMin()
int get_label_value(const std::string &field, const std::string &label, int &value) const
const std::string & stationNameString(const int &index) const
int sector(const Identifier &id) const
A MultiRange combines several Ranges.
Identifier channelID(int stationName, int stationEta, int stationPhi, int chamberLayer, int wireLayer, int measuresPhi, int strip) const
id_vec m_detectorElement_vec
unsigned int m_stripMaxEta
bool validElement(const Identifier &id) const
int stationEta(const Identifier &id) const
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
IdDictFieldImplementation m_cla_impl
IdDictFieldImplementation m_mea_impl
size_type module_hash_max() const
the maximum hash value
Identifier elementID(int stationName, int stationEta, int stationPhi) const
virtual int init_detectorElement_hashes()
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
static int chamberLayerMax()
int strip(const Identifier &id) const
static constexpr unsigned int s_etaDim
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
static constexpr unsigned int s_mlDim
2 multi layer
IdDictFieldImplementation m_tec_impl
unsigned long long value_type
unsigned int detEleHashIdx(const Identifier &id) const
bool measuresPhi(const Identifier &id) const override
int init_channel_hashes()
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...
static int wireLayerMin()
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
std::vector< IdDictFieldImplementation > m_implementation
int get_detectorElement_hash(const Identifier &id, IdentifierHash &hash_id) const override
static int stationPhiMax()
int csc_field_value() const
int chamberLayer(const Identifier &id) const
int cscTechnology() const
Utility methods.
std::array< unsigned int, s_detHashDim > m_detectorElement_hashes
size_type m_CHANNEL_INDEX
const IdDictDictionary * m_dict