 |
ATLAS Offline Software
|
Helper class for TileCal offline identifiers.
More...
#include <TileID.h>
|
| enum | SECTION {
ONLINE = 0,
BARREL = 1,
EXTBAR = 2,
GAPDET = 3,
AUXDET = 4,
SBARREL = 5,
SEXTBAR = 6,
SECTION_MASK = 3,
SUPERCELL_MASK = 4
} |
| |
| enum | SAMPLE {
SAMP_A = 0,
SAMP_B = 1,
SAMP_BC = 1,
SAMP_C = 1,
SAMP_D = 2,
SAMP_E = 3,
SAMP_X = 4
} |
| |
| enum | SIDE { NEGATIVE = -1,
POSITIVE = 1,
TWOSIDES = 0
} |
| |
| enum | GAIN { LOWGAIN = 0,
HIGHGAIN = 1
} |
| |
| enum | SIZE { NSIDES = 2,
NSECTIONS = 3,
NREGIONS = NSIDES * NSECTIONS
} |
| |
| enum | { NOT_VALID_HASH = 64000
} |
| |
| 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
} |
| |
| typedef Identifier::size_type | size_type |
| |
| 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...
|
| |
|
| | TileID () |
| |
| virtual int | initialize_from_dictionary (const IdDictMgr &dict_mgr) |
| | initialization from the identifier dictionary More...
|
| |
| Identifier | tile_system () const |
| | build identifier for whole TileCal More...
|
| |
| Identifier | tile_barrel () const |
| | build identifier for Tile Barrel More...
|
| |
| Identifier | tile_extbarrel () const |
| | build identifier for Tile Extended Barrel More...
|
| |
| Identifier | tile_gap () const |
| | build identifier for Tile Gap detector (ITC + gap/crack scintillators) More...
|
| |
| Identifier | tile_det (int section) const |
| | build identifier for any Tilecal section More...
|
| |
| Identifier | tile_det (int section, bool checks) const |
| |
| Identifier | region_id (int index) const |
| | build single region, module, tower, cell, pmt, adc identifiers More...
|
| |
| Identifier | region_id (int section, int side) const |
| |
| Identifier | region_id (int section, int side, bool checks) const |
| |
| Identifier | region_id (const Identifier &any_id) const |
| |
| Identifier | region_id (const ExpandedIdentifier &exp_id) const |
| | Construct identifiers from ExpandedIdentifier's. More...
|
| |
| Identifier | region_id (IdentifierHash hashId) const |
| | Return the region Identifier for a given hash code (no checking). More...
|
| |
| Identifier | module_id (int section, int side, int module) const |
| |
| Identifier | module_id (int section, int side, int module, bool checks) const |
| |
| Identifier | module_id (const Identifier &any_id) const |
| |
| bool | module_id (const Identifier ®ion_id, int module, Identifier &module_id) const |
| | Construct identifiers with checking. More...
|
| |
| Identifier | module_id (const ExpandedIdentifier &exp_id) const |
| |
| Identifier | tower_id (int section, int side, int module, int tower) const |
| |
| Identifier | tower_id (int section, int side, int module, int tower, bool checks) const |
| |
| Identifier | tower_id (const Identifier &any_id) const |
| |
| bool | tower_id (const Identifier ®ion_id, int module, int tower, Identifier &tower_id) const |
| |
| Identifier | tower_id (const ExpandedIdentifier &exp_id) const |
| |
| Identifier | cell_id (const Identifier &any_id) const |
| |
| Identifier | cell_id (int section, int side, int module, int tower, int sample) const |
| |
| Identifier | cell_id (int section, int side, int module, int tower, int sample, bool checks) const |
| |
| Identifier | cell_id (const IdentifierHash &hash_id) const |
| | fast conversion from hash to ID for cells More...
|
| |
| bool | cell_id (const Identifier ®ion_id, int module, int tower, int sample, Identifier &cell_id) const |
| |
| Identifier | cell_id (const ExpandedIdentifier &exp_id) const |
| |
| Identifier | pmt_id (const Identifier &any_id) const |
| |
| Identifier | pmt_id (const Identifier &cell_id, int pmt) const |
| |
| Identifier | pmt_id (const Identifier &cell_id, int pmt, bool checks) const |
| |
| Identifier | pmt_id (int section, int side, int module, int tower, int sample, int pmt) const |
| |
| Identifier | pmt_id (int section, int side, int module, int tower, int sample, int pmt, bool checks) const |
| |
| bool | pmt_id (const Identifier &cell_id, int pmt, Identifier &pmt_id) const |
| |
| Identifier | pmt_id (const ExpandedIdentifier &exp_id) const |
| |
| Identifier | adc_id (const Identifier &cell_id, int pmt, int adc) const |
| |
| Identifier | adc_id (const Identifier &cell_id, int pmt, int adc, bool checks) const |
| |
| Identifier | adc_id (const Identifier &pmt_id, int adc) const |
| |
| Identifier | adc_id (const Identifier &pmt_id, int adc, bool checks) const |
| |
| Identifier | adc_id (int section, int side, int module, int tower, int sample, int pmt, int adc) const |
| |
| Identifier | adc_id (int section, int side, int module, int tower, int sample, int pmt, int adc, bool checks) const |
| |
| bool | adc_id (const Identifier &pmt_id, int adc, Identifier &adc_id) const |
| |
| bool | adc_id (const Identifier &cell_id, int pmt, int adc, Identifier &adc_id) const |
| |
| Identifier | adc_id (const ExpandedIdentifier &exp_id) const |
| |
| IdentifierHash | cell_hash (const Identifier &cell_id) const |
| | fast conversion from ID to hash for cells More...
|
| |
| bool | is_tile_barrel (const Identifier &id) const |
| | Test of an Identifier to see if it belongs to a particular part of the calorimeter. More...
|
| |
| bool | is_tile_extbarrel (const Identifier &id) const |
| |
| bool | is_tile_gap (const Identifier &id) const |
| |
| bool | is_tile_gapscin (const Identifier &id) const |
| |
| bool | is_tile_aux (const Identifier &id) const |
| |
| bool | is_negative (const Identifier &id) const |
| |
| bool | is_positive (const Identifier &id) const |
| |
| bool | is_twosides (const Identifier &id) const |
| |
| bool | is_low_gain (const Identifier &id) const |
| |
| bool | is_high_gain (const Identifier &id) const |
| |
| bool | is_supercell (const Identifier &id) const |
| |
| int | region (int section, int side) const |
| |
| int | region (const Identifier &id) const |
| |
| int | system (const Identifier &id) const |
| |
| int | section (const Identifier &id) const |
| |
| int | side (const Identifier &id) const |
| |
| int | module (const Identifier &id) const |
| |
| int | tower (const Identifier &id) const |
| |
| int | sample (const Identifier &id) const |
| |
| int | pmt (const Identifier &id) const |
| |
| int | adc (const Identifier &id) const |
| |
| int | sampling (const Identifier &id) const |
| |
| std::string | to_string (const Identifier &id, int level=0) const |
| |
| std::string | to_string (const IdentifierHash &hash_id, int level=0) const |
| |
| IdContext | region_context () const |
| | access to IdContext's which define which levels of fields are contained in the id More...
|
| |
| IdContext | module_context () const |
| | id for modules More...
|
| |
| IdContext | tower_context () const |
| | id for towers More...
|
| |
| IdContext | cell_context () const |
| | id for cells More...
|
| |
| IdContext | pmt_context () const |
| | id for PMTs More...
|
| |
| IdContext | adc_context () const |
| | id for ADCs More...
|
| |
| virtual int | get_id (const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const |
| | create compact id from hash id (return == 0 for OK) More...
|
| |
| virtual int | get_hash (const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const |
| | create hash id from compact id (return == 0 for OK) More...
|
| |
| int | initialize_base_from_dictionary (const IdDictMgr &dict_mgr, const std::string &group_name) |
| | initialization from the identifier dictionary More...
|
| |
| size_type | region_hash_max () const |
| | hash tables max size More...
|
| |
| size_type | module_hash_max () const |
| |
| size_type | tower_hash_max () const |
| |
| size_type | cell_hash_max () const |
| |
| size_type | pmt_hash_max () const |
| |
| size_type | adc_hash_max () const |
| |
| id_iterator | reg_begin () const |
| | iterator over set of region Identifiers More...
|
| |
| id_iterator | reg_end () const |
| |
| id_range | reg_range () const |
| |
| id_iterator | region_begin () const |
| | iterator over set of region Identifiers (synonyms for naming consistency) More...
|
| |
| id_iterator | region_end () const |
| |
| id_range | region_range () const |
| |
| id_iterator | module_begin () const |
| | iterator over set of module Identifiers More...
|
| |
| id_iterator | module_end () const |
| |
| id_range | module_range () const |
| |
| id_iterator | tower_begin () const |
| | iterator over set of tower Identifiers More...
|
| |
| id_iterator | tower_end () const |
| |
| id_range | tower_range () const |
| |
| id_iterator | cell_begin () const |
| | iterator over set of cell Identifiers More...
|
| |
| id_iterator | cell_end () const |
| |
| id_range | cell_range () const |
| |
| id_iterator | pmt_begin () const |
| | iterator over set of pmt Identifiers More...
|
| |
| id_iterator | pmt_end () const |
| |
| id_range | pmt_range () const |
| |
| id_iterator | adc_begin () const |
| | iterator over set of adc Identifiers More...
|
| |
| id_iterator | adc_end () const |
| |
| id_range | adc_range () const |
| |
| const std::vector< Identifier > & | region_ids () const |
| | provide access to id vectors, accessed via hash More...
|
| |
| const std::vector< Identifier > & | module_ids () const |
| |
| const std::vector< Identifier > & | tower_ids () const |
| |
| const std::vector< Identifier > & | cell_ids () const |
| |
| const std::vector< Identifier > & | pmt_ids () const |
| |
| const std::vector< Identifier > & | adc_ids () const |
| |
| int | eta_min (const Identifier &id) const |
| | max values (-999 == failure) More...
|
| |
| int | eta_max (const Identifier &id) const |
| |
| int | region_eta_min (const Identifier &id) const |
| |
| int | region_eta_max (const Identifier &id) const |
| |
| int | phi_max (const Identifier &id) const |
| |
| 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 = prevInPhi, nextInPhi, prevInEta, nextInEta, ..., ..., all2D, prevInSamp, nextInSamp, ..., all3D 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...
|
| |
| 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...
|
| |
| size_type | channel_hash_max () const |
| | One more than the largest channel (cell) hash code. More...
|
| |
| IdContext | channel_context () const |
| | Return the context for channels (cells). 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...
|
| |
Helper class for TileCal offline identifiers.
- Author
- Alexander Solodkov
This class provides an interface to generate an identifier or a range for the Tile Calorimeter detector subsystem.
Definition and the range of values for the elements of the identifier:
element range meaning
------- ----- -------
section 1 to 15 section number ( 1 = Barrel
2 = Extended Barrel
3 = Gap Detector
i.e. gap scin E1-E4 and ITC cells D4, C10
4 = Ancillary detectors )
section codes 5 and 6 are used internally
for supercell barrel and extbarrel, respectively.
side -1 to 1 -1 = negative eta, 1 = positive eta, 0 = undefined (both sides)
module 0 to 63 module number by phi
tower(eta) 0 to 15 0-15 = tower number by pseudorapidity with 0.1 increment in eta
Attention! in PhysTDR data last tower is 16
sample 0 to 15 0 = A, 1 = B = BC = C, 2 = D, 3 = special gap scin cells E1-E4
4-15 = individual tiles, used in Cesium calibration data
pmt 0 to 1 PMT number in the cell (0 = side close to module with smaller number)
adc 0 to 1 ADC number for the PMT (0 = low gain, 1 = high gain)
Definition at line 68 of file TileID.h.
◆ id_iterator
◆ id_range
◆ size_type
◆ anonymous enum
◆ anonymous enum
◆ GAIN
◆ 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
◆ SAMPLE
| Enumerator |
|---|
| SAMP_A | |
| SAMP_B | |
| SAMP_BC | |
| SAMP_C | |
| SAMP_D | |
| SAMP_E | |
| SAMP_X | |
Definition at line 52 of file Tile_Base_ID.h.
◆ SECTION
| Enumerator |
|---|
| ONLINE | |
| BARREL | |
| EXTBAR | |
| GAPDET | |
| AUXDET | |
| SBARREL | |
| SEXTBAR | |
| SECTION_MASK | |
| SUPERCELL_MASK | |
Definition at line 47 of file Tile_Base_ID.h.
◆ SIDE
| Enumerator |
|---|
| NEGATIVE | |
| POSITIVE | |
| TWOSIDES | |
Definition at line 55 of file Tile_Base_ID.h.
◆ SIZE
| Enumerator |
|---|
| NSIDES | |
| NSECTIONS | |
| NREGIONS | |
Definition at line 57 of file Tile_Base_ID.h.
◆ TileID()
◆ adc()
◆ adc_begin()
◆ adc_context()
| IdContext Tile_Base_ID::adc_context |
( |
| ) |
const |
|
inherited |
◆ adc_end()
◆ adc_hash_max()
◆ adc_id() [1/9]
◆ adc_id() [2/9]
◆ adc_id() [3/9]
Definition at line 758 of file Tile_Base_ID.cxx.
772 std::string errorMessage =
"Tile_Base_ID::adc_id(cell_id,pmt,adc) could not pack ID: "
786 std::string errorMessage =
"Tile_Base_ID::adc_id(cell_id,pmt,adc) result is not OK: ID = "
796 std::string errorMessage =
"Tile_Base_ID::adc_id() result is not OK: ID, range = "
◆ adc_id() [4/9]
◆ adc_id() [5/9]
◆ adc_id() [6/9]
Definition at line 813 of file Tile_Base_ID.cxx.
826 std::string errorMessage =
"Tile_Base_ID::adc_id(pmt_id,adc) could not pack ID: "
840 std::string errorMessage =
"Tile_Base_ID::adc_id(pmt_id,adc) result is not OK: ID = "
850 std::string errorMessage =
"Tile_Base_ID::adc_id() result is not OK: ID, range = "
◆ adc_id() [7/9]
◆ adc_id() [8/9]
| Identifier Tile_Base_ID::adc_id |
( |
int |
section, |
|
|
int |
side, |
|
|
int |
module, |
|
|
int |
tower, |
|
|
int |
sample, |
|
|
int |
pmt, |
|
|
int |
adc |
|
) |
| const |
|
inherited |
◆ adc_id() [9/9]
| Identifier Tile_Base_ID::adc_id |
( |
int |
section, |
|
|
int |
side, |
|
|
int |
module, |
|
|
int |
tower, |
|
|
int |
sample, |
|
|
int |
pmt, |
|
|
int |
adc, |
|
|
bool |
checks |
|
) |
| const |
|
inherited |
Definition at line 867 of file Tile_Base_ID.cxx.
881 std::string errorMessage =
"Tile_Base_ID::adc_id() result is not OK: ID, range = "
◆ adc_ids()
◆ adc_range()
◆ 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 |
◆ cell_begin()
◆ cell_context()
| IdContext Tile_Base_ID::cell_context |
( |
| ) |
const |
|
inherited |
◆ cell_end()
◆ cell_hash()
fast conversion from ID to hash for cells
Definition at line 1034 of file Tile_Base_ID.cxx.
1036 IdentifierHash ret = 0;
1040 std::string errorMessage =
"Tile_Base_ID::cell_hash(cell_id) - cell_id out of range ";
◆ cell_hash_max()
◆ cell_id() [1/6]
◆ cell_id() [2/6]
◆ cell_id() [3/6]
◆ cell_id() [4/6]
fast conversion from hash to ID for cells
Definition at line 1024 of file Tile_Base_ID.cxx.
1026 if (hash_id <
channels().hash_max()) {
1029 std::string errorMessage =
"Tile_Base_ID::cell_id(hash_id) - hash_id out of range ";
◆ cell_id() [5/6]
| Identifier Tile_Base_ID::cell_id |
( |
int |
section, |
|
|
int |
side, |
|
|
int |
module, |
|
|
int |
tower, |
|
|
int |
sample |
|
) |
| const |
|
inherited |
◆ cell_id() [6/6]
| Identifier Tile_Base_ID::cell_id |
( |
int |
section, |
|
|
int |
side, |
|
|
int |
module, |
|
|
int |
tower, |
|
|
int |
sample, |
|
|
bool |
checks |
|
) |
| const |
|
inherited |
Definition at line 597 of file Tile_Base_ID.cxx.
611 std::string errorMessage =
"Tile_Base_ID::cell_id() result is not OK: ID, range = "
◆ cell_ids()
◆ cell_range()
◆ channel_context()
| IdContext CaloIDHelper::channel_context |
( |
| ) |
const |
|
inherited |
Return the context for channels (cells).
◆ channel_hash()
Convert a connected channel (cell) Identifier to a hash code.
Some subdetector helpers may override this with a faster version.
◆ channel_hash_max()
| size_type CaloIDHelper::channel_hash_max |
( |
| ) |
const |
|
inherited |
One more than the largest channel (cell) hash code.
◆ channel_id()
Return the channel (cell) Identifier for a given hash code (no checking).
◆ 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 |
◆ decode_section()
| int Tile_Base_ID::decode_section |
( |
int |
section | ) |
const |
|
inlineprivateinherited |
◆ 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.
◆ encode_section()
| int Tile_Base_ID::encode_section |
( |
int |
section | ) |
const |
|
inlineprivateinherited |
◆ eta0()
Return the minimum eta of region, or NOT_VALID.
- Parameters
-
Definition at line 209 of file CaloIDHelper.cxx.
◆ eta_max() [1/2]
◆ eta_max() [2/2]
◆ eta_min() [1/2]
◆ eta_min() [2/2]
◆ 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_field()
◆ get_hash()
◆ get_id()
create compact id from hash id (return == 0 for OK)
Reimplemented from CaloIDHelper.
Definition at line 1081 of file Tile_Base_ID.cxx.
1100 log << MSG::ERROR <<
"get_id: adc hash_id is out of range " << hash_id
1109 log << MSG::ERROR <<
"get_id: pmt hash_id is out of range " << hash_id
1113 if (hash_id <
channels().hash_max()) {
1118 log << MSG::ERROR <<
"get_id: cell hash_id is out of range " << hash_id
1127 log << MSG::ERROR <<
"get_id: tower hash_id is out of range " << hash_id
1136 log << MSG::ERROR <<
"get_id: module hash_id is out of range " << hash_id
1140 if (hash_id <
regions().hash_max()) {
1145 log << MSG::ERROR <<
"get_id: region hash_id is out of range " << hash_id
◆ get_neighbours()
access to hashes for neighbours return == 0 for neighbours found option = prevInPhi, nextInPhi, prevInEta, nextInEta, ..., ..., all2D, prevInSamp, nextInSamp, ..., all3D
in 'nextInEta' next always means higher eta (i.e. smaller abs(eta) for negative eta)
in 'prevInEta' prev always means smaller eta
in 'nextInPhi' next always means higher phi (i.e. smaller abs(phi) for negative phi)
in 'prevInPhi' prev always means smaller phi
in 'nextInSamp', next means 'away from the centre of Atlas'
in 'prevInSamp', prev means 'towards the centre of Atlas'
all2D means PrevInEta and nextInEta for all cells obtained in prevInPhi and nextInPhi
all3D means prevInSamp and nextInSamp for all cells obtained in all2D
NOTA neighbour is also returned across Barrel-ITC-Gap.Sin-Ext.Barrel boundaries
Definition at line 1790 of file Tile_Base_ID.cxx.
1798 log << MSG::WARNING <<
"get_neighbours: neighbours not initialized !!! returning empty list" <<
endmsg;
1800 neighbourList.resize(0);
1804 neighbourList.clear();
1811 bool prevPhi = corners2DOnly || (option &
prevInPhi);
1812 bool nextPhi = corners2DOnly || (option &
nextInPhi);
1813 bool prevEta = corners2DOnly || (option &
prevInEta);
1814 bool nextEta = corners2DOnly || (option &
nextInEta);
1816 std::vector<IdentifierHash> inpList;
1820 inpList.push_back(id_orig);
1829 }
else if (corners2DOnly) {
1831 inpList = std::move(neighbourList);
1832 neighbourList.clear();
1836 inpList.insert (inpList.end(), neighbourList.begin(), neighbourList.end());
1841 inpItr = inpList.begin();
1842 inpLast = inpList.end();
1843 for ( ; inpItr != inpLast; ++inpItr) {
1844 IdentifierHash
id = (*inpItr);
1852 inpItr = inpList.begin();
1853 inpLast = inpList.end();
1854 for ( ; inpItr != inpLast; ++inpItr) {
1855 IdentifierHash
id = (*inpItr);
1867 if (!neighbourList.empty())
result = 0;
◆ 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 Tile_Base_ID::init_hashes |
( |
| ) |
|
|
privateinherited |
◆ initialize_base_from_dictionary()
| int Tile_Base_ID::initialize_base_from_dictionary |
( |
const IdDictMgr & |
dict_mgr, |
|
|
const std::string & |
group_name |
|
) |
| |
|
inherited |
initialization from the identifier dictionary
Definition at line 1185 of file Tile_Base_ID.cxx.
1214 if (atlasDict->
get_label_value(
"subdet",
"TileCalorimeter", tileField)) {
1215 log << MSG::ERROR <<
"Could not get value for label 'TileCalorimeter' of field 'subdet' in dictionary "
1216 << atlasDict->
name()
1223 tile_id.
add(tileField);
1235 int tilehwField = -1;
1236 if (
dict()->get_label_value(
"section",
"Online", tilehwField)) {
1237 log << MSG::ERROR <<
"Could not get value for label 'Online' of field 'section' in dictionary "
1243 reg_id.
add(tilehwField);
1253 int tiletbField = -1;
1254 if (
dict()->get_label_value(
"section",
"Testbeam", tiletbField)) {
1255 log << MSG::ERROR <<
"Could not get value for label 'Testbeam' of field 'section' in dictionary "
1260 reg_id = std::move(tile_id);
1261 reg_id.
add(tiletbField);
1288 std::string neighbourFile;
1290 neighbourFile =
"TileSuperCellNeighbour.txt";
1295 if (neighbourFile.empty())
throw std::runtime_error(
"TileID: Cannot find the Tile Neighbour file name");
◆ initialize_from_dictionary()
initialization from the identifier dictionary
Reimplemented from AtlasDetectorID.
Definition at line 29 of file TileID.cxx.
33 std::string strg =
"initialize_from_dictionary";
38 log <<
MSG::DEBUG <<
"Request to reinitialize not satisfied - tags have not changed" <<
endmsg;
◆ initLevelsFromDict()
| int Tile_Base_ID::initLevelsFromDict |
( |
const std::string & |
group_name | ) |
|
|
privateinherited |
Definition at line 1617 of file Tile_Base_ID.cxx.
1622 log << MSG::ERROR <<
"initLevelsFromDict - dictionary NOT initialized "
1640 log << MSG::ERROR <<
"initLevelsFromDict - cannot find " <<
group_name
1641 <<
" group' field " <<
endmsg;
1653 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'subdet' field "
1663 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'section' field "
1673 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'side' field "
1683 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'module' field "
1693 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'tower' field "
1703 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'sampling' field "
1713 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'pmt' field "
1723 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'adc' field "
1740 log <<
MSG::DEBUG <<
"initLevelsFromDict decode index and bit fields for each level: " <<
endmsg ;
◆ 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_high_gain()
◆ is_indet() [1/2]
◆ is_indet() [2/2]
| bool AtlasDetectorID::is_indet |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ 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_low_gain()
◆ 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_negative()
◆ 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_positive()
◆ 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_aux()
◆ is_tile_barrel()
◆ is_tile_dm()
| bool AtlasDetectorID::is_tile_dm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tile_extbarrel()
◆ is_tile_gap()
◆ is_tile_gapscin()
◆ is_trt() [1/2]
◆ is_trt() [2/2]
| bool AtlasDetectorID::is_trt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_twosides()
◆ 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 |
◆ mm()
◆ mm_field_value()
| int AtlasDetectorID::mm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ module()
◆ module_begin()
◆ module_context()
| IdContext Tile_Base_ID::module_context |
( |
| ) |
const |
|
inherited |
◆ module_end()
◆ module_hash_max()
◆ module_id() [1/5]
◆ module_id() [2/5]
◆ module_id() [3/5]
Construct identifiers with checking.
Definition at line 915 of file Tile_Base_ID.cxx.
927 if (!
dict()->pack32(
id,0,
id.
fields() - 1,compactId)) {
◆ module_id() [4/5]
| Identifier Tile_Base_ID::module_id |
( |
int |
section, |
|
|
int |
side, |
|
|
int |
module |
|
) |
| const |
|
inherited |
◆ module_id() [5/5]
| Identifier Tile_Base_ID::module_id |
( |
int |
section, |
|
|
int |
side, |
|
|
int |
module, |
|
|
bool |
checks |
|
) |
| const |
|
inherited |
Definition at line 473 of file Tile_Base_ID.cxx.
486 std::string errorMessage =
"Tile_Base_ID::module_id() result is not OK: ID, range = "
◆ module_ids()
◆ module_range()
◆ 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.
◆ phi0()
Return the minimum phi of region, or NOT_VALID.
- Parameters
-
Definition at line 220 of file CaloIDHelper.cxx.
◆ phi_max()
◆ 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 |
◆ pmt()
◆ pmt_begin()
◆ pmt_context()
| IdContext Tile_Base_ID::pmt_context |
( |
| ) |
const |
|
inherited |
◆ pmt_end()
◆ pmt_hash_max()
◆ pmt_id() [1/7]
◆ pmt_id() [2/7]
◆ pmt_id() [3/7]
◆ pmt_id() [4/7]
Definition at line 656 of file Tile_Base_ID.cxx.
669 std::string errorMessage =
"Tile_Base_ID::pmt_id(cell_id,pmt) could not pack ID: "
683 std::string errorMessage =
"Tile_Base_ID::pmt_id(cell_id,pmt) result is not OK: ID = "
693 std::string errorMessage =
"Tile_Base_ID::pmt_id() result is not OK: ID, range = "
◆ pmt_id() [5/7]
◆ pmt_id() [6/7]
| Identifier Tile_Base_ID::pmt_id |
( |
int |
section, |
|
|
int |
side, |
|
|
int |
module, |
|
|
int |
tower, |
|
|
int |
sample, |
|
|
int |
pmt |
|
) |
| const |
|
inherited |
◆ pmt_id() [7/7]
| Identifier Tile_Base_ID::pmt_id |
( |
int |
section, |
|
|
int |
side, |
|
|
int |
module, |
|
|
int |
tower, |
|
|
int |
sample, |
|
|
int |
pmt, |
|
|
bool |
checks |
|
) |
| const |
|
inherited |
Definition at line 710 of file Tile_Base_ID.cxx.
724 std::string errorMessage =
"Tile_Base_ID::pmt_id() result is not OK: ID, range = "
◆ pmt_ids()
◆ pmt_range()
◆ 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);
◆ reg_begin()
◆ reg_end()
◆ reg_range()
◆ region() [1/2]
◆ region() [2/2]
| int Tile_Base_ID::region |
( |
int |
section, |
|
|
int |
side |
|
) |
| const |
|
inherited |
◆ region_begin()
◆ region_context()
| IdContext Tile_Base_ID::region_context |
( |
| ) |
const |
|
inherited |
access to IdContext's which define which levels of fields are contained in the id
id for regions
Definition at line 1045 of file Tile_Base_ID.cxx.
◆ region_end()
◆ region_eta_max()
◆ region_eta_min()
◆ region_hash()
Convert a connected region Identifier to a hash code.
Some subdetector helpers may override this with a faster version.
◆ region_hash_max()
◆ region_id() [1/6]
◆ region_id() [2/6]
◆ region_id() [3/6]
Return the region Identifier for a given hash code (no checking).
◆ region_id() [4/6]
| Identifier Tile_Base_ID::region_id |
( |
int |
index | ) |
const |
|
inherited |
build single region, module, tower, cell, pmt, adc identifiers
Definition at line 409 of file Tile_Base_ID.cxx.
412 IdentifierHash hash_id =
index;
◆ region_id() [5/6]
| Identifier Tile_Base_ID::region_id |
( |
int |
section, |
|
|
int |
side |
|
) |
| const |
|
inherited |
◆ region_id() [6/6]
| Identifier Tile_Base_ID::region_id |
( |
int |
section, |
|
|
int |
side, |
|
|
bool |
checks |
|
) |
| const |
|
inherited |
Definition at line 421 of file Tile_Base_ID.cxx.
432 std::string errorMessage =
"Tile_Base_ID::region_id() result is not OK: ID, range = "
◆ region_ids()
◆ region_range()
| id_range Tile_Base_ID::region_range |
( |
| ) |
const |
|
inlineinherited |
◆ 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 |
◆ sample()
◆ sampling()
◆ sct()
◆ sct_exp()
◆ sct_field_value()
| int AtlasDetectorID::sct_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ section()
◆ 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) {
◆ side()
◆ stgc()
◆ stgc_field_value()
| int AtlasDetectorID::stgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ subdet_context()
| IdContext AtlasDetectorID::subdet_context |
( |
void |
| ) |
const |
|
inherited |
◆ system()
◆ tgc()
◆ tgc_field_value()
| int AtlasDetectorID::tgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ tile()
◆ tile_barrel()
◆ tile_det() [1/2]
| Identifier Tile_Base_ID::tile_det |
( |
int |
section | ) |
const |
|
inherited |
◆ tile_det() [2/2]
| Identifier Tile_Base_ID::tile_det |
( |
int |
section, |
|
|
bool |
checks |
|
) |
| const |
|
inherited |
◆ tile_dm()
| Identifier AtlasDetectorID::tile_dm |
( |
void |
| ) |
const |
|
inherited |
◆ tile_exp()
◆ tile_extbarrel()
◆ tile_field_value()
| int AtlasDetectorID::tile_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ tile_gap()
build identifier for Tile Gap detector (ITC + gap/crack scintillators)
Definition at line 359 of file Tile_Base_ID.cxx.
◆ tile_system()
◆ to_range()
◆ to_string() [1/2]
| std::string Tile_Base_ID::to_string |
( |
const Identifier & |
id, |
|
|
int |
level = 0 |
|
) |
| const |
|
inherited |
Definition at line 56 of file Tile_Base_ID.cxx.
68 return "Tile_Base_ID::to_string - unknown context";
73 return "Tile_Base_ID::to_string - can not expand ID";
75 return (std::string)(exp_id);
◆ to_string() [2/2]
Definition at line 80 of file Tile_Base_ID.cxx.
92 return "Tile_Base_ID::to_string - unknown context";
96 if (
get_id ( hash_id,
id, &context ) == 0 ) {
99 return "Tile_Base_ID::to_string - can not expand ID";
101 return (std::string)(exp_id);
104 return "Tile_Base_ID::to_string - can not get ID from hash_id";
◆ tower()
◆ tower_begin()
◆ tower_context()
| IdContext Tile_Base_ID::tower_context |
( |
| ) |
const |
|
inherited |
◆ tower_end()
◆ tower_hash_max()
◆ tower_id() [1/5]
◆ tower_id() [2/5]
◆ tower_id() [3/5]
◆ tower_id() [4/5]
| Identifier Tile_Base_ID::tower_id |
( |
int |
section, |
|
|
int |
side, |
|
|
int |
module, |
|
|
int |
tower |
|
) |
| const |
|
inherited |
◆ tower_id() [5/5]
| Identifier Tile_Base_ID::tower_id |
( |
int |
section, |
|
|
int |
side, |
|
|
int |
module, |
|
|
int |
tower, |
|
|
bool |
checks |
|
) |
| const |
|
inherited |
Definition at line 529 of file Tile_Base_ID.cxx.
542 std::string errorMessage =
"Tile_Base_ID::tower_id() result is not OK: ID, range = "
◆ tower_ids()
◆ tower_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 |
◆ TileNeighbour
◆ ATLAS_THREAD_SAFE
| std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_adc_impl
◆ m_ADC_INDEX
◆ m_adcs
◆ 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_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_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_adc_range
◆ m_full_cell_range
◆ m_full_module_range
◆ m_full_pmt_range
◆ m_full_region_range
◆ m_full_tower_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_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_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_MM_ID
| int AtlasDetectorID::m_MM_ID {5} |
|
privateinherited |
◆ m_module_impl
◆ m_MODULE_INDEX
◆ m_modules
◆ 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_neighbour
◆ m_nm
| std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_PIXEL_ID
| int AtlasDetectorID::m_PIXEL_ID {1} |
|
privateinherited |
◆ m_pmt_impl
◆ m_PMT_INDEX
◆ m_pmts
◆ m_quiet
| bool AtlasDetectorID::m_quiet {} |
|
protectedinherited |
◆ m_regions
◆ m_RPC_ID
| int AtlasDetectorID::m_RPC_ID {2} |
|
privateinherited |
◆ m_sample_impl
◆ m_SAMPLE_INDEX
◆ m_SCT_ID
| int AtlasDetectorID::m_SCT_ID {2} |
|
privateinherited |
◆ m_section_impl
◆ m_SECTION_INDEX
◆ m_side_impl
◆ m_SIDE_INDEX
◆ m_slar_impl
◆ m_STGC_ID
| int AtlasDetectorID::m_STGC_ID {4} |
|
privateinherited |
◆ m_SUBDET_INDEX
| size_type AtlasDetectorID::m_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_supercell
| unsigned Tile_Base_ID::m_supercell |
|
privateinherited |
◆ m_system_impl
◆ m_SYSTEM_INDEX
◆ 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_tile_region_index
◆ m_tower_impl
◆ m_TOWER_INDEX
◆ m_towers
◆ m_TRT_ID
| int AtlasDetectorID::m_TRT_ID {3} |
|
privateinherited |
◆ m_vecOfDictRegions
◆ m_ZDC_ID
| int AtlasDetectorID::m_ZDC_ID {7} |
|
privateinherited |
The documentation for this class was generated from the following files:
Identifier module_id(int section, int side, int module) const
JetConstituentVector::iterator iterator
IdDictRegion * find_region(const std::string ®ion_name) const
bool is_pixel(Identifier id) const
std::atomic< MSG::Level > m_lvl
Current logging level.
IdDictFieldImplementation m_tower_impl
int eta_min(const Identifier &id) const
max values (-999 == failure)
IdDictDictionary * m_muon_dict
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
int decode_section(int section) const
int next_eta(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
bool is_forward(Identifier id) const
MultiRange build_multirange() const
Get MultiRange for full dictionary.
MultiRange m_full_adc_range
std::vector< unsigned int > m_muon_tech_bits
IdContext adc_context() const
id for ADCs
id_range reg_range() const
IdDictFieldImplementation m_indet_part_impl
const std::string & version() const
Dictionary version.
bool is_lar_fcal(Identifier id) const
int next_samp(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) 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.
IdDictFieldImplementation m_section_impl
IdContext module_context() const
id for modules
std::string show_to_string(void) const
bool is_lar(Identifier id) const
int muon_field_value() const
const IdDictRegion & region(size_t i) const
Region at index i.
IdDictFieldImplementation m_system_impl
int pmt(const Identifier &id) const
element_type get_minimum() const
Query the values.
int init(T &parent, const std::string &type, const MultiRange &full_range, Identifier(T::*idfunc)(const ExpandedIdentifier &) const, size_type end_index)
Initialize.
size_type end_index() const
int calo_field_value() const
IdContext region_context() const
Return the context for regions.
int side(const Identifier &id) const
void add(element_type value)
Append a value into a new field.
Identifier id(IdentifierHash hashId) const
Return the identifier for a given hash code (no checking).
int sample(const Identifier &id) const
int encode_section(int section) const
id_iterator begin() const
Return a begin iterator over the group's Identifiers.
void pack(int value, Identifier &id) const
IdDictDictionary * m_tile_dict
int initLevelsFromDict(const std::string &group_name)
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.
element_type get_maximum() const
TileNeighbour m_neighbour
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
int tower(const Identifier &id) const
static constexpr value_type MAX_BIT
const std::string & name() const
Dictionary name.
int lar_field_value() const
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.
virtual int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
int prev_samp(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
IdDictFieldImplementation m_module_impl
ExpandedIdentifier tile_exp(void) const
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.
int region(int section, int side) const
int initialize_base_from_dictionary(const IdDictMgr &dict_mgr, const std::string &group_name)
initialization from the identifier dictionary
int prev_eta(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
int prev_phi(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
int get_field(const Identifier &id, size_type index) const
unpack one field from Identifier
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
int initialize(const Tile_Base_ID *tileID, const std::string &filename="TileNeighbour.txt")
size_type m_SECTION_INDEX
CaloIDHelper::HashGroup m_pmts
Identifier tile_det(int section) const
build identifier for any Tilecal section
std::vector< const IdDictRegion * > m_vecOfDictRegions
List of IdDictRegion objects.
size_type m_tile_region_index
Identifier region_id(int index) const
build single region, module, tower, cell, pmt, adc identifiers
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
virtual int get_id(const IdentifierHash &hash_id, Identifier &id, const IdContext *context=0) const
create compact id from hash id (return == 0 for OK)
IdDictGroup * find_group(const std::string &group_name) const
int adc(const Identifier &id) const
static constexpr value_type ALL_BITS
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
int module(const Identifier &id) const
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.
Identifier tower_id(int section, int side, int module, int tower) const
IdDictDictionary * m_calo_dict
void remove_range(const ExpandedIdentifier &id)
Remove a Range made from a single ExpandedIdentifier.
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:
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
Exception class for Tile Identifiers.
bool is_tile(Identifier id) const
const std::string & group() const
Group name for this helper.
Range::field m_lvl1_onl_field
bool m_quiet
If true, suppress DEBUG/INFO messages.
MsgStream & msg() const
The standard message stream.
id_iterator reg_end() const
int initialize_base_from_dictionary(const IdDictMgr &dict_mgr, const std::string &dict_name)
Do basic initialization of the helper.
virtual int get_hash(const Identifier &id, IdentifierHash &hash_id, const IdContext *context=0) const
create hash id from compact id (return == 0 for OK)
IdDictFieldImplementation m_muon_rpc_impl
bool is_calo(Identifier id) const
Identifier adc_id(const Identifier &cell_id, int pmt, int adc) const
int tile_field_value() 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
int unpack(const std::string &group, const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier for a given group, considering the provided prefix...
const ExpandedIdentifier & prefix_id() const
Accessors.
float eta0(const IdentifierHash regHash) const
Return the minimum eta of region, or NOT_VALID.
IdDictDictionary * m_indet_dict
MultiRange m_full_module_range
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
CaloIDHelper::HashGroup m_towers
IdDictFieldImplementation m_pmt_impl
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
ExpandedIdentifier fwd_exp(void) const
IdDictFieldImplementation m_adc_impl
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 prev_samp_wide(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
IdDictFieldImplementation m_sample_impl
IdDictFieldImplementation m_side_impl
int match(const ExpandedIdentifier &id) const
Match an identifier.
MultiRange m_full_cell_range
IdContext cell_context() const
id for cells
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.
CaloIDHelper::HashGroup m_adcs
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
bool empty() const noexcept
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.
CaloIDHelper::HashGroup m_modules
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.
ExpandedIdentifier lar_exp(void) const
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
MultiRange m_full_pmt_range
#define ATH_MSG_WARNING(x)
int eta_max(const Identifier &id) const
Identifier pmt_id(const Identifier &any_id) const
IdContext region_context() const
access to IdContext's which define which levels of fields are contained in the id
std::string m_nm
Message source name.
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
IdDictDictionary * m_lar_dict
IdContext tower_context() const
id for towers
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
MultiRange m_full_tower_range
int next_phi(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
int next_samp_wide(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
MultiRange m_full_region_range
int section(const Identifier &id) const
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.
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Identifier cell_id(const Identifier &any_id) const
virtual bool do_checks(void) const override
Checks are performed by default in debug compilation and NOT in optimized compilation.
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.
Tile_Base_ID(const std::string &name, const std::string &group, bool supercell)
Constructor.
IdContext pmt_context() const
id for PMTs
id_iterator reg_begin() const
iterator over set of region Identifiers
Range::field m_lvl1_field
size_type hash_max() const
Return one more than the largest hash code.
Identifier channel_id(IdentifierHash hashId) const
Return the channel (cell) Identifier for a given hash code (no checking).