 |
ATLAS Offline Software
|
Helper class for offline cell identifiers.
More...
#include <CaloCell_ID.h>
|
typedef CaloCell_Base_ID::size_type | size_type |
|
typedef CaloCell_Base_ID::SUBCALO | SUBCALO |
|
typedef CaloSampling::CaloSample | CaloSample |
|
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 | 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...
|
|
|
| CaloCell_ID (const LArEM_ID *em_id, const LArHEC_ID *hec_id, const LArFCAL_ID *fcal_id, const LArMiniFCAL_ID *minifcal_id, const TileID *tile_id) |
| Constructor. More...
|
|
| ~CaloCell_ID (void) |
|
virtual int | initialize_from_dictionary (const IdDictMgr &dict_mgr) |
| Initialization from the identifier dictionary. More...
|
|
const LArEM_ID * | em_idHelper () const |
| access to EM idHelper More...
|
|
const LArHEC_ID * | hec_idHelper () const |
| access to HEC idHelper More...
|
|
const LArFCAL_ID * | fcal_idHelper () const |
| access to FCAL idHelper More...
|
|
const TileID * | tile_idHelper () const |
| access to Tile idHelper More...
|
|
int | GetSubCaloName (const std::string &SubCaloName) const |
|
Identifier | region_id (const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy) const |
| Make a region ID from constituting fields and subCalo index; for (Mini)FCAL and Tiles, the last argument is not used
for Tiles, 'barec_or_posneg' corresponds to 'section', 'sampling_or_fcalmodule' corresponds to 'side'
More...
|
|
Identifier | region_id (const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy, bool checks) const |
|
Identifier | region_id (const Identifier cellId) const |
| Make a region ID from a cell ID
More...
|
|
Identifier | region_id (const IdentifierHash caloRegionHash) const |
| create region id from 'global'(==full calo) hash id More...
|
|
Identifier | region_id (const int subCalo, const IdentifierHash subCaloRegionHash) const |
| create region id from 'local'(==internal to sub calo) hash id and sub calorimeter More...
|
|
Identifier | cell_id (const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy, const int eta, const int phi) const |
| Make a cell (== channel) ID from constituting fields and subCalo index; for (Mini)FCAL, 'region_or_dummy' argument is not used for Tiles, 'barec_or_posneg' corresponds to 'section', 'sampling_or_fcalmodule' corresponds to 'side', 'region_or_dummy' corresponds to 'module', 'eta' corresponds to 'tower' and 'phi' corresponds to 'sample'
More...
|
|
Identifier | cell_id (const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy, const int eta, const int phi, bool checks) const |
|
Identifier | cell_id (const Identifier regionId, const int eta, const int phi, int depth=0) const |
| not available for Tile depth is only used for miniFCAL More...
|
|
Identifier | cell_id (const Identifier regionId, const int eta, const int phi, int depth, bool checks) const |
|
Identifier | cell_id (const IdentifierHash caloCellHash) const |
| create cell id from 'global' hash id More...
|
|
Identifier | cell_id (const int subCalo, const IdentifierHash subCaloCellHash) const |
| create cell id from 'local'(==internal to sub calo) hash id and sub calorimeter More...
|
|
IdentifierHash | calo_region_hash (const Identifier regionId) const |
| create hash id from 'global' region id More...
|
|
IdentifierHash | calo_region_hash (const int subCalo, const IdentifierHash subCaloHash) const |
| to translate a region subCaloHash with its subCalo index into a 'global' caloHash More...
|
|
IdentifierHash | subcalo_region_hash (const Identifier regionId, int &subCalo) const |
| create hash id from 'global' region id More...
|
|
IdentifierHash | subcalo_region_hash (const IdentifierHash caloHash, int &subCalo) const |
| to translate a region 'global' caloHash into a subCaloHash More...
|
|
IdentifierHash | calo_cell_hash (const Identifier cellId) const |
| create hash id from 'global' cell id More...
|
|
IdentifierHash | calo_cell_hash (const int subCalo, const IdentifierHash subCaloHash) const |
| to translate a cell subCaloHash with its subCalo index into a 'global' caloHash More...
|
|
IdentifierHash | subcalo_cell_hash (const Identifier cellId, int &subCalo) const |
| create hash id from 'global' cell id More...
|
|
IdentifierHash | subcalo_cell_hash (const IdentifierHash caloHash, int &subCalo) const |
| to translate a cell 'global' caloHash into a subCaloHash More...
|
|
size_type | calo_cell_hash_max (void) const |
| cell 'global' hash table max size
More...
|
|
size_type | calo_region_hash_max (void) const |
| cell 'global' region table max size
More...
|
|
void | calo_cell_hash_range (const Identifier id, IdentifierHash &caloCellMin, IdentifierHash &caloCellMax) const |
| to loop on 'global' cell hashes of one sub-calorimeter alone
More...
|
|
void | calo_cell_hash_range (const int subCalo, IdentifierHash &caloCellMin, IdentifierHash &caloCellMax) const |
| to loop on 'global' cell hashes of one sub-calorimeter alone
More...
|
|
void | calo_reg_hash_range (const Identifier id, IdentifierHash &caloCellMin, IdentifierHash &caloCellMax) const |
| to loop on 'global' region hashes of one sub-calorimeter alone
More...
|
|
void | calo_reg_hash_range (const int subCalo, IdentifierHash &caloCellMin, IdentifierHash &caloCellMax) const |
| to loop on 'global' region hashes of one sub-calorimeter alone
More...
|
|
id_iterator | cell_begin (void) const |
| begin iterator over full set of Identifiers (LAr + Tiles) More...
|
|
id_iterator | cell_begin (const int subCalo) const |
| begin iterator over subCalo sets of cell Identifiers More...
|
|
id_iterator | cell_end (void) const |
| end iterator over full set of Identifiers (LAr + Tiles) More...
|
|
id_iterator | cell_end (const int subCalo) const |
| end iterator over subCalo sets of cell Identifiers More...
|
|
id_range | cell_range (void) const |
| Range over full set of Identifiers (LAr + Tiles) More...
|
|
id_range | cell_range (const int subCalo) const |
| Range over subCalo sets of cell Identifiers. More...
|
|
id_iterator | reg_begin (void) const |
| begin iterator over set of region Identifiers (LAr + Tiles) More...
|
|
id_iterator | reg_begin (const int subCalo) const |
| begin iterator over subCalo sets of region Identifiers More...
|
|
id_iterator | reg_end (void) const |
| end iterator over set of region Identifiers (LAr + Tiles) More...
|
|
id_iterator | reg_end (const int subCalo) const |
| end iterator over subCalo sets of region Identifiers More...
|
|
id_range | reg_range (void) const |
| Range over set of region Identifiers (LAr + Tiles) More...
|
|
id_range | reg_range (const int subCalo) const |
| Range over subCalo sets of region Identifiers. More...
|
|
bool | is_em (const Identifier id) const |
| test if the id belongs to LArEM More...
|
|
bool | is_em (const IdentifierHash caloHash) const |
| test if the hash id belongs to LArEM More...
|
|
bool | is_em_barrel (const Identifier id) const |
| test if the id belongs to the EM barrel More...
|
|
bool | is_em_endcap (const Identifier id) const |
| test if the id belongs to the EM Endcap More...
|
|
bool | is_em_endcap_inner (const Identifier id) const |
| test if the id belongs to the EM Endcap inner wheel More...
|
|
bool | is_em_endcap_outer (const Identifier id) const |
| test if the id belongs to the EM Endcap outer wheel More...
|
|
bool | is_hec (const Identifier id) const |
| test if the id belongs to the HEC More...
|
|
bool | is_hec (const IdentifierHash caloHash) const |
| test if the hash id belongs to the HEC More...
|
|
bool | is_fcal (const Identifier id) const |
| test if the id belongs to the FCAL - true also for MiniFCAL More...
|
|
bool | is_fcal (const IdentifierHash caloHash) const |
| test if the hash id belongs to the FCAL - true also for MiniFCAL More...
|
|
bool | is_minifcal (const Identifier id) const |
| test if the id belongs to the MiniFCAL More...
|
|
bool | is_minifcal (const IdentifierHash caloHash) const |
| test if the hash id belongs to the FCAL More...
|
|
bool | is_tile (const Identifier id) const |
| test if the id belongs to the Tiles More...
|
|
bool | is_tile (const IdentifierHash caloHash) const |
| test if the hash id belongs to the Tiles More...
|
|
bool | is_tile (const ExpandedIdentifier &id) const |
|
bool | is_tile_barrel (const Identifier id) const |
| test if the id belongs to the Tiles barrel More...
|
|
bool | is_tile_extbarrel (const Identifier id) const |
| test if the id belongs to the Tiles extended barrel More...
|
|
bool | is_tile_gap (const Identifier id) const |
| test if the id belongs to the Tiles gap More...
|
|
bool | is_tile_gapscin (const Identifier id) const |
|
bool | is_tile_negative (const Identifier id) const |
| test if the id belongs to the Tiles negative side More...
|
|
bool | is_tile_positive (const Identifier id) const |
| test if the id belongs to the Tiles positive side More...
|
|
int | sub_calo (const Identifier id) const |
| returns an int taken from SUBCALO enum and describing the subCalo to which the Id belongs. More...
|
|
int | sub_calo (const IdentifierHash caloHash) const |
| returns an int taken from SUBCALO enum and describing the subCalo to which the hash Id belongs. More...
|
|
int | calo_sample (const Identifier id) const |
| returns an int taken from Sampling enum and describing the subCalo to which the Id belongs. More...
|
|
int | calo_sample (const IdentifierHash caloHash) const |
| returns an int taken from Sampling enum and describing the subCalo to which the hash Id belongs. More...
|
|
int | pos_neg (const Identifier id) const |
| LAr field values (NOT_VALID == invalid request) More...
|
|
int | sampling (const Identifier id) const |
| LAr field values (NOT_VALID == invalid request) More...
|
|
int | region (const Identifier id) const |
| LAr field values (NOT_VALID == invalid request) More...
|
|
int | eta (const Identifier id) const |
| LAr field values (NOT_VALID == invalid request) More...
|
|
int | phi (const Identifier id) const |
| LAr field values (NOT_VALID == invalid request) More...
|
|
int | section (const Identifier id) const |
| Tile field values (NOT_VALID == invalid request) More...
|
|
int | side (const Identifier id) const |
| Tile field values (NOT_VALID == invalid request) More...
|
|
int | module (const Identifier id) const |
| Tile field values (NOT_VALID == invalid request) More...
|
|
int | tower (const Identifier id) const |
| Tile field values (NOT_VALID == invalid request) More...
|
|
int | sample (const Identifier id) const |
| Tile field values (NOT_VALID == invalid request) More...
|
|
bool | is_supercell (const Identifier id) const |
| Test if the identifier represents a supercell. More...
|
|
int | eta_min (const Identifier regId) const |
| min value of eta index (-999 == failure) More...
|
|
int | eta_max (const Identifier regId) const |
| max value of eta index (-999 == failure) More...
|
|
int | phi_min (const Identifier regId) const |
| min value of phi index (-999 == failure) More...
|
|
int | phi_max (const Identifier regId) const |
| max value of phi index (-999 == failure) More...
|
|
float | etaGranularity (const Identifier regId) const |
| LAr eta granularity (NOT_VALID == failure) More...
|
|
float | phiGranularity (const Identifier regId) const |
| LAr phi granularity (NOT_VALID == failure) More...
|
|
float | eta0 (const Identifier regId) const |
| minimum LAr eta for this region More...
|
|
float | phi0 (const Identifier regId) const |
| minimum LAr phi for this region More...
|
|
const LArMiniFCAL_ID * | minifcal_idHelper () const |
| access to MiniFCAL idHelper More...
|
|
int | get_neighbours (const IdentifierHash caloHash, const LArNeighbours::neighbourOption &option, std::vector< IdentifierHash > &neighbourList) const |
| access to hashes for neighbours return == 0 for neighbours found
More...
|
|
std::string | cell_name (const Identifier id) const |
| Returns the cell-location in a human readable form. 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 offline cell identifiers.
This class provides an interface to generate offline identifiers for the full calorimeter (LAr + Tile).
It is actually a wrapper of the specific helpers LArEM_ID, LArHEC_ID, LArFCAL_ID, LArMiniFCAL_ID and Tile_ID.
Definition at line 33 of file CaloCell_ID.h.
◆ CaloSample
◆ id_iterator
◆ id_range
◆ size_type
◆ SUBCALO
◆ 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
◆ CaloCell_ID() [1/2]
◆ ~CaloCell_ID()
CaloCell_ID::~CaloCell_ID |
( |
void |
| ) |
|
|
default |
◆ CaloCell_ID() [2/2]
◆ alfa_exp()
◆ alfa_field_value()
int AtlasDetectorID::alfa_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ barrelPattern() [1/2]
static unsigned int CaloSampling::barrelPattern |
( |
| ) |
|
|
staticinherited |
Get the bit-pattern for barrel samplings.
◆ barrelPattern() [2/2]
unsigned int CaloSampling::barrelPattern |
( |
| ) |
|
|
inlinestaticconstexprinherited |
◆ bcm_exp()
◆ bcm_field_value()
int AtlasDetectorID::bcm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ calo()
◆ calo_cell_hash() [1/2]
create hash id from 'global' cell id
◆ calo_cell_hash() [2/2]
to translate a cell subCaloHash with its subCalo index into a 'global' caloHash
- Parameters
-
◆ calo_cell_hash_max()
size_type CaloCell_Base_ID::calo_cell_hash_max |
( |
void |
| ) |
const |
|
inherited |
cell 'global' hash table max size
◆ calo_cell_hash_range() [1/2]
to loop on 'global' cell hashes of one sub-calorimeter alone
- Parameters
-
- Returns
- caloCellMin, CaloCellMax
◆ calo_cell_hash_range() [2/2]
to loop on 'global' cell hashes of one sub-calorimeter alone
- Parameters
-
- Returns
- caloCellMin, CaloCellMax
◆ calo_exp()
◆ calo_field_value()
int AtlasDetectorID::calo_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ calo_reg_hash_range() [1/2]
to loop on 'global' region hashes of one sub-calorimeter alone
- Parameters
-
- Returns
- caloCellMin, CaloCellMax
◆ calo_reg_hash_range() [2/2]
to loop on 'global' region hashes of one sub-calorimeter alone
- Parameters
-
- Returns
- caloCellMin, CaloCellMax
◆ calo_region_hash() [1/2]
create hash id from 'global' region id
◆ calo_region_hash() [2/2]
to translate a region subCaloHash with its subCalo index into a 'global' caloHash
- Parameters
-
◆ calo_region_hash_max()
size_type CaloCell_Base_ID::calo_region_hash_max |
( |
void |
| ) |
const |
|
inherited |
cell 'global' region table max size
◆ calo_sample() [1/2]
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
Definition at line 141 of file CaloCell_Base_ID.cxx.
◆ calo_sample() [2/2]
returns an int taken from Sampling enum and describing the subCalo to which the hash Id belongs.
Definition at line 182 of file CaloCell_Base_ID.cxx.
◆ cell_begin() [1/2]
begin iterator over subCalo sets of cell Identifiers
- Parameters
-
◆ cell_begin() [2/2]
id_iterator CaloCell_Base_ID::cell_begin |
( |
void |
| ) |
const |
|
inherited |
◆ cell_end() [1/2]
end iterator over subCalo sets of cell Identifiers
- Parameters
-
◆ cell_end() [2/2]
◆ cell_id() [1/6]
◆ cell_id() [2/6]
not available for Tile depth is only used for miniFCAL
◆ cell_id() [3/6]
create cell id from 'global' hash id
◆ cell_id() [4/6]
create cell id from 'local'(==internal to sub calo) hash id and sub calorimeter
◆ cell_id() [5/6]
Make a cell (== channel) ID from constituting fields and subCalo index; for (Mini)FCAL, 'region_or_dummy' argument is not used for Tiles, 'barec_or_posneg' corresponds to 'section', 'sampling_or_fcalmodule' corresponds to 'side', 'region_or_dummy' corresponds to 'module', 'eta' corresponds to 'tower' and 'phi' corresponds to 'sample'
◆ cell_id() [6/6]
◆ cell_name()
Returns the cell-location in a human readable form.
Definition at line 254 of file CaloCell_Base_ID.cxx.
255 std::ostringstream
s1;
257 s1 << (this->
pos_neg(
id) == 0 ?
"/C-SIDE" :
"/A-SIDE");
259 s1 <<
"/SECTION " << this->
section(
id) <<
"/SIDE " << this->
side(
id)
260 <<
"/MODULE " << this->
module(
id) <<
"/TOWER " << this->
tower(
id)
261 <<
"/SAMPLE " << this->
sample(
id);
264 s1 <<
"/REGION " << this->
region(
id) <<
"/IETA " << this->
eta(
id)
265 <<
"/iPHI " << this->
phi(
id);
◆ cell_range() [1/2]
◆ cell_range() [2/2]
id_range CaloCell_Base_ID::cell_range |
( |
void |
| ) |
const |
|
inherited |
◆ csc()
◆ csc_field_value()
int AtlasDetectorID::csc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ detsystem_context()
IdContext AtlasDetectorID::detsystem_context |
( |
void |
| ) |
const |
|
inherited |
◆ 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 |
◆ 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 457 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 464 of file AtlasDetectorID.cxx.
◆ em_idHelper()
◆ endcapPattern() [1/2]
unsigned int CaloSampling::endcapPattern |
( |
| ) |
|
|
inlinestaticconstexprinherited |
◆ endcapPattern() [2/2]
static unsigned int CaloSampling::endcapPattern |
( |
| ) |
|
|
staticinherited |
Get the bit-pattern for endcap samplings.
◆ eta()
LAr field values (NOT_VALID == invalid request)
◆ eta0()
minimum LAr eta for this region
- Warning
- input = REGION ID !!
◆ eta_max()
max value of eta index (-999 == failure)
- Warning
- input = REGION ID !!
◆ eta_min()
min value of eta index (-999 == failure)
- Warning
- input = REGION ID !!
◆ etaGranularity()
LAr eta granularity (NOT_VALID == failure)
- Warning
- input = REGION ID !!
◆ fcal_idHelper()
◆ file_names()
const std::vector< std::string > & AtlasDetectorID::file_names |
( |
void |
| ) |
const |
|
inherited |
◆ 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_hash()
Create hash id from compact id (return == 0 for OK)
Implements IdHelper.
Reimplemented in SCT_ID, TRT_ID, PixelID, SiliconID, MuonIdHelper, TileHWID, CaloIDHelper, TileTBID, Tile_Base_ID, HGTD_ID, CaloLVL1_ID, and JGTowerBase_ID.
Definition at line 180 of file AtlasDetectorID.cxx.
◆ get_id()
Create compact id from hash id (return == 0 for OK)
Implements IdHelper.
Reimplemented in SCT_ID, TRT_ID, PixelID, SiliconID, MuonIdHelper, TileHWID, CaloIDHelper, TileTBID, Tile_Base_ID, HGTD_ID, CaloLVL1_ID, and JGTowerBase_ID.
Definition at line 174 of file AtlasDetectorID.cxx.
◆ get_neighbours()
access to hashes for neighbours return == 0 for neighbours found
- Warning
- !!! input and output hash indices are all meant as CALO !!!
option = prevInPhi, nextInPhi, prevInEta, nextInEta, corners2D, prevInSamp, nextInSamp, upAndDown, prevSubDet, nextSubDet, corners3D, prevSuperCalo, nextSuperCalo
and the composite options
option = faces2D = prevInPhi|nextInPhi|prevInEta|nextInEta,
all2D = corners2D|faces2D,
all3D = all2D|prevInSamp|nextInSamp|upAndDown|prevSubDet|nextSubDet,
all3DwithCorners = all3D|corners3D,
super3D = all3D|prevSuperCalo|nextSuperCalo
in 'nextInEta', 'nextInSamp', 'nextSubDet', and 'nextSuperCalo', next means 'away from the centre of Atlas'
in 'prevInEta', 'prevInSamp', 'prevSubDet', and 'prevSuperCalo', prev means 'towards the centre of Atlas'
'all2D', 'all3D', and 'all3DwithCorners' return neighbours within one sub detector, while 'super3D' returns neighbours also across detector boundaries.
Definition at line 190 of file CaloCell_Base_ID.cxx.
221 neighbourList.resize(0);
225 unsigned int shift = caloHashId - subHash;
226 int neighbourIndex = neighbourList.size();
228 if (neighbourIndex > 0) {
230 for (
int iN = 0 ; iN <neighbourIndex ; ++iN) {
231 neighbourList[iN] += shift;
◆ get_subcalo()
◆ getNumberOfSamplings() [1/2]
static unsigned int CaloSampling::getNumberOfSamplings |
( |
| ) |
|
|
staticinherited |
Get number of available samplings.
◆ getNumberOfSamplings() [2/2]
unsigned int CaloSampling::getNumberOfSamplings |
( |
| ) |
|
|
inlinestaticconstexprinherited |
◆ getSampling()
Return the sampling code for a given name.
- Parameters
-
[in] | name | The name to translate. |
Returns Unknown
if the name is not known.
Definition at line 32 of file Calorimeter/CaloGeoHelpers/Root/CaloSampling.cxx.
34 for (
int samp = 0; samp !=
static_cast<int>(
Unknown); ++samp) {
35 if (sample_names[samp] ==
name) {
◆ getSamplingName() [1/4]
std::string CaloSampling::getSamplingName |
( |
CaloSample |
theSample | ) |
|
|
staticinherited |
◆ getSamplingName() [2/4]
static std::string CaloSampling::getSamplingName |
( |
CaloSample |
theSample | ) |
|
|
staticinherited |
◆ getSamplingName() [3/4]
std::string CaloSampling::getSamplingName |
( |
unsigned int |
theSample | ) |
|
|
staticinherited |
◆ getSamplingName() [4/4]
static std::string CaloSampling::getSamplingName |
( |
unsigned int |
theSample | ) |
|
|
staticinherited |
◆ getSamplingPattern() [1/2]
◆ getSamplingPattern() [2/2]
◆ GetSubCaloName()
int CaloCell_Base_ID::GetSubCaloName |
( |
const std::string & |
SubCaloName | ) |
const |
|
inherited |
◆ hec_idHelper()
◆ 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.
◆ initialize_from_dictionary()
int CaloCell_ID::initialize_from_dictionary |
( |
const IdDictMgr & |
dict_mgr | ) |
|
|
virtual |
◆ initLevelsFromDict()
Definition at line 499 of file AtlasDetectorID.cxx.
543 auto assignSystemId = [
this, &
field](
const std::string& systemName,
545 bool mandatory =
true) ->
bool {
548 idToAssign =
label->m_value;
549 ATH_MSG_VERBOSE(
"Assign system "<<systemName<<
" to "<<idToAssign<<
".");
552 ATH_MSG_ERROR(
"initLevelsFromDict - label "<<systemName<<
" does NOT have a value ");
556 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find '"<<systemName<<
"' label");
559 ATH_MSG_DEBUG(
"initLevelsFromDict - unable to find '"<<systemName<<
"' label");
567 ATH_MSG_WARNING(
"initLevelsFromDict - cannot access InnerDetector dictionary");
574 m_isHighLuminosityLHC = (versionString.find(
"ITk") != std::string::npos || versionString.find(
"P2-RUN4") != std::string::npos);
579 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'part' field for InnerDetector dictionary");
586 if (!assignSystemId(
"SCT",
m_SCT_ID)) {
593 if (!assignSystemId(
"LuminosityDetectors",
m_LUMI_ID, versionString.find(
"PLR") != std::string::npos ||
594 versionString.find(
"P2-RUN4") != std::string::npos)) {
605 ATH_MSG_WARNING(
"initLevelsFromDict - cannot access ForwardDetectors dictionary");
617 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'part' field for ForwardDetectors dictionary");
620 if (!assignSystemId(
"ALFA",
m_ALFA_ID)) {
623 if (!assignSystemId(
"BCM",
m_BCM_ID)) {
629 if (!assignSystemId(
"ZDC",
m_ZDC_ID)) {
637 ATH_MSG_WARNING(
"initLevelsFromDict - cannot access LArCalorimeter dictionary");
646 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'part' field for LArCalorimeter dictionary");
662 ATH_MSG_DEBUG(
"initLevelsFromDict - unable to find 'module' field for miniFCAL");
669 ATH_MSG_WARNING(
"initLevelsFromDict - cannot access TileCalorimeter dictionary");
679 ATH_MSG_WARNING(
"initLevelsFromDict - cannot access MuonSpectrometer dictionary");
698 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'stationName' field for MuonSpectrometer dictionary");
703 std::string stationNameString{};
704 const std::vector<IdDictLabel *>& stationNameLabels =
field->m_labels;
707 int stationNameIndex{};
708 int maxStationNameIndex{-1};
712 stationNameIndex = stationNameLabels[
i]->m_valued ? stationNameLabels[
i]->m_value :
i;
714 maxStationNameIndex =
std::max(maxStationNameIndex, stationNameIndex);
725 stationNameString = stationNameLabels[
i]->m_name;
728 stationNameIndex = stationNameLabels[
i]->m_valued ? stationNameLabels[
i]->m_value :
i;
731 bool found{
false}, stationNameFound{
false}, technologyFound{
false};
732 std::string techLabel{};
733 for (
size_type j = 0; j < muonRegions.size(); ++j) {
738 stationNameFound = technologyFound =
false;
745 if (
range->m_field_name ==
"stationName") {
747 if (
range->m_label == stationNameString) {
749 stationNameFound =
true;
756 }
else if (
range->m_field_name ==
"technology") {
757 technologyFound =
true;
758 techLabel =
range->m_label;
761 if (!stationNameFound || !technologyFound) {
766 if (techLabel ==
"MDT") {
768 }
else if (techLabel ==
"RPC") {
770 }
else if (techLabel ==
"CSC") {
772 }
else if (techLabel ==
"TGC"){
774 }
else if (techLabel ==
"MM") {
776 }
else if (techLabel ==
"STGC") {
803 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find 'technology' field for MuonSpectrometer dictionary");
807 if (!assignSystemId(
"MDT",
m_MDT_ID)) {
810 if (!assignSystemId(
"RPC",
m_RPC_ID)) {
813 if (!assignSystemId(
"TGC",
m_TGC_ID)) {
816 if (!assignSystemId(
"STGC",
m_STGC_ID,
false)) {
819 if (!assignSystemId(
"MM",
m_MM_ID,
false)) {
822 if (!assignSystemId(
"CSC",
m_CSC_ID,
false)) {
830 ATH_MSG_WARNING(
"initLevelsFromDict - Warning cannot access Calorimeter dictionary");
841 ATH_MSG_ERROR(
"initLevelsFromDict - Could not get value for label 'negative_lvl1_side' of field 'DetZside' in dictionary " <<
m_calo_dict->
m_name);
847 ATH_MSG_ERROR(
"initLevelsFromDict - Could not get value for label 'positive_lvl1_side' of field 'DetZside' in dictionary " <<
m_calo_dict->
m_name);
855 ATH_MSG_ERROR(
"initLevelsFromDict - Could not get value for label 'negative_DMLar_side' of field 'DetZside' in dictionary " <<
m_calo_dict->
m_name);
861 ATH_MSG_ERROR(
"initLevelsFromDict - Could not get value for label 'positive_DMLar_side' of field 'DetZside' in dictionary " <<
m_calo_dict->
m_name);
870 ATH_MSG_ERROR(
"initLevelsFromDict - Could not get value for label 'negative_DMTile_side' of field 'DetZside' in dictionary " <<
m_calo_dict->
m_name);
876 ATH_MSG_ERROR(
"initLevelsFromDict - Could not get value for label 'positive_DMTile_side' of field 'DetZside' in dictionary " <<
m_calo_dict->
m_name);
893 field = top_dict->find_field(
"subdet");
897 ATH_MSG_ERROR(
"initLevelsFromDict - - unable to find 'subdet' field from dict "
898 << top_dict->m_name);
902 if (!assignSystemId(
"InnerDetector",
m_INDET_ID)) {
905 if (!assignSystemId(
"ForwardDetectors",
m_FWD_ID)) {
908 if (!assignSystemId(
"LArCalorimeter",
m_LAR_ID)) {
911 if (!assignSystemId(
"TileCalorimeter",
m_TILE_ID)) {
915 if (!assignSystemId(
"MuonSpectrometer",
m_MUON_ID)) {
918 if (!assignSystemId(
"Calorimeter",
m_CALO_ID)) {
923 if (top_dict->m_name ==
"InnerDetector") {
925 }
else if (top_dict->m_name ==
"Calorimeter") {
927 }
else if (top_dict->m_name ==
"LArCalorimeter") {
929 }
else if (top_dict->m_name ==
"MuonSpectrometer") {
930 name =
"stationName";
931 }
else if (top_dict->m_name ==
"TileCalorimeter") {
933 }
else if (top_dict->m_name ==
"ForwardDetectors") {
943 ATH_MSG_ERROR(
"initLevelsFromDict - unable to find field " <<
name <<
" from dict "<< top_dict->m_name);
947 ATH_MSG_ERROR(
"initLevelsFromDict - no top dictionary defined");
966 ATH_MSG_ERROR(
"initLevelsFromDict - ERROR det implementation is not enumerated: "
◆ 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_em() [1/2]
test if the id belongs to LArEM
◆ is_em() [2/2]
test if the hash id belongs to LArEM
◆ is_em_barrel()
test if the id belongs to the EM barrel
◆ is_em_endcap()
test if the id belongs to the EM Endcap
◆ is_em_endcap_inner()
test if the id belongs to the EM Endcap inner wheel
◆ is_em_endcap_outer()
test if the id belongs to the EM Endcap outer wheel
◆ is_fcal() [1/2]
test if the id belongs to the FCAL - true also for MiniFCAL
◆ is_fcal() [2/2]
test if the hash id belongs to the FCAL - true also for MiniFCAL
◆ is_forward()
bool AtlasDetectorID::is_forward |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_hec() [1/2]
test if the id belongs to the HEC
◆ is_hec() [2/2]
test if the hash id belongs to the HEC
◆ is_hgtd() [1/2]
◆ is_hgtd() [2/2]
bool AtlasDetectorID::is_hgtd |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_indet() [1/2]
◆ is_indet() [2/2]
bool AtlasDetectorID::is_indet |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar() [1/2]
◆ is_lar() [2/2]
bool AtlasDetectorID::is_lar |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_dm()
bool AtlasDetectorID::is_lar_dm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_em() [1/2]
◆ is_lar_em() [2/2]
bool AtlasDetectorID::is_lar_em |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_fcal() [1/2]
◆ is_lar_fcal() [2/2]
bool AtlasDetectorID::is_lar_fcal |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_hec() [1/2]
◆ is_lar_hec() [2/2]
bool AtlasDetectorID::is_lar_hec |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lar_minifcal() [1/2]
◆ is_lar_minifcal() [2/2]
bool AtlasDetectorID::is_lar_minifcal |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lucid()
bool AtlasDetectorID::is_lucid |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lumi() [1/2]
◆ is_lumi() [2/2]
bool AtlasDetectorID::is_lumi |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lvl1_online()
bool AtlasDetectorID::is_lvl1_online |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_lvl1_trig_towers()
bool AtlasDetectorID::is_lvl1_trig_towers |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_mdt() [1/2]
◆ is_mdt() [2/2]
bool AtlasDetectorID::is_mdt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_minifcal() [1/2]
test if the id belongs to the MiniFCAL
◆ is_minifcal() [2/2]
test if the hash id belongs to the FCAL
◆ is_mm() [1/2]
◆ is_mm() [2/2]
bool AtlasDetectorID::is_mm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_muon() [1/2]
◆ is_muon() [2/2]
bool AtlasDetectorID::is_muon |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_pixel() [1/2]
◆ is_pixel() [2/2]
bool AtlasDetectorID::is_pixel |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_plr() [1/2]
◆ is_plr() [2/2]
bool AtlasDetectorID::is_plr |
( |
Identifier |
id | ) |
const |
|
inherited |
◆ is_rpc() [1/2]
◆ is_rpc() [2/2]
bool AtlasDetectorID::is_rpc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_sct() [1/2]
◆ is_sct() [2/2]
bool AtlasDetectorID::is_sct |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_stgc() [1/2]
◆ is_stgc() [2/2]
bool AtlasDetectorID::is_stgc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_supercell()
Test if the identifier represents a supercell.
◆ is_tgc() [1/2]
◆ is_tgc() [2/2]
bool AtlasDetectorID::is_tgc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tile() [1/3]
◆ is_tile() [2/3]
test if the id belongs to the Tiles
◆ is_tile() [3/3]
test if the hash id belongs to the Tiles
◆ is_tile_barrel()
test if the id belongs to the Tiles barrel
◆ is_tile_dm()
bool AtlasDetectorID::is_tile_dm |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_tile_extbarrel()
test if the id belongs to the Tiles extended barrel
◆ is_tile_gap()
test if the id belongs to the Tiles gap
◆ is_tile_gapscin()
◆ is_tile_negative()
test if the id belongs to the Tiles negative side
◆ is_tile_positive()
test if the id belongs to the Tiles positive side
◆ is_trt() [1/2]
◆ is_trt() [2/2]
bool AtlasDetectorID::is_trt |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ is_zdc()
bool AtlasDetectorID::is_zdc |
( |
Identifier |
id | ) |
const |
|
inlineinherited |
◆ lar()
◆ lar_dm()
◆ lar_em()
◆ lar_em_exp()
◆ lar_em_field_value()
int AtlasDetectorID::lar_em_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_exp()
◆ lar_fcal()
Identifier AtlasDetectorID::lar_fcal |
( |
void |
| ) |
const |
|
inherited |
◆ lar_fcal_exp()
◆ lar_fcal_field_value()
int AtlasDetectorID::lar_fcal_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_field_value()
int AtlasDetectorID::lar_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_hec()
Identifier AtlasDetectorID::lar_hec |
( |
void |
| ) |
const |
|
inherited |
◆ lar_hec_exp()
◆ lar_hec_field_value()
int AtlasDetectorID::lar_hec_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lar_lvl1()
Identifier AtlasDetectorID::lar_lvl1 |
( |
void |
| ) |
const |
|
inherited |
◆ lucid_exp()
◆ lucid_field_value()
int AtlasDetectorID::lucid_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ lumi()
◆ lumi_exp()
◆ lumi_field_value()
int AtlasDetectorID::lumi_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ mdt()
◆ mdt_field_value()
int AtlasDetectorID::mdt_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ minifcal_idHelper()
◆ mm()
◆ mm_field_value()
int AtlasDetectorID::mm_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ module()
Tile field values (NOT_VALID == invalid request)
◆ 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.
◆ muon()
◆ muon_exp()
◆ muon_field_value()
int AtlasDetectorID::muon_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ operator=()
◆ phi()
LAr field values (NOT_VALID == invalid request)
◆ phi0()
minimum LAr phi for this region
- Warning
- input = REGION ID !!
◆ phi_max()
max value of phi index (-999 == failure)
- Warning
- input = REGION ID !!
◆ phi_min()
min value of phi index (-999 == failure)
- Warning
- input = REGION ID !!
◆ phiGranularity()
LAr phi granularity (NOT_VALID == failure)
- Warning
- input = REGION ID !!
◆ pixel()
◆ pixel_exp()
◆ pixel_field_value()
int AtlasDetectorID::pixel_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ plr_field_value()
int AtlasDetectorID::plr_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ pos_neg()
LAr field values (NOT_VALID == invalid request)
- Warning
- corresponds to 'barrel_ec' for LArEM
◆ print()
◆ print_to_string()
or provide the printout in string form
Definition at line 408 of file AtlasDetectorID.cxx.
415 unsigned int max_index = (context) ? context->
end_index() : 999;
439 ATH_MSG_WARNING(__func__<<
":"<<__LINE__<<
" No dictionary could be associated to "<<
id);
442 if (dict->unpack(compact,
prefix, max_index,
" ",
result)) {
◆ reg_begin() [1/2]
begin iterator over subCalo sets of region Identifiers
- Parameters
-
◆ reg_begin() [2/2]
◆ reg_end() [1/2]
end iterator over subCalo sets of region Identifiers
- Parameters
-
◆ reg_end() [2/2]
◆ reg_range() [1/2]
◆ reg_range() [2/2]
id_range CaloCell_Base_ID::reg_range |
( |
void |
| ) |
const |
|
inherited |
◆ region()
LAr field values (NOT_VALID == invalid request)
- Warning
- no region for FCAL, is 'depth' for MiniFCAL
◆ region_id() [1/5]
Make a region ID from a cell ID
◆ region_id() [2/5]
create region id from 'global'(==full calo) hash id
◆ region_id() [3/5]
create region id from 'local'(==internal to sub calo) hash id and sub calorimeter
◆ region_id() [4/5]
Identifier CaloCell_Base_ID::region_id |
( |
const int |
subCalo, |
|
|
const int |
barec_or_posneg, |
|
|
const int |
sampling_or_fcalmodule, |
|
|
const int |
region_or_dummy |
|
) |
| const |
|
inherited |
Make a region ID from constituting fields and subCalo index; for (Mini)FCAL and Tiles, the last argument is not used
for Tiles, 'barec_or_posneg' corresponds to 'section', 'sampling_or_fcalmodule' corresponds to 'side'
◆ region_id() [5/5]
Identifier CaloCell_Base_ID::region_id |
( |
const int |
subCalo, |
|
|
const int |
barec_or_posneg, |
|
|
const int |
sampling_or_fcalmodule, |
|
|
const int |
region_or_dummy, |
|
|
bool |
checks |
|
) |
| const |
|
inherited |
◆ 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 206 of file AtlasDetectorID.cxx.
217 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()
Tile field values (NOT_VALID == invalid request)
◆ sampling()
LAr field values (NOT_VALID == invalid request)
- Warning
- corresponds 'module' for FCAL/MiniFCAL
◆ sct()
◆ sct_exp()
◆ sct_field_value()
int AtlasDetectorID::sct_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ section()
Tile field values (NOT_VALID == invalid request)
◆ 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 344 of file AtlasDetectorID.cxx.
◆ show_to_string()
or provide the printout in string form
Definition at line 350 of file AtlasDetectorID.cxx.
353 std::string
result(
"Unable to decode id");
354 unsigned int max_index = (context) ? context->
end_index() : 999;
384 if (dict->unpack(compact,
prefix, max_index, expId)) {
392 for (
unsigned int i = 0;
i < expId.fields(); ++
i) {
◆ side()
Tile field values (NOT_VALID == invalid request)
◆ stgc()
◆ stgc_field_value()
int AtlasDetectorID::stgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ sub_calo() [1/2]
returns an int taken from SUBCALO enum and describing the subCalo to which the Id belongs.
◆ sub_calo() [2/2]
returns an int taken from SUBCALO enum and describing the subCalo to which the hash Id belongs.
◆ subcalo_cell_hash() [1/2]
create hash id from 'global' cell id
- Returns
- subCalo
◆ subcalo_cell_hash() [2/2]
to translate a cell 'global' caloHash into a subCaloHash
- Returns
- subCalo
◆ subcalo_region_hash() [1/2]
create hash id from 'global' region id
- Returns
- subCalo
◆ subcalo_region_hash() [2/2]
to translate a region 'global' caloHash into a subCaloHash
- Returns
- subCalo
◆ subdet_context()
IdContext AtlasDetectorID::subdet_context |
( |
void |
| ) |
const |
|
inherited |
◆ tgc()
◆ tgc_field_value()
int AtlasDetectorID::tgc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ tile()
◆ tile_dm()
Identifier AtlasDetectorID::tile_dm |
( |
void |
| ) |
const |
|
inherited |
◆ tile_exp()
◆ tile_field_value()
int AtlasDetectorID::tile_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ tile_idHelper()
◆ to_range()
◆ tower()
Tile field values (NOT_VALID == invalid request)
◆ trt()
◆ trt_exp()
◆ trt_field_value()
int AtlasDetectorID::trt_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ zdc_exp()
◆ zdc_field_value()
int AtlasDetectorID::zdc_field_value |
( |
| ) |
const |
|
inlineprotectedinherited |
◆ ATLAS_THREAD_SAFE
std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT |
|
mutableprivateinherited |
◆ m_ALFA_ID
int AtlasDetectorID::m_ALFA_ID {1} |
|
privateinherited |
◆ m_atlas_dict
◆ m_BCM_ID
int AtlasDetectorID::m_BCM_ID {3} |
|
privateinherited |
◆ m_calo_dict
◆ m_CALO_ID
int AtlasDetectorID::m_CALO_ID {10} |
|
privateinherited |
◆ m_calo_side_impl
◆ m_caloNeighbours
◆ m_cell_hash_max
◆ m_cell_max
◆ m_cell_min
◆ m_cell_vec
std::vector<Identifier> CaloCell_Base_ID::m_cell_vec |
|
privateinherited |
◆ m_CSC_ID
int AtlasDetectorID::m_CSC_ID {1} |
|
privateinherited |
◆ m_det_impl
◆ m_DET_INDEX
◆ 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_emHelper
◆ m_fcalHelper
◆ 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_fwd_dict
◆ m_FWD_ID
int AtlasDetectorID::m_FWD_ID {13} |
|
privateinherited |
◆ m_fwd_part_impl
◆ m_hecHelper
◆ m_helper
◆ m_helpers
◆ 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_minifcalHelper
◆ m_MM_ID
int AtlasDetectorID::m_MM_ID {5} |
|
privateinherited |
◆ 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_nm
std::string AthMessaging::m_nm |
|
privateinherited |
◆ m_PIXEL_ID
int AtlasDetectorID::m_PIXEL_ID {1} |
|
privateinherited |
◆ m_quiet
bool AtlasDetectorID::m_quiet {} |
|
protectedinherited |
◆ m_reg_max
◆ m_reg_min
◆ m_region_hash_max
size_type CaloCell_Base_ID::m_region_hash_max |
|
privateinherited |
◆ m_region_vec
std::vector<Identifier> CaloCell_Base_ID::m_region_vec |
|
privateinherited |
◆ m_RPC_ID
int AtlasDetectorID::m_RPC_ID {2} |
|
privateinherited |
◆ m_SCT_ID
int AtlasDetectorID::m_SCT_ID {2} |
|
privateinherited |
◆ m_STGC_ID
int AtlasDetectorID::m_STGC_ID {4} |
|
privateinherited |
◆ m_SUBDET_INDEX
size_type AtlasDetectorID::m_SUBDET_INDEX {999} |
|
privateinherited |
◆ m_supercell
unsigned CaloCell_Base_ID::m_supercell |
|
privateinherited |
◆ m_TGC_ID
int AtlasDetectorID::m_TGC_ID {3} |
|
privateinherited |
◆ m_tile_dict
◆ m_tile_dm_field
◆ m_TILE_ID
int AtlasDetectorID::m_TILE_ID {5} |
|
privateinherited |
◆ m_tileHelper
◆ m_TRT_ID
int AtlasDetectorID::m_TRT_ID {3} |
|
privateinherited |
◆ m_ZDC_ID
int AtlasDetectorID::m_ZDC_ID {7} |
|
privateinherited |
The documentation for this class was generated from the following files:
bool is_pixel(Identifier id) const
std::atomic< MSG::Level > m_lvl
Current logging level.
const std::string & dict_tag(void) const
Access to the dictionary tag.
IdDictDictionary * m_muon_dict
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
bool is_forward(Identifier id) const
std::vector< unsigned int > m_muon_tech_bits
size_type lar_fcal_region_index() const
int region(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
IdDictFieldImplementation m_indet_part_impl
int tower(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
AtlasDetectorIDHelper * m_helper
bool is_lar_fcal(Identifier id) const
std::string show_to_string(void) const
bool is_lar(Identifier id) const
bool is_tile_gap(const Identifier &id) const
int muon_field_value() const
bool is_em_endcap_outer(const Identifier id) const
test if the id belongs to the EM Endcap outer wheel
size_type lvl1_region_index() const
int pos_neg(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
size_type end_index() const
int calo_field_value() const
int sample(const Identifier &id) const
int module(const Identifier id) const
module [1,3]
int depth(const Identifier id) const
depth [0,3]
void pack(int value, Identifier &id) const
IdDictDictionary * m_tile_dict
size_type pixel_region_index() const
bool is_tile_extbarrel(const Identifier &id) const
Helper class for LArHEC offline identifiers.
int sampling(const Identifier id) const
return sampling according to :
IMessageSvc * m_msgSvc
pointer to the message service
std::string m_dict_version
int get_nextInCalo(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
static constexpr value_type MAX_BIT
int calo_sample(const Identifier id) const
returns an int taken from Sampling enum and describing the subCalo to which the Id belongs.
size_type m_MUON_SUBDET_INDEX
int get_neighbours(const IdentifierHash id, const LArNeighbours::neighbourOption &option, std::vector< IdentifierHash > &neighbourList) const
access to hashes for neighbours return == 0 for neighbours found option = all2D,...
int m_LAR_FCAL_MODULE_INDEX
#define ATH_MSG_VERBOSE(x)
bool is_tile(const Identifier id) const
test if the id belongs to the Tiles
int module(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
int lar_field_value() const
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
int unpack(Identifier id) const
Identifier manipulation methods.
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
IMessageSvc * getMessageSvc(bool quiet=false)
IdDictField * find_field(const std::string &name) const
size_type mdt_region_index() const
bool is_lvl1_trig_towers(Identifier id) const
const LArFCAL_Base_ID * fcal_idHelper() const
access to FCAL idHelper
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
Identifier::size_type size_type
bool match(element_type value) const
The basic match operation.
const LArEM_Base_ID * em_idHelper() const
access to EM idHelper
Range::field m_tile_dm_field
static constexpr value_type ALL_BITS
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
void set_ored_field(const Range::field &ored_field)
msgSvc
Provide convenience handles for various services.
int sample(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
IdDictDictionary * m_calo_dict
bool m_is_initialized_from_dict
IdDictFieldImplementation m_lar_part_impl
Helper class for TileCal offline identifiers.
ExpandedIdentifier indet_exp(void) const
Detector systems:
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,...
const LArMiniFCAL_ID * m_minifcalHelper
IdDictFieldImplementation m_muon_mdt_impl
IdDictFieldImplementation m_lar_fcal_module_impl
CaloNeighbours * m_caloNeighbours
bool is_tile_dm(Identifier id) const
std::vector< IdDictRegion * > m_regions
bool m_isHighLuminosityLHC
int eta(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
IdDictDictionary * m_fwd_dict
IdentifierHash subcalo_cell_hash(const Identifier cellId, int &subCalo) const
create hash id from 'global' cell id
bool is_tile(Identifier id) const
const LArMiniFCAL_ID * minifcal_idHelper() const
access to MiniFCAL idHelper
bool is_lar_hec(Identifier id) const
const LArHEC_Base_ID * m_hecHelper
const Range::field & ored_field() const
Range::field m_lvl1_onl_field
bool do_neighbours() const
Check whether or not to init neighbours.
bool m_quiet
If true, suppress DEBUG/INFO messages.
MsgStream & msg() const
The standard message stream.
bool isEnumerated() const
const LArFCAL_Base_ID * m_fcalHelper
#define CALOSAMPLING(NAME, ISBARREL, ISENDCAP)
IdDictFieldImplementation m_muon_rpc_impl
std::vector< IdDictRegionEntry * > m_entries
bool is_calo(Identifier id) const
const std::string & file_name(void) const
Access to file name.
CaloCell_Base_ID(const LArEM_Base_ID *em_id, const LArHEC_Base_ID *hec_id, const LArFCAL_Base_ID *fcal_id, const LArMiniFCAL_ID *minifcal_id, const Tile_Base_ID *tile_id, bool supercell)
enumeration of samplings (i.e.layers) separately for various sub calorimeters
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
bool is_lar_minifcal(Identifier id) const
IdDictDictionary * m_indet_dict
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,...
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
size_type lar_em_region_index() const
static constexpr unsigned int getNumberOfSamplings()
Get number of available samplings.
int phi(const Identifier id) const
LAr field values (NOT_VALID == invalid request)
ExpandedIdentifier fwd_exp(void) 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,...
IdDictFieldImplementation m_muon_station_name_impl
Identifier cell_id(const int subCalo, const int barec_or_posneg, const int sampling_or_fcalmodule, const int region_or_dummy, const int eta, const int phi) const
Make a cell (== channel) ID from constituting fields and subCalo index; for (Mini)FCAL,...
bool is_em_endcap_inner(const Identifier id) const
test if the id belongs to the EM Endcap inner wheel
struct TBPatternUnitContext Muon
int get_neighbours(const IdentifierHash id, const LArNeighbours::neighbourOption &option, std::vector< IdentifierHash > &neighbourList) const
access to hashes for neighbours return == 0 for neighbours found option = all2D,...
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.
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
int side(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
bool is_muon(Identifier id) const
IdDictFieldImplementation m_det_impl
Data object for each calorimeter readout cell.
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
size_type rpc_region_index() const
bool is_em_barrel(const Identifier id) const
test if the id belongs to the EM barrel
ExpandedIdentifier lar_exp(void) const
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
#define ATH_MSG_WARNING(x)
std::string m_nm
Message source name.
int sampling(const Identifier id) const
return sampling [0,3] (only 0 for supercells)
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
const Tile_Base_ID * m_tileHelper
bool do_checks() const
Check whether or not to do checks for ids.
IdDictDictionary * m_lar_dict
unsigned long long value_type
bool is_lvl1_online(Identifier id) const
Helper class for LArEM offline identifiers.
static std::string getSamplingName(CaloSample theSample)
Returns a string (name) for each CaloSampling.
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
void initMessaging() const
Initialize our message level and MessageSvc.
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
bool is_tile_barrel(const Identifier &id) const
Test of an Identifier to see if it belongs to a particular part of the calorimeter.
Helper class for LArFCAL offline identifiers.
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.
std::vector< IdDictFieldImplementation > m_implementation
void add_value(element_type value)
const Tile_Base_ID * tile_idHelper() const
access to Tile idHelper
int get_prevInCalo(const IdentifierHash &id, std::vector< IdentifierHash > &neighbourList) const
constexpr std::initializer_list< int > Tile
const LArEM_Base_ID * m_emHelper
Range::field m_lvl1_field
int section(const Identifier id) const
Tile field values (NOT_VALID == invalid request)
const LArHEC_Base_ID * hec_idHelper() const
access to HEC idHelper
std::vector< IdDictRegion * > m_all_regions