|
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 (void) const |
| access to IdContext's which define which levels of fields are contained in the id More...
|
|
IdContext | module_context (void) const |
| id for modules More...
|
|
IdContext | tower_context (void) const |
| id for towers More...
|
|
IdContext | cell_context (void) const |
| id for cells More...
|
|
IdContext | pmt_context (void) const |
| id for PMTs More...
|
|
IdContext | adc_context (void) 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 (void) const |
| hash tables max size More...
|
|
size_type | module_hash_max (void) const |
|
size_type | tower_hash_max (void) const |
|
size_type | cell_hash_max (void) const |
|
size_type | pmt_hash_max (void) const |
|
size_type | adc_hash_max (void) 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 60 of file AtlasDetectorID.h.
65 LArEM, LArFCal, LArFCalSuperCell,
66 LArHEC, LArHEC_SuperCell, LARMiniFCal,
70 LArOnline, LArOnlineSuperCell,
72 LArElectrode, LArHVLine,
73 TileHardware, TileTestbeam,
80 LUCID, LUCID_Hardware,
◆ ID
◆ SAMPLE
Enumerator |
---|
SAMP_A | |
SAMP_B | |
SAMP_BC | |
SAMP_C | |
SAMP_D | |
SAMP_E | |
SAMP_X | |
Definition at line 53 of file Tile_Base_ID.h.
◆ SECTION
Enumerator |
---|
ONLINE | |
BARREL | |
EXTBAR | |
GAPDET | |
AUXDET | |
SBARREL | |
SEXTBAR | |
SECTION_MASK | |
SUPERCELL_MASK | |
Definition at line 48 of file Tile_Base_ID.h.
◆ SIDE
Enumerator |
---|
NEGATIVE | |
POSITIVE | |
TWOSIDES | |
Definition at line 56 of file Tile_Base_ID.h.
◆ SIZE
Enumerator |
---|
NSIDES | |
NSECTIONS | |
NREGIONS | |
Definition at line 58 of file Tile_Base_ID.h.
◆ TileID()
◆ adc()
◆ adc_begin()
◆ adc_context()
IdContext Tile_Base_ID::adc_context |
( |
void |
| ) |
const |
|
inherited |
◆ adc_end()
◆ adc_hash_max()
◆ adc_id() [1/9]
◆ adc_id() [2/9]
◆ adc_id() [3/9]
Definition at line 754 of file Tile_Base_ID.cxx.
768 std::string errorMessage =
"Tile_Base_ID::adc_id(cell_id,pmt,adc) could not pack ID: "
782 std::string errorMessage =
"Tile_Base_ID::adc_id(cell_id,pmt,adc) result is not OK: ID = "
792 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 809 of file Tile_Base_ID.cxx.
822 std::string errorMessage =
"Tile_Base_ID::adc_id(pmt_id,adc) could not pack ID: "
836 std::string errorMessage =
"Tile_Base_ID::adc_id(pmt_id,adc) result is not OK: ID = "
846 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 863 of file Tile_Base_ID.cxx.
877 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 |
( |
void |
| ) |
const |
|
inherited |
◆ cell_end()
◆ cell_hash()
fast conversion from ID to hash for cells
Definition at line 1030 of file Tile_Base_ID.cxx.
1032 IdentifierHash ret = 0;
1036 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 1020 of file Tile_Base_ID.cxx.
1022 if (hash_id <
channels().hash_max()) {
1025 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 593 of file Tile_Base_ID.cxx.
607 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 |
Version tags for subdet dictionaries.
Version tag for subdet dictionary.
Definition at line 723 of file AtlasDetectorID.cxx.
◆ 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 728 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 738 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 207 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 185 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 259 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 1077 of file Tile_Base_ID.cxx.
1096 log << MSG::ERROR <<
"get_id: adc hash_id is out of range " << hash_id
1105 log << MSG::ERROR <<
"get_id: pmt hash_id is out of range " << hash_id
1109 if (hash_id <
channels().hash_max()) {
1114 log << MSG::ERROR <<
"get_id: cell hash_id is out of range " << hash_id
1123 log << MSG::ERROR <<
"get_id: tower hash_id is out of range " << hash_id
1132 log << MSG::ERROR <<
"get_id: module hash_id is out of range " << hash_id
1136 if (hash_id <
regions().hash_max()) {
1141 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 1786 of file Tile_Base_ID.cxx.
1794 log << MSG::WARNING <<
"get_neighbours: neighbours not initialized !!! returning empty list" <<
endmsg;
1796 neighbourList.resize(0);
1800 neighbourList.clear();
1807 bool prevPhi = corners2DOnly || (option &
prevInPhi);
1808 bool nextPhi = corners2DOnly || (option &
nextInPhi);
1809 bool prevEta = corners2DOnly || (option &
prevInEta);
1810 bool nextEta = corners2DOnly || (option &
nextInEta);
1812 std::vector<IdentifierHash> inpList;
1816 inpList.push_back(id_orig);
1825 }
else if (corners2DOnly) {
1827 inpList = std::move(neighbourList);
1828 neighbourList.clear();
1832 inpList.insert (inpList.end(), neighbourList.begin(), neighbourList.end());
1837 inpItr = inpList.begin();
1838 inpLast = inpList.end();
1839 for ( ; inpItr != inpLast; ++inpItr) {
1840 IdentifierHash
id = (*inpItr);
1848 inpItr = inpList.begin();
1849 inpLast = inpList.end();
1850 for ( ; inpItr != inpLast; ++inpItr) {
1851 IdentifierHash
id = (*inpItr);
1863 if (!neighbourList.empty())
result = 0;
◆ 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 611 of file AtlasDetectorID.h.
◆ init_hashes()
int Tile_Base_ID::init_hashes |
( |
void |
| ) |
|
|
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 1181 of file Tile_Base_ID.cxx.
1210 if (atlasDict->
get_label_value(
"subdet",
"TileCalorimeter", tileField)) {
1211 log << MSG::ERROR <<
"Could not get value for label 'TileCalorimeter' of field 'subdet' in dictionary "
1219 tile_id.
add(tileField);
1231 int tilehwField = -1;
1232 if (
dict()->get_label_value(
"section",
"Online", tilehwField)) {
1233 log << MSG::ERROR <<
"Could not get value for label 'Online' of field 'section' in dictionary "
1239 reg_id.
add(tilehwField);
1249 int tiletbField = -1;
1250 if (
dict()->get_label_value(
"section",
"Testbeam", tiletbField)) {
1251 log << MSG::ERROR <<
"Could not get value for label 'Testbeam' of field 'section' in dictionary "
1257 reg_id.
add(tiletbField);
1284 std::string neighbourFile;
1286 neighbourFile =
"TileSuperCellNeighbour.txt";
1291 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 33 of file TileID.cxx.
37 std::string strg =
"initialize_from_dictionary";
42 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 1613 of file Tile_Base_ID.cxx.
1618 log << MSG::ERROR <<
"initLevelsFromDict - dictionary NOT initialized "
1636 log << MSG::ERROR <<
"initLevelsFromDict - cannot find " <<
group_name
1637 <<
" group' field " <<
endmsg;
1649 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'subdet' field "
1659 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'section' field "
1669 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'side' field "
1679 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'module' field "
1689 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'tower' field "
1699 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'sampling' field "
1709 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'pmt' field "
1719 log << MSG::ERROR <<
"initLevelsFromDict - unable to find 'adc' field "
1736 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 |
( |
void |
| ) |
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 911 of file Tile_Base_ID.cxx.
923 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 469 of file Tile_Base_ID.cxx.
482 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 218 of file CaloIDHelper.cxx.
◆ phi_max()
◆ phiGranularity()
Return the phi granularity of a region, or NOT_VALID
.
- Parameters
-
Definition at line 196 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 |
( |
void |
| ) |
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 652 of file Tile_Base_ID.cxx.
665 std::string errorMessage =
"Tile_Base_ID::pmt_id(cell_id,pmt) could not pack ID: "
679 std::string errorMessage =
"Tile_Base_ID::pmt_id(cell_id,pmt) result is not OK: ID = "
689 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 706 of file Tile_Base_ID.cxx.
720 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 655 of file AtlasDetectorID.cxx.
663 unsigned int max_index = (context) ? context->
end_index() : 999;
694 if (!dict)
return (
result);
◆ 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 |
( |
void |
| ) |
const |
|
inherited |
access to IdContext's which define which levels of fields are contained in the id
id for regions
Definition at line 1041 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 405 of file Tile_Base_ID.cxx.
408 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 417 of file Tile_Base_ID.cxx.
428 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 |
Register the file and tag names for a particular IdDict dictionary.
Definition at line 266 of file AtlasDetectorID.cxx.
273 if (!dict)
return(1);
◆ reinitialize()
Test whether an idhelper should be reinitialized based on the change of tags.
Definition at line 284 of file AtlasDetectorID.cxx.
294 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 565 of file AtlasDetectorID.cxx.
◆ show_to_string()
or provide the printout in string form
Definition at line 574 of file AtlasDetectorID.cxx.
580 std::string
result(
"Unable to decode id");
581 unsigned int max_index = (context) ? context->
end_index() : 999;
615 if (!dict)
return (
result);
629 for (
unsigned int i = 0;
i < expId.
fields(); ++
i) {
632 sprintf (temp,
"%d", expId[
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 355 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 52 of file Tile_Base_ID.cxx.
64 return "Tile_Base_ID::to_string - unknown context";
69 return "Tile_Base_ID::to_string - can not expand ID";
71 return (std::string)(exp_id);
◆ to_string() [2/2]
Definition at line 76 of file Tile_Base_ID.cxx.
88 return "Tile_Base_ID::to_string - unknown context";
92 if (
get_id ( hash_id,
id, &context ) == 0 ) {
95 return "Tile_Base_ID::to_string - can not expand ID";
97 return (std::string)(exp_id);
100 return "Tile_Base_ID::to_string - can not get ID from hash_id";
◆ tower()
◆ tower_begin()
◆ tower_context()
IdContext Tile_Base_ID::tower_context |
( |
void |
| ) |
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 525 of file Tile_Base_ID.cxx.
538 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 362 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 365 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 378 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_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
const std::string & dict_tag(void) const
Access to the dictionary tag.
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
int unpack(const Identifier &id, const ExpandedIdentifier &prefix, size_t index2, ExpandedIdentifier &unpackedId) const
Unpack the value_type id to an expanded Identifier, considering the provided prefix (result will incl...
id_range reg_range() const
IdDictFieldImplementation m_indet_part_impl
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
std::string show_to_string(void) const
bool is_lar(Identifier id) const
int muon_field_value() const
IdContext cell_context(void) const
id for cells
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
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.
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
IdContext module_context(void) const
id for modules
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")
Tile_Base_ID(const std::string &name, bool supercell)
Constructor.
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.
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
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.
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
std::vector< IdDictRegion * > m_regions
IdContext tower_context(void) const
id for towers
IdDictDictionary * m_fwd_dict
Exception class for Tile Identifiers.
bool is_tile(Identifier id) const
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
const std::string & file_name(void) const
Access to file name.
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
const ExpandedIdentifier & prefix_id() const
Accessors.
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.
IdContext adc_context(void) const
id for ADCs
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
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 is_muon(Identifier id) const
IdDictFieldImplementation m_det_impl
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
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
int eta_max(const Identifier &id) const
Identifier pmt_id(const Identifier &any_id) const
std::string m_nm
Message source name.
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
IdContext pmt_context(void) const
id for PMTs
IdDictDictionary * m_lar_dict
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
MultiRange m_full_tower_range
IdContext region_context(void) const
access to IdContext's which define which levels of fields are contained in the id
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.
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).