 |
ATLAS Offline Software
|
Helper class for LArMiniFCAL offline identifiers.
More...
#include <LArMiniFCAL_ID.h>
|
| typedef Identifier::size_type | size_type |
| |
| typedef std::vector< Identifier >::const_iterator | id_iterator |
| | Type for iterators over identifiers. More...
|
| |
| typedef boost::iterator_range< id_iterator > | id_range |
| | Type for range over identifiers. More...
|
| |
| enum | { NOT_VALID =999999
} |
| |
| enum | HelperType {
HelperType::Unimplemented = -1,
HelperType::Silicon = 0,
HelperType::Pixel,
HelperType::PLR,
HelperType::SCT,
HelperType::TRT,
HelperType::LArEM,
HelperType::LArFCal,
HelperType::LArFCalSuperCell,
HelperType::LArHEC,
HelperType::LArHEC_SuperCell,
HelperType::LARMiniFCal,
HelperType::Tile,
HelperType::TileSuperCell,
HelperType::LArOnline,
HelperType::LArOnlineSuperCell,
HelperType::LArElectrode,
HelperType::LArHVLine,
HelperType::TileHardware,
HelperType::TileTestbeam,
HelperType::CaloCell,
HelperType::CaloSuperCell,
HelperType::CaloDM,
HelperType::CaloLvl1,
HelperType::GTower,
HelperType::JTower,
HelperType::Muon,
HelperType::LUCID,
HelperType::LUCID_Hardware,
HelperType::Zdc,
HelperType::ZdcHardware,
HelperType::TT
} |
| | enum class for eventual final derived types of this class More...
|
| |
|
| | LArMiniFCAL_ID () |
| |
| | ~LArMiniFCAL_ID () |
| |
| bool | is_initialized () const |
| | check whether LArMiniFCAL ID helper has been initialized - returns false if description is not available
More...
|
| |
| Identifier | module_id (const ExpandedIdentifier &exp_id) const |
| | module identifier for a channel from ExpandedIdentifier
More...
|
| |
| Identifier | channel_id (const ExpandedIdentifier &exp_id) const |
| | cell identifier for a channel from ExpandedIdentifier More...
|
| |
| Identifier | module_id (int pos_neg, int module) const |
| | build a module identifier for a channel
More...
|
| |
| Identifier | module_id (int pos_neg, int module, bool checks) const |
| |
| Identifier | channel_id (int pos_neg, int module, int depth, int eta, int phi) const |
| | build a cell identifier for a channel
More...
|
| |
| Identifier | channel_id (int pos_neg, int module, int depth, int eta, int phi, bool checks) const |
| |
| Identifier | module_id (const Identifier id) const |
| | allows to know in which region is a channel/cell – valid for both kinds of channels More...
|
| |
| Identifier | channel_id (const Identifier moduleId, int depth, int eta, int phi) const |
| | allows to build a channel id starting from a module id (e.g. More...
|
| |
| Identifier | channel_id (const Identifier moduleId, int depth, int eta, int phi, bool checks) const |
| |
| bool | is_supercell (const Identifier channelId) const |
| |
| Identifier | module_id (IdentifierHash module_hash_id) const |
| | create module id from hash id More...
|
| |
| IdentifierHash | module_hash (Identifier module_id) const |
| | create hash id from module id More...
|
| |
| IdentifierHash | channel_hash_binary_search (Identifier channelId) const |
| | create hash id from channel id – method NOT optimised, please use channel_hash() above More...
|
| |
| size_type | module_hash_max () const |
| | region hash table max size More...
|
| |
| id_iterator | mod_begin () const |
| | begin iterator over set of module Identifiers More...
|
| |
| id_iterator | mod_end () const |
| | end iterator over set of module Identifiers More...
|
| |
| id_range | mod_range () const |
| | range over set of module Identifiers More...
|
| |
| id_iterator | minifcal_begin () const |
| | begin iterator over full set of Fcal Identifiers for channels More...
|
| |
| id_iterator | minifcal_end () const |
| | end iterator over full set of Fcal Identifiers for channels More...
|
| |
| id_range | minifcal_range () const |
| | range over full set of Fcal Identifiers for channels More...
|
| |
| const std::vector< Identifier > & | channel_ids () const |
| | provide access to channel id vector, accessed via hash More...
|
| |
| const std::vector< Identifier > & | module_ids () const |
| | provide access to module id vector, accessed via hash More...
|
| |
| int | pos_neg (const Identifier id) const |
| | pos_neg : +/- 2 (A/C side) More...
|
| |
| int | module (const Identifier id) const |
| | module [0] More...
|
| |
| int | depth (const Identifier id) const |
| | depth [0,3] More...
|
| |
| int | eta (const Identifier id) const |
| | eta [0,63] module 1 ; [0,31] module 2 ; [0,15] module 3 More...
|
| |
| int | phi (const Identifier id) const |
| | phi [0,15] More...
|
| |
| int | eta_min (const Identifier regId) const |
| | min value of eta index (-999 == failure) More...
|
| |
| int | eta_max (const Identifier regId) const |
| | max value of eta index (-999 == failure) More...
|
| |
| int | phi_min (const Identifier regId) const |
| | min value of phi index (-999 == failure) More...
|
| |
| int | phi_max (const Identifier regId) const |
| | max value of phi index (-999 == failure) More...
|
| |
| int | get_neighbours (const IdentifierHash id, const LArNeighbours::neighbourOption &option, std::vector< IdentifierHash > &neighbourList) const |
| | access to hashes for neighbours return == 0 for neighbours found
option = all2D, prevInSamp, nextInSamp, all3D
in 'nextInSamp', next means 'away from the centre of Atlas'
in 'prevInSamp', prev means 'towards the centre of Atlas'
More...
|
| |
| IdContext | module_context () const |
| | context for modules – method kept for backward compatibility. More...
|
| |
| virtual int | initialize_from_dictionary (const IdDictMgr &dict_mgr) |
| | initialization from the identifier dictionary More...
|
| |
| Identifier | channel_id (IdentifierHash hashId) const |
| | Return the channel (cell) Identifier for a given hash code (no checking). More...
|
| |
| IdentifierHash | channel_hash (Identifier channelId) const |
| | Convert a connected channel (cell) Identifier to a hash code. More...
|
| |
| const HashGroup & | channels () const |
| | Return the HashGroup for channels (cells). More...
|
| |
| const HashGroup & | regions () const |
| | Return the HashGroup for regions. More...
|
| |
| Identifier | channel_id (IdentifierHash hashId) const |
| | Return the channel (cell) Identifier for a given hash code (no checking). More...
|
| |
| Identifier | region_id (IdentifierHash hashId) const |
| | Return the region Identifier for a given hash code (no checking). More...
|
| |
| IdentifierHash | channel_hash (Identifier channelId) const |
| | Convert a connected channel (cell) Identifier to a hash code. More...
|
| |
| IdentifierHash | region_hash (Identifier regionId) const |
| | Convert a connected region Identifier to a hash code. More...
|
| |
| virtual int | get_id (const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const |
| | Convert a hash code to an Identifier for either channels or regions, depending on the context. More...
|
| |
| virtual int | get_hash (const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const |
| | Convert an Identifier to a hash code for either channels or regions, depending on the context. More...
|
| |
| size_type | channel_hash_max () const |
| | One more than the largest channel (cell) hash code. More...
|
| |
| size_type | region_hash_max () const |
| | One more than the largest region hash code. More...
|
| |
| IdContext | channel_context () const |
| | Return the context for channels (cells). More...
|
| |
| IdContext | region_context () const |
| | Return the context for regions. More...
|
| |
| const std::vector< const IdDictRegion * > & | dictRegions () const |
| | Return the vector of IdDictRegion, accessed via region hash. More...
|
| |
| float | etaGranularity (const IdentifierHash regHash) const |
| | Return the eta granularity of a region, or NOT_VALID. More...
|
| |
| float | phiGranularity (const IdentifierHash regHash) const |
| | Return the phi granularity of a region, or NOT_VALID. More...
|
| |
| float | eta0 (const IdentifierHash regHash) const |
| | Return the minimum eta of region, or NOT_VALID. More...
|
| |
| float | phi0 (const IdentifierHash regHash) const |
| | Return the minimum phi of region, or NOT_VALID. More...
|
| |
| const std::string & | name () const |
| | Return the name for this helper. More...
|
| |
| IMessageSvc * | msgSvc () |
| | Return the message service for this helper (may be null). More...
|
| |
| bool | msgLvl (const MSG::Level lvl) const |
| | Test the output level. More...
|
| |
| MsgStream & | msg () const |
| | The standard message stream. More...
|
| |
| MsgStream & | msg (const MSG::Level lvl) const |
| | The standard message stream. More...
|
| |
| void | setLevel (MSG::Level lvl) |
| | Change the current logging level. More...
|
| |
|
| int | phi_min_init (const Identifier regId) const |
| |
| void | module_id_checks (int pos_neg, int module) const |
| |
| void | channel_id_checks (int pos_neg, int module, int depth, int eta, int phi) const |
| |
| void | channel_id_checks (const Identifier moduleId, int depth, int eta, int phi) const |
| |
| virtual int | get_expanded_id (const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const |
| | create expanded Identifier from Identifier (return == 0 for OK) More...
|
| |
| int | initLevelsFromDict () |
| |
| int | init_hashes () |
| |
| int | init_neighbors_from_file (const std::string &filename, std::vector< std::set< IdentifierHash > > &vec) |
| |
| int | init_neighbors_2d (const std::string &filename) |
| |
| int | init_neighbors_3d_next (const std::string &filename) |
| |
| int | init_neighbors_3d_prev (const std::string &filename) |
| |
| int | init_neighbors (const IdDictMgr &dict_mgr) |
| |
| void | initMessaging () const |
| | Initialize our message level and MessageSvc. More...
|
| |
Helper class for LArMiniFCAL offline identifiers.
This class provides an interface to decode and generate offline identifiers for the LAr MiniFCAL detector.
Definition and range of values for the fields:
pos_neg = +/- 2 (A/C side)
module = [0] : Only one module
depth = [0,3]
phi = [0,phimax] : depends on layout
eta = [0,8] depends on layout ;
- Author
- started by RD Schaffer
-
maintained by F Ledroit
-
neighbour list/code provided by Sven Menke
-
adapted from Fcal for MiniFcal by M Fincke
Definition at line 50 of file LArMiniFCAL_ID.h.
◆ id_iterator
◆ id_range
◆ size_type
◆ anonymous enum
◆ anonymous enum
◆ HelperType
enum class for eventual final derived types of this class
| Enumerator |
|---|
| Unimplemented | |
| Silicon | |
| Pixel | |
| PLR | |
| SCT | |
| TRT | |
| LArEM | |
| LArFCal | |
| LArFCalSuperCell | |
| LArHEC | |
| LArHEC_SuperCell | |
| LARMiniFCal | |
| Tile | |
| TileSuperCell | |
| LArOnline | |
| LArOnlineSuperCell | |
| LArElectrode | |
| LArHVLine | |
| TileHardware | |
| TileTestbeam | |
| CaloCell | |
| CaloSuperCell | |
| CaloDM | |
| CaloLvl1 | |
| GTower | |
| JTower | |
| Muon | |
| LUCID | |
| LUCID_Hardware | |
| Zdc | |
| ZdcHardware | |
| TT | |
Definition at line 55 of file AtlasDetectorID.h.
60 LArEM, LArFCal, LArFCalSuperCell,
61 LArHEC, LArHEC_SuperCell, LARMiniFCal,
65 LArOnline, LArOnlineSuperCell,
67 LArElectrode, LArHVLine,
68 TileHardware, TileTestbeam,
75 LUCID, LUCID_Hardware,
◆ ID
◆ LArMiniFCAL_ID()
| LArMiniFCAL_ID::LArMiniFCAL_ID |
( |
| ) |
|
◆ ~LArMiniFCAL_ID()
| LArMiniFCAL_ID::~LArMiniFCAL_ID |
( |
| ) |
|
|
default |
◆ alfa_exp()
◆ alfa_field_value()
| int AtlasDetectorID::alfa_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ bcm_exp()
◆ bcm_field_value()
| int AtlasDetectorID::bcm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ calo()
◆ calo_exp()
◆ calo_field_value()
| int AtlasDetectorID::calo_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ channel_context()
| IdContext CaloIDHelper::channel_context |
( |
| ) |
const |
|
inherited |
Return the context for channels (cells).
◆ channel_hash() [1/2]
Convert a connected channel (cell) Identifier to a hash code.
Some subdetector helpers may override this with a faster version.
◆ channel_hash() [2/2]
Convert a connected channel (cell) Identifier to a hash code.
Some subdetector helpers may override this with a faster version.
◆ channel_hash_binary_search()
◆ channel_hash_max()
| size_type CaloIDHelper::channel_hash_max |
( |
| ) |
const |
|
inherited |
One more than the largest channel (cell) hash code.
◆ channel_id() [1/7]
◆ channel_id() [2/7]
allows to build a channel id starting from a module id (e.g.
from descriptors) – valid for both kinds of channels
Definition at line 404 of file LArMiniFCAL_ID.h.
◆ channel_id() [3/7]
◆ channel_id() [4/7]
Return the channel (cell) Identifier for a given hash code (no checking).
◆ channel_id() [5/7]
Return the channel (cell) Identifier for a given hash code (no checking).
◆ channel_id() [6/7]
| Identifier LArMiniFCAL_ID::channel_id |
( |
int |
pos_neg, |
|
|
int |
module, |
|
|
int |
depth, |
|
|
int |
eta, |
|
|
int |
phi |
|
) |
| const |
|
inline |
◆ channel_id() [7/7]
| Identifier LArMiniFCAL_ID::channel_id |
( |
int |
pos_neg, |
|
|
int |
module, |
|
|
int |
depth, |
|
|
int |
eta, |
|
|
int |
phi, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ channel_id_checks() [1/2]
| void LArMiniFCAL_ID::channel_id_checks |
( |
const Identifier |
moduleId, |
|
|
int |
depth, |
|
|
int |
eta, |
|
|
int |
phi |
|
) |
| const |
|
private |
Definition at line 386 of file LArMiniFCAL_ID.cxx.
395 std::string errorMessage =
"LArMiniFCAL_ID::channel_id(modId) result is not OK: ID = "
403 std::string errorMessage =
"LArMiniFCAL_ID::channel_id(modId) result is not OK: ID, range = "
◆ channel_id_checks() [2/2]
| void LArMiniFCAL_ID::channel_id_checks |
( |
int |
pos_neg, |
|
|
int |
module, |
|
|
int |
depth, |
|
|
int |
eta, |
|
|
int |
phi |
|
) |
| const |
|
private |
Definition at line 370 of file LArMiniFCAL_ID.cxx.
380 std::string errorMessage =
"LArMiniFCAL_ID::channel_id() result is not OK: ID, range = "
◆ channel_ids()
provide access to channel id vector, accessed via hash
Definition at line 471 of file LArMiniFCAL_ID.h.
◆ channels() [1/2]
Return the HashGroup for channels (cells). non-const.
◆ channels() [2/2]
Return the HashGroup for channels (cells).
◆ csc()
◆ csc_field_value()
| int AtlasDetectorID::csc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ depth()
◆ detsystem_context()
| IdContext AtlasDetectorID::detsystem_context |
( |
void |
| ) |
const |
|
inherited |
◆ dict()
Return the dictionary for this subdetector.
◆ dict_names()
| const std::vector< std::string > & AtlasDetectorID::dict_names |
( |
void |
| ) |
const |
|
inherited |
◆ dict_tags()
| const std::vector< std::string > & AtlasDetectorID::dict_tags |
( |
void |
| ) |
const |
|
inherited |
◆ dictionaryVersion()
| std::string AtlasDetectorID::dictionaryVersion |
( |
void |
| ) |
const |
|
overridevirtualinherited |
◆ dictRegions()
Return the vector of IdDictRegion, accessed via region hash.
◆ do_checks()
| bool AtlasDetectorID::do_checks |
( |
void |
| ) |
const |
|
overridevirtualinherited |
Checks are performed by default in debug compilation and NOT in optimized compilation.
One can switch or query this mode for any idHelper with the following methods:
Implements IdHelper.
Definition at line 476 of file AtlasDetectorID.cxx.
◆ do_neighbours()
| bool AtlasDetectorID::do_neighbours |
( |
void |
| ) |
const |
|
overridevirtualinherited |
Neighbour initialization is performed by default One can switch or query this mode for any idHelper with the following method:
Implements IdHelper.
Definition at line 483 of file AtlasDetectorID.cxx.
◆ eta()
eta [0,63] module 1 ; [0,31] module 2 ; [0,15] module 3
Definition at line 502 of file LArMiniFCAL_ID.h.
◆ eta0()
Return the minimum eta of region, or NOT_VALID.
- Parameters
-
Definition at line 209 of file CaloIDHelper.cxx.
◆ eta_max()
max value of eta index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 73 of file LArMiniFCAL_ID.cxx.
81 if (
range.match(expId)) {
83 if (not eta_field.
empty()) {
◆ eta_min()
min value of eta index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 47 of file LArMiniFCAL_ID.cxx.
55 if (
range.match(expId)) {
57 if (not eta_field.
empty()) {
◆ etaGranularity()
Return the eta granularity of a region, or NOT_VALID.
- Parameters
-
Definition at line 187 of file CaloIDHelper.cxx.
◆ file_names()
| const std::vector< std::string > & AtlasDetectorID::file_names |
( |
void |
| ) |
const |
|
inherited |
◆ fill_vec_of_dict_regions()
| int CaloIDHelper::fill_vec_of_dict_regions |
( |
const std::string & |
group_name = "" | ) |
|
|
protectedinherited |
Initialize the list of detector regions.
init_regions should have been called first.
- Parameters
-
| group_name | The group for this helper. |
- Returns
- 0 on success; non-zero on failure.
Definition at line 261 of file CaloIDHelper.cxx.
◆ fix_barrel_ec()
| std::string AtlasDetectorID::fix_barrel_ec |
( |
const std::string & |
barrel_ec | ) |
const |
|
protectedinherited |
◆ forward_field_value()
| int AtlasDetectorID::forward_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ fwd_exp()
◆ get_expanded_id()
◆ get_hash()
Convert an Identifier to a hash code for either channels or regions, depending on the context.
Uses binary search. Some of the subdetector-specific helpers define faster versions of channel_hash and region_hash (that, however, do less checking).
- Parameters
-
| id | The identifier to convert. |
| [out] | hash_id | The resulting hash code. Will be invalid if there was an error. |
| context | The context in which to do the conversion (specifies whether we want channels or regions). |
- Returns
- 0 for success, non-zero for failure (unrecognized context or Identifier.
Reimplemented from AtlasDetectorID.
Reimplemented in Tile_Base_ID.
Definition at line 163 of file CaloIDHelper.cxx.
171 const HashGroup* hg =
nullptr;
◆ get_id()
Convert a hash code to an Identifier for either channels or regions, depending on the context.
If you know the context at compile-time, channel_id and region_id will be faster (but they don't do range checking).
- Parameters
-
| hash_id | The hash code to convert. |
| [out] | id | The resulting Identifier. Will be invalid if there was an error. |
| context | The context in which to do the conversion (specifies whether we want channels or regions). |
- Returns
- 0 for success, non-zero for failure (unrecognized context, or hash code out of range).
Reimplemented from AtlasDetectorID.
Reimplemented in Tile_Base_ID.
Definition at line 121 of file CaloIDHelper.cxx.
132 const HashGroup* hg =
nullptr;
137 if (hash_id < hg->hash_max()) {
138 id = hg->
id (hash_id);
◆ get_neighbours()
access to hashes for neighbours return == 0 for neighbours found
option = all2D, prevInSamp, nextInSamp, all3D
in 'nextInSamp', next means 'away from the centre of Atlas'
in 'prevInSamp', prev means 'towards the centre of Atlas'
Definition at line 141 of file LArMiniFCAL_ID.cxx.
145 neighbourList.clear();
150 log << MSG::WARNING <<
"neighbours not initialized !!! returning empty list" <<
endmsg;
153 std::cout <<
" neighbours not initialized !!! returning empty list " << std::endl;
161 log << MSG::WARNING <<
"neighbours requested for non-existing channel -- id/max " <<
id <<
"/"
165 std::cout <<
" neighbours requested for non-existing channel -- id/max " <<
id <<
"/"
175 neighbourList.insert(neighbourList.end(),
183 neighbourList.insert(neighbourList.end(),
191 neighbourList.insert(neighbourList.end(),
203 std::cout <<
" NO MiniFCAL neighbours (yet) in the context of " <<
dictionaryVersion() << std::endl;
◆ group()
| const std::string & AtlasDetectorID::group |
( |
| ) |
const |
|
inherited |
◆ helper()
| virtual HelperType AtlasDetectorID::helper |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ hgtd()
◆ hgtd_exp()
◆ hgtd_field_value()
| int AtlasDetectorID::hgtd_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ indet()
◆ indet_exp()
◆ indet_field_value()
| int AtlasDetectorID::indet_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
Provide efficient access to individual field values, for subclass idhelpers.
Definition at line 606 of file AtlasDetectorID.h.
◆ init_hashes()
| int LArMiniFCAL_ID::init_hashes |
( |
| ) |
|
|
private |
◆ init_neighbors()
Definition at line 729 of file LArMiniFCAL_ID.cxx.
737 std::cout <<
"LArMiniFCAL_ID::init_neighbors " << std::endl;
741 std::string f2d,f3dnext,f3dprev;
746 if (f2d.empty() || f3dnext.empty() || f3dprev.empty()) {
748 log << MSG::ERROR <<
"init_neighbours: cannot find neighbours files: "
749 <<
" f2d: " << f2d <<
" f3dnext: " << f3dnext <<
" f3dprev: " << f3dprev
753 std::cout <<
"LArMiniFCAL_ID::init_neighbours cannot find neighbours files: "
754 <<
" f2d: " << f2d <<
" f3dnext: " << f3dnext <<
" f3dprev: " << f3dprev
757 throw std::runtime_error(
"LArMiniFCAL_ID::init_neighbours: Cannot find the FCAL Neighbour file names");
◆ init_neighbors_2d()
| int LArMiniFCAL_ID::init_neighbors_2d |
( |
const std::string & |
filename | ) |
|
|
inlineprivate |
◆ init_neighbors_3d_next()
| int LArMiniFCAL_ID::init_neighbors_3d_next |
( |
const std::string & |
filename | ) |
|
|
inlineprivate |
◆ init_neighbors_3d_prev()
| int LArMiniFCAL_ID::init_neighbors_3d_prev |
( |
const std::string & |
filename | ) |
|
|
inlineprivate |
◆ init_neighbors_from_file()
| int LArMiniFCAL_ID::init_neighbors_from_file |
( |
const std::string & |
filename, |
|
|
std::vector< std::set< IdentifierHash > > & |
vec |
|
) |
| |
|
private |
Definition at line 648 of file LArMiniFCAL_ID.cxx.
656 std::cout <<
"LArMiniFCAL_ID::init_neighbors_from_file " << std::endl;
671 std::cout <<
"LArMiniFCAL_ID::Could not find input file " <<
filename << std::endl;
677 log << MSG::ERROR <<
"Could not open file " <<
file <<
endmsg;
680 std::cout <<
"LArMiniFCAL_ID::Could not open file " <<
file << std::endl;
693 bool isComment =
true;
695 int isamp,idepth, iphi,ieta;
700 fin.getline(aLine,
sizeof(aLine)-1);
701 sLine = std::string(aLine);
702 }
while (sLine.empty() && !
fin.eof());
703 isComment = ( sLine.find(
'#') != std::string::npos );
706 while ( sLine.empty() && !
fin.eof()) {
707 fin.getline(aLine,
sizeof(aLine)-1);
708 sLine = std::string(aLine);
710 std::istringstream es( sLine.c_str() );
712 if ( es >> AorC >> isamp >>
dot >> idepth >>
dot >> iphi >>
dot >> ieta ) {
715 while ( es >> AorC >> isamp >>
dot >> idepth >>
dot >> iphi >>
dot >> ieta ) {
716 if (!
ic.is_valid())
continue;
723 }
while (!
fin.eof()) ;
◆ initialize_base_from_dictionary()
| int CaloIDHelper::initialize_base_from_dictionary |
( |
const IdDictMgr & |
dict_mgr, |
|
|
const std::string & |
dict_name |
|
) |
| |
|
protectedinherited |
Do basic initialization of the helper.
- Parameters
-
| dict_mgr | The dictionary manager returned from the parser. |
| dict_name | The dictionary name (eg, ‘LArCalorimeter’). |
- Returns
- 0 on success, non-zero on failure.
Definition at line 234 of file CaloIDHelper.cxx.
246 log << MSG::ERROR <<
" cannot access " << dict_name <<
"dictionary"
◆ initialize_from_dictionary()
| int LArMiniFCAL_ID::initialize_from_dictionary |
( |
const IdDictMgr & |
dict_mgr | ) |
|
|
virtual |
initialization from the identifier dictionary
Reimplemented from AtlasDetectorID.
Definition at line 215 of file LArMiniFCAL_ID.cxx.
220 std::string strg =
"initialize_from_dictionary";
225 log <<
MSG::DEBUG <<
"Request to reinitialize not satisfied - tags have not changed" <<
endmsg;
241 if (!
dict()->find_group(
"lar_mini_fcal")) {
242 strg =
" initialize_from_dict - LArCalorimeter dictionary does NOT contain miniFCAL description. Unable to initialize LArMiniFCAL_ID.";
250 strg =
" initialize_from_dict - cannot initialize MiniFCAL part of LArCalorimeter dictionary ";
255 std::cout << strg << std::endl;
264 if (atlasDict->
get_label_value(
"subdet",
"LArCalorimeter", larField)) {
265 std::stringstream strm ;
266 strm << atlasDict->
name();
267 strg =
"Could not get value for label 'LArCalorimeter' of field 'subdet' in dictionary "
273 std::cout << strg << std::endl;
280 int larFcalField = -1;
281 if (
dict()->get_label_value(
"part",
"LArFCAL", larFcalField)) {
282 std::stringstream strm ;
283 strm << atlasDict->
name();
284 strg =
"Could not get value for label 'LArMiniFCAL' of field 'part' in dictionary "
290 std::cout << strg << std::endl;
303 std::string
str =
"lar_mini_fcal";
309 std::string strg0 =
"initialize_from_dict : " ;
320 std::cout << strg0 << std::endl;
321 std::cout << strg1 << std::endl;
322 std::cout << strg2 << std::endl;
323 std::cout << strg2a<< std::endl;
◆ initLevelsFromDict()
| int LArMiniFCAL_ID::initLevelsFromDict |
( |
| ) |
|
|
private |
Definition at line 429 of file LArMiniFCAL_ID.cxx.
434 std::string strg =
"initLevelsFromDict - dictionary NOT initialized ";
439 std::cout << strg << std::endl;
460 std::string strg =
"initLevelsFromDict - unable to find 'subdet' field ";
465 std::cout << strg << std::endl;
475 std::string strg =
"initLevelsFromDict - unable to find 'part' field ";
480 std::cout << strg << std::endl;
490 std::string strg =
"initLevelsFromDict - unable to find 'barrel-endcap' field ";
495 std::cout << strg << std::endl;
505 std::string strg =
"initLevelsFromDict - unable to find 'module' field ";
510 std::cout << strg << std::endl;
521 std::string strg =
"initLevelsFromDict - unable to find 'depth' field ";
526 std::cout << strg << std::endl;
537 std::string strg =
"initLevelsFromDict - unable to find 'eta' field ";
542 std::cout << strg << std::endl;
552 std::string strg =
"initLevelsFromDict - unable to find 'phi' field ";
557 std::cout << strg << std::endl;
578 std::stringstream strm ;
580 std::string strg =
"initLevelsFromDict - unable to find fcal region index: id, reg "
581 + (std::string)
id + strm.str();
586 std::cout << strg << std::endl;
616 std::cout <<
"decode index and bit fields for each level: " << std::endl;
◆ initMessaging()
| void AthMessaging::initMessaging |
( |
| ) |
const |
|
privateinherited |
Initialize our message level and MessageSvc.
This method should only be called once.
Definition at line 39 of file AthMessaging.cxx.
◆ is_alfa()
| bool AtlasDetectorID::is_alfa |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_bcm()
| bool AtlasDetectorID::is_bcm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_calo() [1/2]
◆ is_calo() [2/2]
| bool AtlasDetectorID::is_calo |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_csc() [1/2]
◆ is_csc() [2/2]
| bool AtlasDetectorID::is_csc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_forward()
| bool AtlasDetectorID::is_forward |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_hgtd() [1/2]
◆ is_hgtd() [2/2]
| bool AtlasDetectorID::is_hgtd |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_indet() [1/2]
◆ is_indet() [2/2]
| bool AtlasDetectorID::is_indet |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_initialized()
| bool LArMiniFCAL_ID::is_initialized |
( |
| ) |
const |
|
inline |
check whether LArMiniFCAL ID helper has been initialized - returns false if description is not available
Definition at line 283 of file LArMiniFCAL_ID.h.
◆ is_lar() [1/2]
◆ is_lar() [2/2]
| bool AtlasDetectorID::is_lar |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_dm()
| bool AtlasDetectorID::is_lar_dm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_em() [1/2]
◆ is_lar_em() [2/2]
| bool AtlasDetectorID::is_lar_em |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_fcal() [1/2]
◆ is_lar_fcal() [2/2]
| bool AtlasDetectorID::is_lar_fcal |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_hec() [1/2]
◆ is_lar_hec() [2/2]
| bool AtlasDetectorID::is_lar_hec |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_minifcal() [1/2]
◆ is_lar_minifcal() [2/2]
| bool AtlasDetectorID::is_lar_minifcal |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lucid()
| bool AtlasDetectorID::is_lucid |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lumi() [1/2]
◆ is_lumi() [2/2]
| bool AtlasDetectorID::is_lumi |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lvl1_online()
| bool AtlasDetectorID::is_lvl1_online |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lvl1_trig_towers()
| bool AtlasDetectorID::is_lvl1_trig_towers |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_mdt() [1/2]
◆ is_mdt() [2/2]
| bool AtlasDetectorID::is_mdt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_mm() [1/2]
◆ is_mm() [2/2]
| bool AtlasDetectorID::is_mm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_muon() [1/2]
◆ is_muon() [2/2]
| bool AtlasDetectorID::is_muon |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_pixel() [1/2]
◆ is_pixel() [2/2]
| bool AtlasDetectorID::is_pixel |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_plr() [1/2]
◆ is_plr() [2/2]
| bool AtlasDetectorID::is_plr |
( |
Identifier |
id | ) |
const |
|
inherited |
◆ is_rpc() [1/2]
◆ is_rpc() [2/2]
| bool AtlasDetectorID::is_rpc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_sct() [1/2]
◆ is_sct() [2/2]
| bool AtlasDetectorID::is_sct |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_stgc() [1/2]
◆ is_stgc() [2/2]
| bool AtlasDetectorID::is_stgc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_supercell()
◆ is_tgc() [1/2]
◆ is_tgc() [2/2]
| bool AtlasDetectorID::is_tgc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tile() [1/2]
◆ is_tile() [2/2]
| bool AtlasDetectorID::is_tile |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tile_dm()
| bool AtlasDetectorID::is_tile_dm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_trt() [1/2]
◆ is_trt() [2/2]
| bool AtlasDetectorID::is_trt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_zdc()
| bool AtlasDetectorID::is_zdc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ lar()
◆ lar_dm()
◆ lar_em()
◆ lar_em_exp()
◆ lar_em_field_value()
| int AtlasDetectorID::lar_em_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_exp()
◆ lar_fcal()
| Identifier AtlasDetectorID::lar_fcal |
( |
void |
| ) |
const |
|
inherited |
◆ lar_fcal_exp()
◆ lar_fcal_field_value()
| int AtlasDetectorID::lar_fcal_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_field_value()
| int AtlasDetectorID::lar_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_hec()
| Identifier AtlasDetectorID::lar_hec |
( |
void |
| ) |
const |
|
inherited |
◆ lar_hec_exp()
◆ lar_hec_field_value()
| int AtlasDetectorID::lar_hec_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_lvl1()
| Identifier AtlasDetectorID::lar_lvl1 |
( |
void |
| ) |
const |
|
inherited |
◆ lucid_exp()
◆ lucid_field_value()
| int AtlasDetectorID::lucid_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lumi()
◆ lumi_exp()
◆ lumi_field_value()
| int AtlasDetectorID::lumi_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ mdt()
◆ mdt_field_value()
| int AtlasDetectorID::mdt_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ minifcal_begin()
◆ minifcal_end()
◆ minifcal_range()
◆ mm()
◆ mm_field_value()
| int AtlasDetectorID::mm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ mod_begin()
◆ mod_end()
◆ mod_range()
◆ module()
◆ module_context()
| IdContext LArMiniFCAL_ID::module_context |
( |
| ) |
const |
context for modules – method kept for backward compatibility.
NOT optimised
access to IdContext's which define which levels of fields are contained in the id
Definition at line 210 of file LArMiniFCAL_ID.cxx.
◆ module_hash()
◆ module_hash_max()
◆ module_id() [1/5]
◆ module_id() [2/5]
allows to know in which region is a channel/cell – valid for both kinds of channels
Definition at line 368 of file LArMiniFCAL_ID.h.
◆ module_id() [3/5]
◆ module_id() [4/5]
| Identifier LArMiniFCAL_ID::module_id |
( |
int |
pos_neg, |
|
|
int |
module |
|
) |
| const |
|
inline |
◆ module_id() [5/5]
| Identifier LArMiniFCAL_ID::module_id |
( |
int |
pos_neg, |
|
|
int |
module, |
|
|
bool |
checks |
|
) |
| const |
|
inline |
◆ module_id_checks()
| void LArMiniFCAL_ID::module_id_checks |
( |
int |
pos_neg, |
|
|
int |
module |
|
) |
| const |
|
private |
Definition at line 354 of file LArMiniFCAL_ID.cxx.
364 std::string errorMessage =
"LArMiniFCAL_ID::module_id() result is not OK: ID, range = "
◆ module_ids()
provide access to module id vector, accessed via hash
Definition at line 477 of file LArMiniFCAL_ID.h.
◆ msg() [1/2]
| MsgStream & AthMessaging::msg |
( |
| ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 164 of file AthMessaging.h.
◆ msg() [2/2]
| MsgStream & AthMessaging::msg |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
The standard message stream.
Returns a reference to the default message stream May not be invoked before sysInitialize() has been invoked.
Definition at line 179 of file AthMessaging.h.
180 {
return msg() << lvl; }
◆ msgLvl()
| bool AthMessaging::msgLvl |
( |
const MSG::Level |
lvl | ) |
const |
|
inlineinherited |
Test the output level.
- Parameters
-
| lvl | The message level to test against |
- Returns
- boolean Indicating if messages at given level will be printed
- Return values
-
| true | Messages at level "lvl" will be printed |
Definition at line 151 of file AthMessaging.h.
◆ msgSvc()
| IMessageSvc* CaloIDHelper::msgSvc |
( |
| ) |
|
|
inherited |
Return the message service for this helper (may be null).
◆ muon()
◆ muon_exp()
◆ muon_field_value()
| int AtlasDetectorID::muon_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ name()
| const std::string& CaloIDHelper::name |
( |
| ) |
const |
|
inherited |
Return the name for this helper.
◆ phi()
◆ phi0()
Return the minimum phi of region, or NOT_VALID.
- Parameters
-
Definition at line 220 of file CaloIDHelper.cxx.
◆ phi_max()
max value of phi index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 120 of file LArMiniFCAL_ID.cxx.
128 if (
range.match(expId)) {
130 if (not phi_field.
empty()) {
◆ phi_min()
min value of phi index (-999 == failure)
- Warning
- input = REGION ID !!
Definition at line 516 of file LArMiniFCAL_ID.h.
519 unsigned int index = modHash;
◆ phi_min_init()
◆ phiGranularity()
Return the phi granularity of a region, or NOT_VALID.
- Parameters
-
Definition at line 198 of file CaloIDHelper.cxx.
◆ pixel()
◆ pixel_exp()
◆ pixel_field_value()
| int AtlasDetectorID::pixel_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ plr_field_value()
| int AtlasDetectorID::plr_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ pos_neg()
◆ print()
◆ print_to_string()
or provide the printout in string form
Definition at line 427 of file AtlasDetectorID.cxx.
434 unsigned int max_index = (context) ? context->
end_index() : 999;
458 ATH_MSG_WARNING(__func__<<
":"<<__LINE__<<
" No dictionary could be associated to "<<
id);
◆ region_context()
| IdContext CaloIDHelper::region_context |
( |
| ) |
const |
|
inherited |
Return the context for regions.
◆ region_hash()
Convert a connected region Identifier to a hash code.
Some subdetector helpers may override this with a faster version.
◆ region_hash_max()
| size_type CaloIDHelper::region_hash_max |
( |
| ) |
const |
|
inherited |
One more than the largest region hash code.
◆ region_id()
Return the region Identifier for a given hash code (no checking).
◆ regions() [1/2]
Return the HashGroup for regions. non-const.
◆ regions() [2/2]
Return the HashGroup for regions.
◆ register_dict_tag()
| int AtlasDetectorID::register_dict_tag |
( |
const IdDictMgr & |
dict_mgr, |
|
|
const std::string & |
dict_name |
|
) |
| |
|
protectedinherited |
◆ reinitialize()
Test whether an idhelper should be reinitialized based on the change of tags.
Definition at line 221 of file AtlasDetectorID.cxx.
232 ATH_MSG_ERROR(
"reinitialize: dict names and tags vectors not the same length ");
◆ rpc()
◆ rpc_field_value()
| int AtlasDetectorID::rpc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ sct()
◆ sct_exp()
◆ sct_field_value()
| int AtlasDetectorID::sct_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ set_do_checks()
| void AtlasDetectorID::set_do_checks |
( |
bool |
do_checks | ) |
|
|
overridevirtualinherited |
◆ set_do_neighbours()
| void AtlasDetectorID::set_do_neighbours |
( |
bool |
do_neighbours | ) |
|
|
overridevirtualinherited |
◆ set_quiet()
| void AtlasDetectorID::set_quiet |
( |
bool |
quiet | ) |
|
|
inherited |
◆ setDictVersion()
|
|
overrideprotectedvirtualinherited |
◆ setLevel()
| void AthMessaging::setLevel |
( |
MSG::Level |
lvl | ) |
|
|
inherited |
◆ setMessageSvc()
| void AtlasDetectorID::setMessageSvc |
( |
IMessageSvc * |
msgSvc | ) |
|
|
overridevirtualinherited |
◆ show()
Short print out of any identifier (optionally provide separation character - default is '.
'):
Definition at line 359 of file AtlasDetectorID.cxx.
◆ show_to_string()
or provide the printout in string form
Definition at line 365 of file AtlasDetectorID.cxx.
368 std::string
result(
"Unable to decode id");
369 unsigned int max_index = (context) ? context->
end_index() : 999;
371 if (!
id.is_valid()) {
403 if (dict->unpack(
m_group, compact,
prefix, max_index, expId)) {
411 for (
unsigned int i = 0;
i < expId.fields(); ++
i) {
◆ stgc()
◆ stgc_field_value()
| int AtlasDetectorID::stgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ subdet_context()
| IdContext AtlasDetectorID::subdet_context |
( |
void |
| ) |
const |
|
inherited |
◆ tgc()
◆ tgc_field_value()
| int AtlasDetectorID::tgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ tile()
◆ tile_dm()
| Identifier AtlasDetectorID::tile_dm |
( |
void |
| ) |
const |
|
inherited |
◆ tile_exp()
◆ tile_field_value()
| int AtlasDetectorID::tile_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ to_range()
◆ trt()
◆ trt_exp()
◆ trt_field_value()
| int AtlasDetectorID::trt_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ zdc_exp()
◆ zdc_field_value()
| int AtlasDetectorID::zdc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_ALFA_ID
| int AtlasDetectorID::m_ALFA_ID {1} |
|
privateinherited |
◆ m_atlas_dict
◆ m_BCM_ID
| int AtlasDetectorID::m_BCM_ID {3} |
|
privateinherited |
◆ m_calo_dict
◆ m_CALO_ID
| int AtlasDetectorID::m_CALO_ID {10} |
|
privateinherited |
◆ m_calo_side_impl
◆ m_channels
◆ m_CSC_ID
| int AtlasDetectorID::m_CSC_ID {1} |
|
privateinherited |
◆ m_depth_impl
◆ m_DEPTH_INDEX
◆ m_det_impl
◆ m_DET_INDEX
◆ m_dict
◆ m_dict_names
| std::vector<std::string> AtlasDetectorID::m_dict_names |
|
protectedinherited |
◆ m_dict_tags
| std::vector<std::string> AtlasDetectorID::m_dict_tags |
|
protectedinherited |
◆ m_dict_version
| std::string AtlasDetectorID::m_dict_version |
|
privateinherited |
◆ m_do_checks
| bool AtlasDetectorID::m_do_checks {} |
|
protectedinherited |
Flag for subclasses to know whether or not to perform checks.
In general, this is set to false in optimized mode.
Definition at line 363 of file AtlasDetectorID.h.
◆ m_do_neighbours
| bool AtlasDetectorID::m_do_neighbours {true} |
|
protectedinherited |
Flag for subclasses to know whether or not to perform neighbour initialization.
Definition at line 366 of file AtlasDetectorID.h.
◆ m_eta_impl
◆ m_ETA_INDEX
◆ m_fcal_impl
◆ m_fcal_region_index
| size_type LArMiniFCAL_ID::m_fcal_region_index |
|
private |
◆ m_file_names
| std::vector<std::string> AtlasDetectorID::m_file_names |
|
protectedinherited |
List of dictionary file names used by this helper.
Definition at line 379 of file AtlasDetectorID.h.
◆ m_full_channel_range
◆ m_full_depth_range
◆ m_full_module_range
◆ m_fwd_dict
◆ m_FWD_ID
| int AtlasDetectorID::m_FWD_ID {13} |
|
privateinherited |
◆ m_fwd_part_impl
◆ m_group
| std::string AtlasDetectorID::m_group |
|
protectedinherited |
◆ m_helper
◆ m_HGTD_ID
| int AtlasDetectorID::m_HGTD_ID {4} |
|
privateinherited |
◆ m_imsg
| std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr } |
|
mutableprivateinherited |
◆ m_indet_dict
◆ m_INDET_ID
| int AtlasDetectorID::m_INDET_ID {2} |
|
privateinherited |
◆ m_indet_part_impl
◆ m_is_initialized
| bool LArMiniFCAL_ID::m_is_initialized |
|
private |
◆ m_is_initialized_from_dict
| bool AtlasDetectorID::m_is_initialized_from_dict {} |
|
privateinherited |
◆ m_isHighLuminosityLHC
| bool AtlasDetectorID::m_isHighLuminosityLHC {} |
|
privateinherited |
◆ m_lar_dict
◆ m_lar_dm_field
◆ m_LAR_EM_ID
| int AtlasDetectorID::m_LAR_EM_ID {1} |
|
privateinherited |
◆ m_LAR_FCAL_ID
| int AtlasDetectorID::m_LAR_FCAL_ID {3} |
|
privateinherited |
◆ m_lar_fcal_module_impl
◆ m_LAR_FCAL_MODULE_INDEX
| int AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX {999} |
|
privateinherited |
◆ m_LAR_HEC_ID
| int AtlasDetectorID::m_LAR_HEC_ID {2} |
|
privateinherited |
◆ m_LAR_ID
| int AtlasDetectorID::m_LAR_ID {4} |
|
privateinherited |
◆ m_lar_impl
◆ m_LAR_INDEX
◆ m_lar_part_impl
◆ m_LUCID_ID
| int AtlasDetectorID::m_LUCID_ID {5} |
|
privateinherited |
◆ m_LUMI_ID
| int AtlasDetectorID::m_LUMI_ID {3} |
|
privateinherited |
◆ m_LUMI_PLR_ID
| int AtlasDetectorID::m_LUMI_PLR_ID {1} |
|
privateinherited |
◆ m_lvl
| std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL } |
|
mutableprivateinherited |
◆ m_lvl1_field
◆ m_lvl1_onl_field
◆ m_MDT_ID
| int AtlasDetectorID::m_MDT_ID {0} |
|
privateinherited |
◆ m_MiniFCAL_INDEX
◆ m_MM_ID
| int AtlasDetectorID::m_MM_ID {5} |
|
privateinherited |
◆ m_module_impl
◆ m_MODULE_INDEX
◆ m_msg_tls
| boost::thread_specific_ptr<MsgStream> AthMessaging::m_msg_tls |
|
mutableprivateinherited |
MsgStream instance (a std::cout like with print-out levels)
Definition at line 132 of file AthMessaging.h.
◆ m_msgSvc
| IMessageSvc* AtlasDetectorID::m_msgSvc {} |
|
protectedinherited |
◆ m_muon_dict
◆ m_MUON_ID
| int AtlasDetectorID::m_MUON_ID {7} |
|
privateinherited |
◆ m_muon_mdt_impl
◆ m_muon_rpc_impl
◆ m_muon_station_name_impl
◆ m_MUON_SUBDET_INDEX
| size_type AtlasDetectorID::m_MUON_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_muon_tech_bits
| std::vector<unsigned int> AtlasDetectorID::m_muon_tech_bits |
|
privateinherited |
◆ m_name
| std::string CaloIDHelper::m_name |
|
privateinherited |
◆ m_neighbors_2d_vec
| std::vector<std::set<IdentifierHash> > LArMiniFCAL_ID::m_neighbors_2d_vec |
|
private |
◆ m_neighbors_3d_next_vec
| std::vector<std::set<IdentifierHash> > LArMiniFCAL_ID::m_neighbors_3d_next_vec |
|
private |
◆ m_neighbors_3d_prev_vec
| std::vector<std::set<IdentifierHash> > LArMiniFCAL_ID::m_neighbors_3d_prev_vec |
|
private |
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_phi_impl
◆ m_PHI_INDEX
◆ m_PIXEL_ID
| int AtlasDetectorID::m_PIXEL_ID {1} |
|
privateinherited |
◆ m_pn_impl
◆ m_pn_mod_impl
◆ m_POSNEG_INDEX
◆ m_quiet
| bool AtlasDetectorID::m_quiet {} |
|
protectedinherited |
◆ m_regions
◆ m_RPC_ID
| int AtlasDetectorID::m_RPC_ID {2} |
|
privateinherited |
◆ m_SCT_ID
| int AtlasDetectorID::m_SCT_ID {2} |
|
privateinherited |
◆ m_STGC_ID
| int AtlasDetectorID::m_STGC_ID {4} |
|
privateinherited |
◆ m_SUBDET_INDEX
| size_type AtlasDetectorID::m_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_TGC_ID
| int AtlasDetectorID::m_TGC_ID {3} |
|
privateinherited |
◆ m_tile_dict
◆ m_tile_dm_field
◆ m_TILE_ID
| int AtlasDetectorID::m_TILE_ID {5} |
|
privateinherited |
◆ m_TRT_ID
| int AtlasDetectorID::m_TRT_ID {3} |
|
privateinherited |
◆ m_two_sym_sides
| bool LArMiniFCAL_ID::m_two_sym_sides |
|
private |
◆ m_vecOfCellInfo
| std::vector<short int> LArMiniFCAL_ID::m_vecOfCellInfo |
|
private |
◆ m_vecOfDictRegions
◆ m_vecOfPhiMin
| std::vector<short int> LArMiniFCAL_ID::m_vecOfPhiMin |
|
private |
◆ m_ZDC_ID
| int AtlasDetectorID::m_ZDC_ID {7} |
|
privateinherited |
The documentation for this class was generated from the following files:
IdDictRegion * find_region(const std::string ®ion_name) const
bool is_pixel(Identifier id) const
std::atomic< MSG::Level > m_lvl
Current logging level.
IdDictDictionary * m_muon_dict
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
bool is_forward(Identifier id) const
MultiRange build_multirange() const
Get MultiRange for full dictionary.
MultiRange m_full_module_range
std::vector< unsigned int > m_muon_tech_bits
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
MultiRange m_full_channel_range
IdDictFieldImplementation m_indet_part_impl
int init_neighbors(const IdDictMgr &dict_mgr)
const std::string & version() const
Dictionary version.
bool is_lar_fcal(Identifier id) const
id_iterator end() const
Return an end iterator over the group's Identifiers.
id_range range() const
Return an iterator range over the group's Identifiers.
std::string show_to_string(void) const
bool is_lar(Identifier id) const
size_type channel_hash_max() const
One more than the largest channel (cell) hash code.
int muon_field_value() const
int fill_vec_of_dict_regions(const std::string &group_name="")
Initialize the list of detector regions.
element_type get_minimum() const
Query the values.
int module(const Identifier id) const
module [0]
size_type end_index() const
Return the ending index of the context for this group.
size_type end_index() const
int calo_field_value() const
IdDictFieldImplementation m_module_impl
IdentifierHash module_hash(Identifier module_id) const
create hash id from module id
IdContext region_context() const
Return the context for regions.
Identifier id(IdentifierHash hashId) const
Return the identifier for a given hash code (no checking).
id_iterator begin() const
Return a begin iterator over the group's Identifiers.
int depth(const Identifier id) const
depth [0,3]
void pack(int value, Identifier &id) const
IdDictDictionary * m_tile_dict
IMessageSvc * m_msgSvc
pointer to the message service
std::string m_dict_version
const std::string & find_metadata(const std::string &name) const
Access to meta data, name/value pairs.
Identifier region_id(IdentifierHash hashId) const
Return the region Identifier for a given hash code (no checking).
element_type get_maximum() const
std::vector< size_t > vec
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
static constexpr value_type MAX_BIT
const std::string & name() const
Dictionary name.
int lar_field_value() const
IdDictFieldImplementation m_lar_impl
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
int unpack(Identifier id) const
Identifier manipulation methods.
int get_hash(Identifier id, IdentifierHash &hash_id) const
Look up the hash code corresponding to an Identifier.
const std::string & file_name() const
Access to file name.
CaloIDHelper(const std::string &name, const std::string &group)
Constructor.
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
virtual int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)
IdDictFieldImplementation m_depth_impl
IMessageSvc * getMessageSvc(bool quiet=false)
IdDictField * find_field(const std::string &name) const
bool is_lvl1_trig_towers(Identifier id) const
const HashGroup & regions() const
Return the HashGroup for regions.
virtual std::string dictionaryVersion(void) const override
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
void reset(Identifier &id) const
std::vector< const IdDictRegion * > m_vecOfDictRegions
List of IdDictRegion objects.
const IdDictFieldImplementation & implementation(size_t i) const
bool match(element_type value) const
The basic match operation Given a value, test to see if it satisfies the constraints for this field.
Range::field m_tile_dm_field
size_type begin_index() const
int phi_min_init(const Identifier regId) const
static constexpr value_type ALL_BITS
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
size_type region_hash_max() const
One more than the largest region hash code.
int phi(const Identifier id) const
phi [0,15]
msgSvc
Provide convenience handles for various services.
bool empty() const
If true, this field does not have any constraints, and may hold any value representable by element_ty...
std::string m_group
Group name.
IdDictDictionary * m_calo_dict
IdDictFieldImplementation m_pn_impl
bool m_is_initialized_from_dict
const std::vector< Identifier > & ids() const
Return a vector of all Identifiers for this group.
IdDictFieldImplementation m_lar_part_impl
ExpandedIdentifier indet_exp(void) const
Detector systems:
HashGroup m_regions
Group of region Identifiers.
const IdDictDictionary * dict() const
Return the dictionary for this subdetector.
IdDictFieldImplementation m_muon_mdt_impl
IdDictFieldImplementation m_lar_fcal_module_impl
bool is_tile_dm(Identifier id) const
IdDictDictionary * m_fwd_dict
bool is_tile(Identifier id) const
Range::field m_lvl1_onl_field
std::vector< std::set< IdentifierHash > > m_neighbors_3d_next_vec
bool m_quiet
If true, suppress DEBUG/INFO messages.
def dot(G, fn, nodesToHighlight=[])
MsgStream & msg() const
The standard message stream.
Identifier module_id(const ExpandedIdentifier &exp_id) const
module identifier for a channel from ExpandedIdentifier
IdContext module_context() const
context for modules – method kept for backward compatibility.
int init_neighbors_from_file(const std::string &filename, std::vector< std::set< IdentifierHash > > &vec)
int initialize_base_from_dictionary(const IdDictMgr &dict_mgr, const std::string &dict_name)
Do basic initialization of the helper.
IdDictFieldImplementation m_muon_rpc_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.
bool is_calo(Identifier id) const
int tile_field_value() const
void module_id_checks(int pos_neg, int module) const
int get_label_value(const std::string &field, const std::string &label, int &value) const
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
float eta0(const IdentifierHash regHash) const
Return the minimum eta of region, or NOT_VALID.
size_type m_MiniFCAL_INDEX
IdDictDictionary * m_indet_dict
IdDictFieldImplementation m_calo_side_impl
bool is_indet(Identifier id) const
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.
Range::field m_lar_dm_field
virtual void setDictVersion(const IdDictMgr &dict_mgr, const std::string &name) override
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
ExpandedIdentifier fwd_exp(void) const
def init(v_theApp, v_rootStream=None)
IdDictFieldImplementation m_muon_station_name_impl
const IdDictDictionary * m_dict
The dictionary for this helper.
const HashGroup & channels() const
Return the HashGroup for channels (cells).
int init_neighbors_3d_next(const std::string &filename)
int match(const ExpandedIdentifier &id) const
Match an identifier.
bool is_lumi(Identifier id) const
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
int pos_neg(const Identifier id) const
pos_neg : +/- 2 (A/C side)
IdDictFieldImplementation m_eta_impl
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
bool empty() const noexcept
IdentifierHash channel_hash(Identifier channelId) const
Convert a connected channel (cell) Identifier to a hash code.
bool is_muon(Identifier id) const
IdDictFieldImplementation m_det_impl
float phi0(const IdentifierHash regHash) const
Return the minimum phi of region, or NOT_VALID.
Data object for each calorimeter readout cell.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
const std::string & dict_tag() const
Access to the dictionary tag.
std::vector< std::set< IdentifierHash > > m_neighbors_3d_prev_vec
ExpandedIdentifier lar_exp(void) const
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
#define ATH_MSG_WARNING(x)
HashGroup m_channels
Group of channel (cell) Identifiers.
static std::string find_file(const std::string &logical_file_name, const std::string &search_path)
size_type m_fcal_region_index
std::string m_nm
Message source name.
IdDictFieldImplementation m_phi_impl
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
void clear()
Erase all fields.
std::vector< short int > m_vecOfPhiMin
IdDictDictionary * m_lar_dict
Identifier channel_id(const ExpandedIdentifier &exp_id) const
cell identifier for a channel from ExpandedIdentifier
MultiRange m_full_depth_range
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
std::vector< std::set< IdentifierHash > > m_neighbors_2d_vec
ExpandedIdentifier lar_fcal_exp(void) const
int init_neighbors_3d_prev(const std::string &filename)
virtual int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const =0
Create an expanded Identifier from an Identifier.
void initMessaging() const
Initialize our message level and MessageSvc.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
IdDictFieldImplementation m_fcal_impl
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
int init_neighbors_2d(const std::string &filename)
void channel_id_checks(int pos_neg, int module, int depth, int eta, int phi) const
virtual bool do_checks(void) const override
Checks are performed by default in debug compilation and NOT in optimized compilation.
int eta(const Identifier id) const
eta [0,63] module 1 ; [0,31] module 2 ; [0,15] module 3
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
std::vector< std::string > m_dict_tags
List of dictionary versions used by this helper.
IdentifierHash region_hash(Identifier regionId) const
Convert a connected region Identifier to a hash code.
int lar_fcal_field_value() const
Exception class for LAr Identifiers.
Range::field m_lvl1_field
size_type hash_max() const
Return one more than the largest hash code.