ATLAS Offline Software
Classes | Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CaloLVL1_ID Class Reference

Helper class for offline TT identifiers. More...

#include <CaloLVL1_ID.h>

Inheritance diagram for CaloLVL1_ID:
Collaboration diagram for CaloLVL1_ID:

Classes

class  HashCalc
 small class holding the starting hash value, the min eta and the number of phi bins of each region More...
 

Public Types

typedef Identifier::size_type size_type
 
typedef std::vector< Identifier >::const_iterator id_iterator
 Type for iterators over identifiers. More...
 
typedef boost::iterator_range< id_iteratorid_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...
 

Public Member Functions

 CaloLVL1_ID (void)
 
virtual ~CaloLVL1_ID ()
 
Identifier tower_id (int pos_neg_z, int sampling, int region, int eta, int phi) const
 build a tower identifier More...
 
Identifier tower_id (int pos_neg_z, int sampling, int region, int eta, int phi, bool checks) const
 
Identifier tower_id (const Identifier regionId, int eta, int phi) const
 build a tower identifier More...
 
Identifier tower_id (const Identifier regionId, int eta, int phi, bool checks) const
 
Identifier tower_id (const Identifier layerId) const
 build a tower identifier More...
 
Identifier region_id (int pos_neg_z, int sampling, int region) const
 build a region (of towers) identifier More...
 
Identifier region_id (int pos_neg_z, int sampling, int region, bool checks) const
 
Identifier region_id (const Identifier tower_or_layerId) const
 build a region (of towers) identifier More...
 
Identifier layer_id (int pos_neg_z, int sampling, int region, int eta, int phi, int layer) const
 build a layer identifier More...
 
Identifier layer_id (int pos_neg_z, int sampling, int region, int eta, int phi, int layer, bool checks) const
 
Identifier layer_id (const Identifier towerId, int layer) const
 build a layer identifier More...
 
Identifier layer_id (const Identifier towerId, int layer, bool checks) const
 
IdContext region_context (void) const
 access to IdContext's which define which levels of fields are contained in the id More...
 
IdContext tower_context (void) const
 access to IdContext's which define which levels of fields are contained in the id More...
 
IdContext layer_context (void) const
 access to IdContext's which define which levels of fields are contained in the id 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...
 
Identifier region_id (IdentifierHash region_hash_id) const
 create region id from hash id More...
 
Identifier tower_id (IdentifierHash tower_hash_id) const
 create tower id from hash id More...
 
IdentifierHash tower_hash (Identifier towerId) const
 create hash id from tower id More...
 
IdentifierHash tower_hash_binary_search (Identifier towerId) const
 create hash id from tower id – method NOT optimised, please use tower_hash() above More...
 
virtual int initialize_from_dictionary (const IdDictMgr &dict_mgr)
 initialization from the identifier dictionary More...
 
size_type tower_hash_max (void) const
 tower hash table max size More...
 
size_type layer_hash_max (void) const
 layer hash table max size More...
 
size_type region_hash_max (void) const
 region hash table max size More...
 
id_iterator region_begin () const
 begin iterator over regions More...
 
id_iterator region_end () const
 end iterator over regions More...
 
id_range region_range () const
 range over regions More...
 
id_iterator tower_begin () const
 begin iterator over towers More...
 
id_iterator tower_end () const
 end iterator over towers More...
 
id_range tower_range () const
 range over towers More...
 
id_iterator layer_begin () const
 begin iterators over layers More...
 
id_iterator layer_end () const
 end iterators over layers More...
 
id_range layer_range () const
 range over layers More...
 
bool is_tile (const Identifier id) const
 Test wether given tower or layer is part of the Tile Calorimeter. More...
 
bool is_emb (const Identifier id) const
 Test wether given tower or layer is part of the EM barrel. More...
 
bool is_barrel_end (const Identifier id) const
 Test wether given tower or layer is part of the EM barrel END. More...
 
bool is_emec (const Identifier id) const
 Test wether given tower or layer is part of the EM end-cap. More...
 
bool is_hec (const Identifier id) const
 Test wether given tower or layer is part of the HEC. More...
 
bool is_fcal (const Identifier id) const
 Test wether given tower or layer is part of the FCAL. More...
 
int pos_neg_z (const Identifier id) const
 return pos_neg_z according to :
More...
 
int sampling (const Identifier id) const
 return sampling according to :
More...
 
int region (const Identifier id) const
 return region according to :
More...
 
int eta (const Identifier id) const
 return eta according to :
More...
 
int phi (const Identifier id) const
 return phi according to :
More...
 
int layer (const Identifier id) const
 return layer according to :
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_max (const Identifier regId) const
 min value of phi index (-999 == failure) More...
 
int layer_max (const Identifier regId) const
 max value of phi index (-999 == failure) More...
 
int get_prev_in_phi (const IdentifierHash &id, IdentifierHash &prev) const
 access to hashes for neighbours in phi – towers only (no extended) return == 0 for neighbours found
More...
 
int get_next_in_phi (const IdentifierHash &id, IdentifierHash &next) const
 access to hashes for neighbours in phi – towers only (no extended) return == 0 for neighbours found
More...
 
int get_prev_in_eta (const IdentifierHash &id, IdentifierHash &prev) const
 access to hashes for neighbours in eta – towers only (no extended) return == 0 for neighbours found
More...
 
int get_next_in_eta (const IdentifierHash &id, IdentifierHash &next) const
 access to hashes for neighbours in eta – towers only (no extended) return == 0 for neighbours found
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...
 

Private Types

enum  { NOT_VALID_HASH = 64000 }
 

Private Member Functions

int get_expanded_id (const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
 create expanded Identifier from Identifier (return == 0 for OK) More...
 
void tower_id_checks (int pos_neg_z, int sampling, int region, int eta, int phi) const
 
void tower_id_checks (const Identifier regionId, int eta, int phi) const
 
void region_id_checks (int pos_neg_z, int sampling, int region) const
 
void layer_id_checks (int pos_neg_z, int sampling, int region, int eta, int phi, int layer) const
 
void layer_id_checks (const Identifier towerId, int layer) const
 
int initLevelsFromDict (void)
 
int init_hashes (void)
 
int init_neighbors (void)
 
void initMessaging () const
 Initialize our message level and MessageSvc. More...
 

Private Attributes

size_type m_lvl1_region_index
 
size_type m_CALO_INDEX
 
size_type m_DETZSIDE_INDEX
 
size_type m_SAMPLING_INDEX
 
size_type m_REGION_INDEX
 
size_type m_ETA_INDEX
 
size_type m_PHI_INDEX
 
size_type m_LAYER_INDEX
 
const IdDictDictionarym_dict
 
MultiRange m_full_region_range
 
MultiRange m_full_tower_range
 
MultiRange m_full_layer_range
 
size_type m_tower_hash_max
 
size_type m_layer_hash_max
 
size_type m_region_hash_max
 
std::vector< Identifierm_tower_vec
 
std::vector< Identifierm_layer_vec
 
std::vector< Identifierm_region_vec
 
std::vector< unsigned short > m_prev_phi_vec
 
std::vector< unsigned short > m_next_phi_vec
 
std::vector< unsigned short > m_prev_eta_vec
 
std::vector< unsigned short > m_next_eta_vec
 
std::vector< HashCalcm_hash_calcs
 
IdDictFieldImplementation m_calo_impl
 
IdDictFieldImplementation m_lvl1_impl
 
IdDictFieldImplementation m_sampling_impl
 
IdDictFieldImplementation m_region_impl
 
IdDictFieldImplementation m_eta_impl
 
IdDictFieldImplementation m_phi_impl
 
IdDictFieldImplementation m_layer_impl
 
IdDictFieldImplementation m_pnz_reg_impl
 
std::string m_nm
 Message source name. More...
 
boost::thread_specific_ptr< MsgStream > m_msg_tls
 MsgStream instance (a std::cout like with print-out levels) More...
 
std::atomic< IMessageSvc * > m_imsg { nullptr }
 MessageSvc pointer. More...
 
std::atomic< MSG::Level > m_lvl { MSG::NIL }
 Current logging level. More...
 
std::atomic_flag m_initialized ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
 Messaging initialized (initMessaging) More...
 

setting pointer to the MessageService

enum  ID { ATLAS_ID = static_cast<Identifier::value_type>(0), MAX_BIT = Identifier::MAX_BIT, PIXEL_MASK = static_cast<Identifier::value_type>(0xFF), ALL_BITS = Identifier::ALL_BITS }
 
std::string m_dict_version
 
bool m_is_initialized_from_dict {}
 
size_type m_DET_INDEX {999}
 
size_type m_SUBDET_INDEX {999}
 
size_type m_MUON_SUBDET_INDEX {999}
 
int m_INDET_ID {2}
 
int m_LAR_ID {4}
 
int m_TILE_ID {5}
 
int m_MUON_ID {7}
 
int m_CALO_ID {10}
 
int m_PIXEL_ID {1}
 
int m_SCT_ID {2}
 
int m_TRT_ID {3}
 
int m_HGTD_ID {4}
 
int m_LUMI_ID {3}
 
int m_LUMI_PLR_ID {1}
 
int m_LAR_EM_ID {1}
 
int m_LAR_HEC_ID {2}
 
int m_LAR_FCAL_ID {3}
 
int m_LAR_FCAL_MODULE_INDEX {999}
 
int m_MDT_ID {0}
 
int m_CSC_ID {1}
 
int m_RPC_ID {2}
 
int m_TGC_ID {3}
 
int m_STGC_ID {4}
 
int m_MM_ID {5}
 
int m_FWD_ID {13}
 
int m_ALFA_ID {1}
 
int m_BCM_ID {3}
 
int m_LUCID_ID {5}
 
int m_ZDC_ID {7}
 
bool m_isHighLuminosityLHC {}
 
Range::field m_lvl1_field
 
Range::field m_lvl1_onl_field
 
Range::field m_lar_dm_field
 
Range::field m_tile_dm_field
 
IdDictDictionarym_atlas_dict {}
 
IdDictDictionarym_indet_dict {}
 
IdDictDictionarym_lar_dict {}
 
IdDictDictionarym_tile_dict {}
 
IdDictDictionarym_muon_dict {}
 
IdDictDictionarym_calo_dict {}
 
IdDictDictionarym_fwd_dict {}
 
AtlasDetectorIDHelperm_helper {}
 
IdDictFieldImplementation m_det_impl
 
IdDictFieldImplementation m_indet_part_impl
 
IdDictFieldImplementation m_calo_side_impl
 
IdDictFieldImplementation m_lar_part_impl
 
IdDictFieldImplementation m_lar_fcal_module_impl
 
IdDictFieldImplementation m_muon_station_name_impl
 
IdDictFieldImplementation m_muon_mdt_impl
 
IdDictFieldImplementation m_muon_rpc_impl
 
IdDictFieldImplementation m_fwd_part_impl
 
std::vector< unsigned int > m_muon_tech_bits
 
virtual void setMessageSvc (IMessageSvc *msgSvc) override
 
void set_quiet (bool quiet)
 Set flag for suppressing informational output. More...
 
bool m_do_checks {}
 Flag for subclasses to know whether or not to perform checks. More...
 
bool m_do_neighbours {true}
 Flag for subclasses to know whether or not to perform neighbour initialization. More...
 
IMessageSvc * m_msgSvc {}
 pointer to the message service More...
 
bool m_quiet {}
 If true, suppress DEBUG/INFO messages. More...
 
std::vector< std::string > m_dict_names
 List of dictionary names used by this helper. More...
 
std::vector< std::string > m_file_names
 List of dictionary file names used by this helper. More...
 
std::vector< std::string > m_dict_tags
 List of dictionary versions used by this helper. More...
 
virtual void setDictVersion (const IdDictMgr &dict_mgr, const std::string &name) override
 
std::string to_range (const ExpandedIdentifier &id) const
 
std::string fix_barrel_ec (const std::string &barrel_ec) const
 
ExpandedIdentifier indet_exp (void) const
 Detector systems: More...
 
ExpandedIdentifier lar_exp (void) const
 
ExpandedIdentifier tile_exp (void) const
 
ExpandedIdentifier muon_exp (void) const
 
ExpandedIdentifier calo_exp (void) const
 
ExpandedIdentifier fwd_exp (void) const
 
ExpandedIdentifier pixel_exp (void) const
 Inner Detector: More...
 
ExpandedIdentifier sct_exp (void) const
 
ExpandedIdentifier trt_exp (void) const
 
ExpandedIdentifier hgtd_exp (void) const
 
ExpandedIdentifier lumi_exp (void) const
 
ExpandedIdentifier lar_em_exp (void) const
 LAr. More...
 
ExpandedIdentifier lar_hec_exp (void) const
 
ExpandedIdentifier lar_fcal_exp (void) const
 
ExpandedIdentifier alfa_exp (void) const
 Forward. More...
 
ExpandedIdentifier bcm_exp (void) const
 
ExpandedIdentifier lucid_exp (void) const
 
ExpandedIdentifier zdc_exp (void) const
 
int indet_field_value () const
 Provide efficient access to individual field values, for subclass idhelpers. More...
 
int lar_field_value () const
 
int tile_field_value () const
 
int muon_field_value () const
 
int calo_field_value () const
 
int pixel_field_value () const
 
int sct_field_value () const
 
int trt_field_value () const
 
int hgtd_field_value () const
 
int lumi_field_value () const
 
int plr_field_value () const
 
int lar_em_field_value () const
 
int lar_hec_field_value () const
 
int lar_fcal_field_value () const
 
int mdt_field_value () const
 
int csc_field_value () const
 
int rpc_field_value () const
 
int tgc_field_value () const
 
int stgc_field_value () const
 
int mm_field_value () const
 
int forward_field_value () const
 
int alfa_field_value () const
 
int bcm_field_value () const
 
int lucid_field_value () const
 
int zdc_field_value () const
 
int register_dict_tag (const IdDictMgr &dict_mgr, const std::string &dict_name)
 Register the file and tag names for a particular IdDict dictionary. More...
 
bool reinitialize (const IdDictMgr &dict_mgr)
 Test whether an idhelper should be reinitialized based on the change of tags. More...
 

Detailed Description

Helper class for offline TT identifiers.

This class provides an interface to decode and generate offline identifiers for the Calorimeter Trigger Towers.

Definition and range of values for the elements of the identifier are (ATL-SOFT-2001-004):

element           range              meaning

DETZSIDE            +/-1             positive/negative
LVL1sampling     0                EM
"                1                Hadronic
region           [0,3]            4 regions of different eta/phi granularity
eta              [0,24]         region 0(|eta|<2.5), granularity = 0.1
"                [0,2]          region 1(2.5<|eta|<3.1), granularity = 0.2
"                0              region 2(3.1<|eta|<3.2), granularity = 0.1
"                [0,3]          region 3(3.2<|eta|<4.9), granularity = 0.4
phi              [0,63]         region 0(|eta|<2.5), granularity = 0.1
"                [0,31]         region 1(2.5<|eta|<3.1), granularity = 0.2
"                [0,31]         region 2(3.1<|eta|<3.2), granularity = 0.2
"                [0,15]         region 3(3.2<|eta|<4.9), granularity = 0.4
Added May 2003 : 'extended' identifiers include 'layer' information :
element           range              meaning

layer [0,3] 0==PS 1==Front 2==Middle 3==Back in regions 0-2 [0,1] 0== FCAL2, 1== FCAL3 in region 3
 
Author
F Ledroit

Definition at line 65 of file CaloLVL1_ID.h.

Member Typedef Documentation

◆ id_iterator

typedef std::vector<Identifier>::const_iterator CaloLVL1_ID::id_iterator

Type for iterators over identifiers.

Definition at line 152 of file CaloLVL1_ID.h.

◆ id_range

typedef boost::iterator_range<id_iterator> CaloLVL1_ID::id_range

Type for range over identifiers.

Definition at line 154 of file CaloLVL1_ID.h.

◆ size_type

Definition at line 69 of file CaloLVL1_ID.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
NOT_VALID_HASH 

Definition at line 320 of file CaloLVL1_ID.h.

320 {NOT_VALID_HASH = 64000};

◆ HelperType

enum AtlasDetectorID::HelperType
stronginherited

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.

60  {
61  Unimplemented = -1,
62  Silicon = 0,
63  Pixel, PLR, SCT, TRT,
64  //inherits from CaloIDHelper
65  LArEM, LArFCal, LArFCalSuperCell,
66  LArHEC, LArHEC_SuperCell, LARMiniFCal,
67  Tile, TileSuperCell,
68  //
69  //inherit from LArOnlineId
70  LArOnline, LArOnlineSuperCell,
71  //
72  LArElectrode, LArHVLine,
73  TileHardware, TileTestbeam,
74  CaloCell, CaloSuperCell,
75  CaloDM, CaloLvl1,
76  //inherit from JGTowerBase
77  GTower, JTower,
78  //
79  Muon,
80  LUCID, LUCID_Hardware,
81  Zdc,ZdcHardware,
82  TT
83  };

◆ ID

enum AtlasDetectorID::ID
privateinherited
Enumerator
ATLAS_ID 
MAX_BIT 
PIXEL_MASK 
ALL_BITS 

Definition at line 388 of file AtlasDetectorID.h.

388  { ATLAS_ID = static_cast<Identifier::value_type>(0),
390  // mask to distinguish a pixel id from lvl1 id (bit 1 set)
391  PIXEL_MASK = static_cast<Identifier::value_type>(0xFF),

Constructor & Destructor Documentation

◆ CaloLVL1_ID()

CaloLVL1_ID::CaloLVL1_ID ( void  )

Definition at line 24 of file CaloLVL1_ID.cxx.

24  :
26  , m_CALO_INDEX(999)
27  , m_DETZSIDE_INDEX(999)
28  , m_SAMPLING_INDEX(999)
29  , m_REGION_INDEX(999)
30  , m_ETA_INDEX(999)
31  , m_PHI_INDEX(999)
32  , m_LAYER_INDEX(999)
33  , m_dict(nullptr)
34  , m_tower_hash_max(0)
35  , m_layer_hash_max(0)
36  , m_region_hash_max(0)
37 
38 {
39 
40 }

◆ ~CaloLVL1_ID()

CaloLVL1_ID::~CaloLVL1_ID ( )
virtualdefault

Member Function Documentation

◆ alfa_exp()

ExpandedIdentifier AtlasDetectorID::alfa_exp ( void  ) const
inlineprotectedinherited

Forward.

Definition at line 583 of file AtlasDetectorID.h.

584 {
586  return (result << m_ALFA_ID);
587 }

◆ alfa_field_value()

int AtlasDetectorID::alfa_field_value ( ) const
inlineprotectedinherited

Definition at line 673 of file AtlasDetectorID.h.

673 {return (m_ALFA_ID);}

◆ bcm_exp()

ExpandedIdentifier AtlasDetectorID::bcm_exp ( void  ) const
inlineprotectedinherited

Definition at line 590 of file AtlasDetectorID.h.

591 {
593  return (result << m_BCM_ID);
594 }

◆ bcm_field_value()

int AtlasDetectorID::bcm_field_value ( ) const
inlineprotectedinherited

Definition at line 675 of file AtlasDetectorID.h.

675 {return (m_BCM_ID);}

◆ calo()

Identifier AtlasDetectorID::calo ( void  ) const
inherited

Definition at line 68 of file AtlasDetectorID.cxx.

68  {
69  Identifier result{0};
70  // Pack field
72  return result;
73 }

◆ calo_exp()

ExpandedIdentifier AtlasDetectorID::calo_exp ( void  ) const
inlineprotectedinherited

Definition at line 513 of file AtlasDetectorID.h.

514 {
516  return (result << m_CALO_ID);
517 }

◆ calo_field_value()

int AtlasDetectorID::calo_field_value ( ) const
inlineprotectedinherited

Definition at line 623 of file AtlasDetectorID.h.

623 {return (m_CALO_ID);}

◆ csc()

Identifier AtlasDetectorID::csc ( void  ) const
inherited

Definition at line 25 of file AtlasDetectorID.cxx.

25  {
26  return Identifier{};
27 }

◆ csc_field_value()

int AtlasDetectorID::csc_field_value ( ) const
inlineprotectedinherited

Definition at line 656 of file AtlasDetectorID.h.

656 {return (m_CSC_ID);}

◆ detsystem_context()

IdContext AtlasDetectorID::detsystem_context ( void  ) const
inherited

IdContext (indicates id length) for detector systems.

Definition at line 163 of file AtlasDetectorID.cxx.

163  {
164  ExpandedIdentifier id{};
165  return IdContext{id, 0, m_DET_INDEX};
166 }

◆ dict_names()

const std::vector< std::string > & AtlasDetectorID::dict_names ( void  ) const
inherited

Dictionary names.

Definition at line 448 of file AtlasDetectorID.cxx.

448  {
449  return m_dict_names;
450 }

◆ dict_tags()

const std::vector< std::string > & AtlasDetectorID::dict_tags ( void  ) const
inherited

Version tags for subdet dictionaries.

Definition at line 454 of file AtlasDetectorID.cxx.

454  {
455  return m_dict_tags;
456 }

◆ dictionaryVersion()

std::string AtlasDetectorID::dictionaryVersion ( void  ) const
overridevirtualinherited

Implements IdHelper.

Definition at line 266 of file AtlasDetectorID.cxx.

266  {
267  return m_dict_version;
268 }

◆ 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.

457  {
458  return m_do_checks;
459 }

◆ 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.

464  {
465  return m_do_neighbours;
466 }

◆ eta()

int CaloLVL1_ID::eta ( const Identifier  id) const
inline

return eta according to :

element           range              meaning

eta [0,24] region 0(|eta|<2.5), granularity = 0.1 " [0,2] region 1(2.5<|eta|<3.1), granularity = 0.2 " 0 region 2(3.1<|eta|<3.2), granularity = 0.1 " [0,3] region 3(3.2<|eta|<4.9), granularity = 0.4
failure returns 0
 

Definition at line 653 of file CaloLVL1_ID.h.

654 {
655  return (m_eta_impl.unpack(id));
656 }

◆ eta_max()

int CaloLVL1_ID::eta_max ( const Identifier  regId) const

max value of eta index (-999 == failure)

Warning
input = REGION ID !!

Definition at line 474 of file CaloLVL1_ID.cxx.

475 {
476  ExpandedIdentifier expId;
477  IdContext region_cntxt = region_context();
478  if(!get_expanded_id(regId, expId, &region_cntxt)) {
479  int result = -999;
480  for (unsigned int i = 0; i < m_full_tower_range.size(); ++i) {
481  const Range& range = m_full_tower_range[i];
482  if (range.match(expId)) {
483  const Range::field& eta_field = range[m_ETA_INDEX];
484  if (not eta_field.empty()) {
485  int etamax = eta_field.get_maximum();
486  if (result < etamax) result = etamax;
487  }
488  }
489  }
490  return (result);
491  }
492  return (-999); // default
493 }

◆ eta_min()

int CaloLVL1_ID::eta_min ( const Identifier  regId) const

min value of eta index (-999 == failure)

Warning
input = REGION ID !!

Definition at line 448 of file CaloLVL1_ID.cxx.

449 {
450  ExpandedIdentifier expId;
451  IdContext region_cntxt = region_context();
452  if(!get_expanded_id(regId, expId, &region_cntxt)) {
453  int result = -999;
454  for (unsigned int i = 0; i < m_full_tower_range.size(); ++i) {
455  const Range& range = m_full_tower_range[i];
456  if (range.match(expId)) {
457  const Range::field& eta_field = range[m_ETA_INDEX];
458  if (not eta_field.empty()) {
459  int etamin = eta_field.get_minimum();
460  if (-999 == result) {
461  result = etamin;
462  }
463  else {
464  if (etamin < result) result = etamin;
465  }
466  }
467  }
468  }
469  return (result);
470  }
471  return (-999);
472 }

◆ file_names()

const std::vector< std::string > & AtlasDetectorID::file_names ( void  ) const
inherited

File names for subdet dictionaries.

Definition at line 451 of file AtlasDetectorID.cxx.

451  {
452  return m_file_names;
453 }

◆ 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

Definition at line 671 of file AtlasDetectorID.h.

671 {return (m_FWD_ID);}

◆ fwd_exp()

ExpandedIdentifier AtlasDetectorID::fwd_exp ( void  ) const
inlineprotectedinherited

Definition at line 520 of file AtlasDetectorID.h.

521 {
523  return (result << m_FWD_ID);
524 }

◆ get_expanded_id()

int CaloLVL1_ID::get_expanded_id ( const Identifier id,
ExpandedIdentifier exp_id,
const IdContext context 
) const
private

create expanded Identifier from Identifier (return == 0 for OK)

Definition at line 586 of file CaloLVL1_ID.cxx.

587 {
588  // We assume that the context is >= region
589  exp_id.clear();
590  exp_id << calo_field_value()
591  << pos_neg_z(id)
592  << sampling(id)
593  << region(id);
594  if(context && context->end_index() >= m_ETA_INDEX) {
595  exp_id << eta(id);
596  if(context->end_index() >= m_PHI_INDEX) {
597  exp_id << phi(id);
598  if(context->end_index() >= m_LAYER_INDEX) {
599  exp_id << layer(id);
600  }
601  }
602  }
603  return (0);
604 }

◆ get_hash()

int CaloLVL1_ID::get_hash ( const Identifier id,
IdentifierHash hash_id,
const IdContext context = 0 
) const
virtual

create hash id from compact id (return == 0 for OK)

Reimplemented from AtlasDetectorID.

Definition at line 144 of file CaloLVL1_ID.cxx.

145 {
146  hash_id = 0;
147  int result = 1;
148 
149  size_t begin = (context) ? context->begin_index(): 0;
150  size_t end = (context) ? context->end_index() : 0;
151 
152  if (0 == begin) {
153  if (m_REGION_INDEX == end) {
154  Identifier redId = region_id (id);
155  std::vector<Identifier>::const_iterator it = std::lower_bound(m_region_vec.begin(),m_region_vec.end(),redId);
156  if ( it != m_region_vec.end() ){
157  hash_id = it - m_region_vec.begin();
158  result = 0;
159  }
160  }
161  else if (m_PHI_INDEX == end) {
162 
163  Identifier redId = tower_id (id);
164 
165  std::vector<Identifier>::const_iterator it = std::lower_bound(m_tower_vec.begin(),m_tower_vec.end(),redId);
166  if ( it != m_tower_vec.end() ){
167  hash_id = it - m_tower_vec.begin();
168  result = 0;
169  }
170  }
171  else if (m_LAYER_INDEX == end) {
172 
173  std::vector<Identifier>::const_iterator it = std::lower_bound(m_layer_vec.begin(),m_layer_vec.end(),id);
174  if ( it != m_layer_vec.end() ){
175  hash_id = it - m_layer_vec.begin();
176  result = 0;
177  }
178  }
179 
180  else {
181  std::string errorMessage =
182  "Error in CaloLVL1_ID::get_hash, invalid context ";
183  throw CaloID_Exception(errorMessage , 10);
184  }
185  }
186 
187  return (result);
188 }

◆ get_id()

int CaloLVL1_ID::get_id ( const IdentifierHash hash_id,
Identifier id,
const IdContext context = 0 
) const
virtual

create compact id from hash id (return == 0 for OK)

Reimplemented from AtlasDetectorID.

Definition at line 69 of file CaloLVL1_ID.cxx.

70 {
71  MsgStream log(m_msgSvc, "CaloLVL1_ID" );
72  std::stringstream strm;
73  std::string strg;
74  int result = 1;
75  id.clear();
76 
77  size_t begin = (context) ? context->begin_index(): 0;
78  // cannot get hash if end is 0:
79  size_t end = (context) ? context->end_index() : 0;
80 
81  if (0 == begin) {
82  if (m_REGION_INDEX == end) {
83  if (hash_id < (unsigned int)(m_region_vec.end() - m_region_vec.begin()))
84  {
85  id = m_region_vec[hash_id];
86  result = 0;
87  }
88  else
89  {
90  strm << hash_id;
91  strg = " hash_id out of range "+strm.str();
92  if(m_msgSvc)
93  {
94  log << MSG::ERROR << strg << endmsg;
95  }
96  else
97  {
98  std::cout << strg << std::endl;
99  }
100  }
101  }
102  else if (m_PHI_INDEX == end) {
103  if (hash_id < (unsigned int)(m_tower_vec.end() - m_tower_vec.begin())) {
104  id = m_tower_vec[hash_id];
105  result = 0;
106  }
107  else
108  {
109  strm << hash_id;
110  strg = " hash_id out of range "+strm.str();
111  if(m_msgSvc)
112  {
113  log << MSG::ERROR << strg << endmsg;
114  }
115  else
116  {
117  std::cout << strg << std::endl;
118  }
119  }
120  }
121  else if(m_LAYER_INDEX == end) {
122  if (hash_id < (unsigned int)(m_layer_vec.end() - m_layer_vec.begin())) {
123  id = m_layer_vec[hash_id];
124  result = 0;
125  }
126  else
127  {
128  strm << hash_id;
129  strg = " hash_id out of range "+strm.str();
130  if(m_msgSvc)
131  {
132  log << MSG::ERROR << strg << endmsg;
133  }
134  else
135  {
136  std::cout << strg << std::endl;
137  }
138  }
139  }
140  }
141  return(result);
142 }

◆ get_next_in_eta()

int CaloLVL1_ID::get_next_in_eta ( const IdentifierHash id,
IdentifierHash next 
) const

access to hashes for neighbours in eta – towers only (no extended) return == 0 for neighbours found

Definition at line 574 of file CaloLVL1_ID.cxx.

575 {
576  unsigned short index = id;
577  if (index < m_next_eta_vec.size()) {
578  if (m_next_eta_vec[index] == NOT_VALID_HASH) return (1);
580  return (0);
581  }
582  return (1);
583 }

◆ get_next_in_phi()

int CaloLVL1_ID::get_next_in_phi ( const IdentifierHash id,
IdentifierHash next 
) const

access to hashes for neighbours in phi – towers only (no extended) return == 0 for neighbours found

Definition at line 550 of file CaloLVL1_ID.cxx.

551 {
552  unsigned short index = id;
553  if (index < m_next_phi_vec.size()) {
554  if (m_next_phi_vec[index] == NOT_VALID_HASH) return (1);
556  return (0);
557  }
558  return (1);
559 }

◆ get_prev_in_eta()

int CaloLVL1_ID::get_prev_in_eta ( const IdentifierHash id,
IdentifierHash prev 
) const

access to hashes for neighbours in eta – towers only (no extended) return == 0 for neighbours found

Definition at line 562 of file CaloLVL1_ID.cxx.

563 {
564  unsigned short index = id;
565  if (index < m_prev_eta_vec.size()) {
566  if (m_prev_eta_vec[index] == NOT_VALID_HASH) return (1);
567  prev = m_prev_eta_vec[index];
568  return (0);
569  }
570  return (1);
571 }

◆ get_prev_in_phi()

int CaloLVL1_ID::get_prev_in_phi ( const IdentifierHash id,
IdentifierHash prev 
) const

access to hashes for neighbours in phi – towers only (no extended) return == 0 for neighbours found

Definition at line 538 of file CaloLVL1_ID.cxx.

539 {
540  unsigned short index = id;
541  if (index < m_prev_phi_vec.size()) {
542  if (m_prev_phi_vec[index] == NOT_VALID_HASH) return (1);
543  prev = m_prev_phi_vec[index];
544  return (0);
545  }
546  return (1);
547 }

◆ helper()

virtual HelperType AtlasDetectorID::helper ( ) const
inlinevirtualinherited

Type of helper, defaulted to 'Unimplemented'.

Reimplemented in SCT_ID, PLR_ID, and PixelID.

Definition at line 95 of file AtlasDetectorID.h.

95  {
97  }

◆ hgtd()

Identifier AtlasDetectorID::hgtd ( void  ) const
inherited

Definition at line 99 of file AtlasDetectorID.cxx.

99  {
100  Identifier result{0};
101  // Pack field
104  return result;
105 }

◆ hgtd_exp()

ExpandedIdentifier AtlasDetectorID::hgtd_exp ( void  ) const
inlineprotectedinherited

Definition at line 548 of file AtlasDetectorID.h.

549 {
551  return (result << m_HGTD_ID);
552 }

◆ hgtd_field_value()

int AtlasDetectorID::hgtd_field_value ( ) const
inlineprotectedinherited

Definition at line 635 of file AtlasDetectorID.h.

635 {return (m_HGTD_ID);}

◆ indet()

Identifier AtlasDetectorID::indet ( void  ) const
inherited

Detector systems:

Definition at line 40 of file AtlasDetectorID.cxx.

40  {
41  Identifier result{0};
42  // Pack field
44  return result;
45 }

◆ indet_exp()

ExpandedIdentifier AtlasDetectorID::indet_exp ( void  ) const
inlineprotectedinherited

Detector systems:

Definition at line 485 of file AtlasDetectorID.h.

486 {
488  return (result << m_INDET_ID);
489 }

◆ 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.

611 {return (m_INDET_ID);}

◆ init_hashes()

int CaloLVL1_ID::init_hashes ( void  )
private

Definition at line 939 of file CaloLVL1_ID.cxx.

940 {
941  MsgStream log(m_msgSvc, "CaloLVL1_ID" );
942  std::stringstream strm;
943  std::stringstream strm1;
944  std::stringstream strm2;
945  std::string strg;
946  std::string strg1;
947  std::string strg2;
948  // tower hash
951  unsigned int nids = 0;
952  std::set<Identifier> ids;
953  for (unsigned int i = 0; i < m_full_tower_range.size(); ++i) {
954  const Range& range = m_full_tower_range[i];
956  auto first = rit.begin();
957  auto last = rit.end();
958  for (; first != last; ++first) {
959  const ExpandedIdentifier& exp_id = (*first);
960  Identifier tow_id = tower_id ( exp_id[m_DETZSIDE_INDEX],
961  exp_id[m_SAMPLING_INDEX],
962  exp_id[m_REGION_INDEX] ,
963  exp_id[m_ETA_INDEX] ,
964  exp_id[m_PHI_INDEX] ) ;
965  if(!(ids.insert(tow_id)).second)
966  {
967  if(m_msgSvc)
968  {
969  log << MSG::ERROR << " init_hashes "
970  << " duplicated id for TT id. nids= " << nids
971  << " compact Id " << endmsg;
972  }
973  else
974  {
975  std::cout << " CaloLVL1_ID::init_hashes "
976  << " Error: duplicated id for TT id. nids= " << nids
977  << " compact Id " ;
978  (*first).show();
979  std::cout << " " << show_to_string(tow_id) << std::endl;
980  }
981  }
982  nids++;
983  }
984  }
985  if(ids.size() != m_tower_hash_max)
986  {
987  if( m_msgSvc)
988  {
989  log << MSG::ERROR << " init_hashes "
990  << " set size NOT EQUAL to hash max. size " << ids.size()
991  << " hash max " << m_tower_hash_max
992  << endmsg;
993  }
994  else
995  {
996  std::cout << " CaloLVL1_ID::init_hashes "
997  << " Error: set size NOT EQUAL to hash max. size " << ids.size()
998  << " hash max " << m_tower_hash_max
999  << std::endl;
1000  }
1001  return (1);
1002  }
1003 
1004  nids=0;
1005  std::set<Identifier>::const_iterator first = ids.begin();
1006  std::set<Identifier>::const_iterator last = ids.end();
1007  for (;first != last && nids < m_tower_vec.size(); ++first) {
1008  m_tower_vec[nids] = (*first) ;
1009  nids++;
1010  }
1011 
1012  // layer hash
1014  m_layer_vec.resize(m_layer_hash_max);
1015  nids = 0;
1016  ids.clear();
1017  for (unsigned int i = 0; i < m_full_layer_range.size(); ++i)
1018  {
1019  const Range& range = m_full_layer_range[i];
1021  auto first = rit.begin();
1022  auto last = rit.end();
1023  for (; first != last; ++first)
1024  {
1025  const ExpandedIdentifier& exp_id = (*first);
1026  Identifier lay_id = layer_id ( exp_id[m_DETZSIDE_INDEX],
1027  exp_id[m_SAMPLING_INDEX],
1028  exp_id[m_REGION_INDEX] ,
1029  exp_id[m_ETA_INDEX] ,
1030  exp_id[m_PHI_INDEX] ,
1031  exp_id[m_LAYER_INDEX] );
1032  if(!(ids.insert(lay_id)).second)
1033  {
1034  if(m_msgSvc)
1035  {
1036  log << MSG::ERROR << " init_hashes "
1037  << " duplicated id for extended TT id. nids= " << nids
1038  << " compact Id " << show_to_string(lay_id) << endmsg;
1039  }
1040  else
1041  {
1042  std::cout << " CaloLVL1_ID::init_hashes "
1043  << " Error: duplicated id for extended TT id. nids= " << nids
1044  << " compact Id " ;
1045  (*first).show();
1046  std::cout << show_to_string(lay_id) << std::endl;
1047  }
1048  }
1049  nids++;
1050  }
1051  }
1052  if(ids.size() != m_layer_hash_max)
1053  {
1054  if( m_msgSvc)
1055  {
1056  log << MSG::ERROR << " init_hashes "
1057  << " set size NOT EQUAL to hash max. size " << ids.size()
1058  << " hash max " << m_layer_hash_max
1059  << endmsg;
1060  }
1061  else
1062  {
1063  std::cout << " CaloLVL1_ID::init_hashes "
1064  << " Error: set size NOT EQUAL to hash max. size " << ids.size()
1065  << " hash max " << m_layer_hash_max
1066  << std::endl;
1067  }
1068  return (1);
1069  }
1070 
1071  nids=0;
1072  first = ids.begin();
1073  last = ids.end();
1074  for (;first != last && nids < m_layer_vec.size(); ++first) {
1075  m_layer_vec[nids] = (*first) ;
1076  nids++;
1077  }
1078 
1079 
1080  // region hash
1083  nids = 0;
1084  ids.clear();
1085  for (unsigned int i = 0; i < m_full_region_range.size(); ++i) {
1086  const Range& range = m_full_region_range[i];
1088  auto first = rit.begin();
1089  auto last = rit.end();
1090  for (; first != last; ++first) {
1091  const ExpandedIdentifier& exp_id = (*first);
1092  Identifier reg_id = region_id ( exp_id[m_DETZSIDE_INDEX],
1093  exp_id[m_SAMPLING_INDEX],
1094  exp_id[m_REGION_INDEX] );
1095  if(!(ids.insert(reg_id)).second)
1096  {
1097  if(m_msgSvc)
1098  {
1099  log << MSG::ERROR << " LArEM_ID::init_hashes "
1100  << " duplicated id for region id. nids= " << nids
1101  << " compact Id " << endmsg;
1102  }
1103  else
1104  {
1105  std::cout << " LArEM_ID::init_hashes "
1106  << " Error: duplicated id for region id. nids= " << nids
1107  << " compact Id " ;
1108  (*first).show();
1109  std::cout << " " << show_to_string(reg_id) << std::endl;
1110  std::cout << std::endl;
1111  }
1112  }
1113  nids++;
1114  }
1115  }
1116  if(ids.size() != m_region_hash_max)
1117  {
1118  if(m_msgSvc)
1119  {
1120  log << MSG::ERROR << " LArEM_ID::init_hashes "
1121  << " set size NOT EQUAL to region hash max. size " << ids.size()
1122  << " region hash max " << m_region_hash_max
1123  << endmsg;
1124  }
1125  else
1126  {
1127  std::cout << " LArEM_ID::init_hashes "
1128  << " Error: set size NOT EQUAL to region hash max. size " << ids.size()
1129  << " region hash max " << m_region_hash_max
1130  << std::endl;
1131  }
1132  return (1);
1133  }
1134  nids=0;
1135  first = ids.begin();
1136  last = ids.end();
1137  for (;first != last && nids < m_region_vec.size(); ++first) {
1138  m_region_vec[nids] = (*first) ;
1139  nids++;
1140  }
1141 
1142  return (0);
1143 }

◆ init_neighbors()

int CaloLVL1_ID::init_neighbors ( void  )
private

Definition at line 1147 of file CaloLVL1_ID.cxx.

1148 {
1149  MsgStream log(m_msgSvc, "CaloLVL1_ID" );
1150  // std::cout << " CaloLVL1_ID::init_neighbors " << std::endl;
1151  // std::cout << " m_tower_hash_max, NOT_VALID_HASH = " << m_tower_hash_max << " " << NOT_VALID_HASH << std::endl;
1152 
1157  for (unsigned int i = 0; i < m_full_tower_range.size(); ++i) {
1158  const Range& range = m_full_tower_range[i];
1160  const Range::field& eta_field = range[m_ETA_INDEX];
1161  const Range::field& phi_field = range[m_PHI_INDEX];
1162  auto first = rit.begin();
1163  auto last = rit.end();
1164  for (; first != last; ++first) {
1165  const ExpandedIdentifier& exp_id = (*first);
1166  ExpandedIdentifier::element_type previous_eta;
1168  ExpandedIdentifier::element_type previous_phi;
1170  bool peta = eta_field.get_previous(exp_id[m_ETA_INDEX], previous_eta);
1171  bool neta = eta_field.get_next (exp_id[m_ETA_INDEX], next_eta);
1172  bool pphi = phi_field.get_previous(exp_id[m_PHI_INDEX], previous_phi);
1173  bool nphi = phi_field.get_next (exp_id[m_PHI_INDEX], next_phi);
1174 
1175  IdContext tcontext = tower_context();
1176 
1177  // Get and save region id to speed things up
1178  Identifier reg_id = region_id ( exp_id[m_DETZSIDE_INDEX],
1179  exp_id[m_SAMPLING_INDEX],
1180  exp_id[m_REGION_INDEX] );
1181 
1182  // First get primary hash id
1183  IdentifierHash hash_id;
1184  Identifier id = tower_id (reg_id,
1185  exp_id[m_ETA_INDEX],
1186  exp_id[m_PHI_INDEX]);
1187  if (get_hash(id, hash_id,&tcontext))
1188  {
1189  if( m_msgSvc )
1190  {
1191  log << MSG::ERROR << " init_neighbors - unable to get hash, compact = " << endmsg;
1192  }
1193  else
1194  {
1195  std::cout << " CaloLVL1_ID::init_neighbors - unable to get hash, compact = ";
1196  exp_id.show();
1197  std::cout << std::endl;
1198  }
1199  return (1);
1200  }
1201 
1202  // index for the subsequent arrays
1203  unsigned short index = hash_id;
1204  assert (hash_id < m_prev_phi_vec.size());
1205  assert (hash_id < m_next_phi_vec.size());
1206  assert (hash_id < m_prev_eta_vec.size());
1207  assert (hash_id < m_next_eta_vec.size());
1208 
1209  if (pphi) {
1210  // Get previous phi hash id
1211  id = tower_id (reg_id,
1212  exp_id[m_ETA_INDEX],
1213  previous_phi);
1214  // forward to compact -> hash
1215  if (get_hash(id, hash_id,&tcontext))
1216  {
1217  if( m_msgSvc )
1218  {
1219  log << MSG::ERROR << " init_neighbors - unable to get previous phi hash, exp/compact " << endmsg;
1220  }
1221  else
1222  {
1223  std::cout << " CaloLVL1_ID::init_neighbors - unable to get previous phi hash, exp/compact ";
1224  exp_id.show();
1225  std::cout << " "
1226  << std::endl;
1227  }
1228  return (1);
1229  }
1230  m_prev_phi_vec[index] = hash_id;
1231  }
1232 
1233  if (nphi) {
1234  // Get next phi hash id
1235  id = tower_id (reg_id,
1236  exp_id[m_ETA_INDEX],
1237  next_phi);
1238  // forward to compact -> hash
1239  if (get_hash(id, hash_id,&tcontext))
1240  {
1241  if(m_msgSvc)
1242  {
1243  log << MSG::ERROR << " init_neighbors - unable to get next phi hash, exp/compact "<<endmsg;
1244  }
1245  else
1246  {
1247  std::cout << " CaloLVL1_ID::init_neighbors - unable to get next phi hash, exp/compact ";
1248  exp_id.show();
1249  std::cout << " "
1250  << std::endl;
1251  }
1252  return (1);
1253  }
1254  m_next_phi_vec[index] = hash_id;
1255  }
1256  if (peta) {
1257  // Get previous eta hash id
1258  id = tower_id (reg_id,
1259  previous_eta,
1260  exp_id[m_PHI_INDEX]);
1261  // forward to compact -> hash
1262  if (get_hash(id, hash_id,&tcontext))
1263  {
1264  if( m_msgSvc )
1265  {
1266  log << MSG::ERROR << " init_neighbors - unable to get previous eta hash, exp/compact "<< endmsg;
1267  }
1268  else
1269  {
1270  std::cout << " CaloLVL1_ID::init_neighbors - unable to get previous eta hash, exp/compact ";
1271  exp_id.show();
1272  std::cout << " "
1273  << std::endl;
1274  }
1275  return (1);
1276  }
1277  m_prev_eta_vec[index] = hash_id;
1278  }
1279 
1280  if (neta) {
1281  // Get next eta hash id
1282  id = tower_id (reg_id,
1283  next_eta,
1284  exp_id[m_PHI_INDEX]);
1285  // forward to compact -> hash
1286  if (get_hash(id, hash_id,&tcontext))
1287  {
1288  if( m_msgSvc )
1289  {
1290  log << MSG::ERROR << " init_neighbors - unable to get next eta hash, exp/compact ";
1291  }
1292  else
1293  {
1294  std::cout << " CaloLVL1_ID::init_neighbors - unable to get next eta hash, exp/compact ";
1295  exp_id.show();
1296  std::cout << " "
1297  << std::endl;
1298  }
1299  return (1);
1300  }
1301  m_next_eta_vec[index] = hash_id;
1302  } // end neta cond
1303  } // end loop on identifiers
1304  } // end loop on ranges
1305  return (0);
1306 }

◆ initialize_from_dictionary()

int CaloLVL1_ID::initialize_from_dictionary ( const IdDictMgr dict_mgr)
virtual

initialization from the identifier dictionary

Reimplemented from AtlasDetectorID.

Definition at line 193 of file CaloLVL1_ID.cxx.

194 {
195  MsgStream log(m_msgSvc, "CaloLVL1_ID" );
196  std::string strg = "initialize_from_dictionary";
197  if(m_msgSvc) {
198  log << MSG::INFO << strg << endmsg;
199  }
200  else {
201  std::cout << strg << std::endl;
202  }
203 
204  // Check whether this helper should be reinitialized
205  if (!reinitialize(dict_mgr)) {
206  if(m_msgSvc)log << MSG::DEBUG << "Request to reinitialize not satisfied - tags have not changed" << endmsg;
207  return (0);
208  }
209  else {
210  if(m_msgSvc)log << MSG::DEBUG << "(Re)initialize" << endmsg;
211  }
212 
213  std::stringstream strm;
214  std::stringstream strm1;
215  std::stringstream strm2;
216  std::string strg1;
217  std::string strg2;
218 
219  // init base object
220  if(AtlasDetectorID::initialize_from_dictionary(dict_mgr)) return (1);
221 
222  // Register version of the Calorimeter dictionary
223  if (register_dict_tag(dict_mgr, "Calorimeter")) return(1);
224 
225  m_dict = dict_mgr.find_dictionary ("Calorimeter");
226  if(!m_dict)
227  {
228  strg= " initialize_from_dict - cannot access LVL1Calorimeter dictionary ";
229  if(m_msgSvc) {
230  log << MSG::ERROR << strg << endmsg;
231  }
232  else
233  {
234  std::cout << strg << std::endl;
235  }
236  return(1);
237  }
238 
239  // Initialize the field indices
240  if(initLevelsFromDict()) return (1);
241 
242 
243  // Find values for the calo and LVL1 (neg) fields
244  int caloValue = -1;
245  if (m_dict->get_label_value("subdet", "Calorimeter", caloValue))
246  {
247  strm << m_dict->m_name;
248  strg= "Could not get value for label 'Calorimeter' of field 'subdet' in dictionary "+strm.str();
249  if(m_msgSvc)
250  {
251  log << MSG::ERROR << strg << endmsg;
252  }
253  else
254  {
255  std::cout << strg << std::endl;
256  }
257  return (1);
258  }
259 
260  int lvl1CaloValue = -1;
261  // negative half
262  // if (m_dict->get_label_value("DetZside", "negative_lvl1_side", lvl1CaloValue))
263  // positive half FLG 12 Jul 07: negative side -> problem for test beam
264  if (m_dict->get_label_value("DetZside", "positive_lvl1_side", lvl1CaloValue))
265  {
266  strm << m_dict->m_name;
267  // strg = " Could not get value for label 'negative_lvl1_side' of field 'DetZside in dictionary"+strm.str();
268  strg = " Could not get value for label 'positive_lvl1_side' of field 'DetZside in dictionary"+strm.str();
269  if(m_msgSvc)
270  {
271  log << MSG::ERROR << strg << endmsg;
272  }
273  else
274  {
275  std::cout << strg << std::endl;
276  }
277  return (1);
278  }
279 
280  // Set up id for region and range prefix
281  // NOTE: negative value is good enough to get multirange since the
282  // regions are symmetric in +/-eta
283  // FLG Jul 07: EXCEPT FOR CTB !!!!!!!!!!
284 
285  ExpandedIdentifier reg_id;
286  reg_id.add(caloValue);
287  reg_id.add(lvl1CaloValue);
288  Range prefix;
289  m_full_region_range = m_dict->build_multirange(reg_id, "Reg_Lvl1", prefix, "region");
290  m_full_tower_range = m_dict->build_multirange(reg_id, "Reg_Lvl1", prefix, "phi");
291  m_full_layer_range = m_dict->build_multirange(reg_id, "Reg_Lvl1", prefix);
292 
293  // Setup the hash tables
294  if(init_hashes()) return (1);
295 
296  // Setup hash tables for finding neighbors
297  if(init_neighbors()) return (1);
298 
299  strm1 << (std::string)m_full_tower_range;
300  strm2 << (std::string)m_full_layer_range;
301  strg = " CaloLVL1_ID::initialize_from_dict : ";
302  strg1 = " tower range -> "+strm1.str();
303  strg2 = " layer range -> "+strm2.str();
304  if(m_msgSvc)
305  {
306  log << MSG::DEBUG << strg << endmsg;
307  log << MSG::DEBUG << strg1 << endmsg;
308  log << MSG::DEBUG << strg2 << endmsg;
309  }
310  else
311  {
312  std::cout << strg << std::endl;
313  std::cout << strg1 << std::endl;
314  std::cout << strg2 << std::endl;
315  }
316 
317  //std::cout << " CaloLVL1_ID::initialize_from_dict : "
318  // << std::endl;
319  //std::cout << " tower range -> " << (std::string)m_full_tower_range
320  // << std::endl;
321  //std::cout << " layer range -> " << (std::string)m_full_layer_range
322  // << std::endl;
323 
324 
325  // Setup for hash calculation
326 
327  // Regions have uniform eta/phi granularity
328  // The lookup table only needs to contain the
329  // hash offset for each region, the first eta index
330  // and the number of phi cells.
331 
332  // The implementation requires:
333 
334  // 1) a lookup table for each region containing hash offset,
335  // etamin and nphi
336  // 2) a decoder to access the "index" corresponding to the
337  // pnz/samp/reg fields. These fields use 6 bits, so the
338  // vector has a length of 64 for 16 regions.
339 
340 
341  // Create decoder for fields pnz to region
343  m_lvl1_impl.bits() +
347  m_pnz_reg_impl.set_bits(bits, bits_offset);
348  int size = (1 << bits);
349 
350 // std::cout << "pnz_reg "
351 // << m_pnz_reg_impl.show_to_string() << std::endl;
352 // std::cout << "size " << size << std::endl;
353 
354 
355  // std::cout << "pnz_reg " << m_pnz_reg_impl.decode_index() << " "
356  // << (std::string)m_pnz_reg_impl.ored_field() << " "
357  // << std::hex << m_pnz_reg_impl.mask() << " "
358  // << m_pnz_reg_impl.zeroing_mask() << " "
359  // << std::dec << m_pnz_reg_impl.shift()
360  // << " " << m_pnz_reg_impl.bits() << " " <<m_pnz_reg_impl.bits_offset()
361  // << std::endl;
362 
363 
364  // Set up vector as lookup table for hash calculation.
365  m_hash_calcs.resize(size);
366 
367  for (unsigned int i = 0; i < m_region_hash_max; ++i) {
368 
369  Identifier regId = region_id(i) ;
370 
371  HashCalc hc;
372 
373  int etamin = eta_min(regId);
374  Identifier min = tower_id ( regId, etamin, 0);
376  hc.m_hash = min_hash;
377  hc.m_etamin = etamin;
378  hc.m_nphi = phi_max(min)+1 ;
380 
381  if (m_pnz_reg_impl.unpack(min) >= size)
382  {
383  strm << size;
384  strm1 << show_to_string(min);
385  strm2 << m_pnz_reg_impl.unpack(min);
386  strg = "Min > "+strm.str();
387  strg1= " "+strm1.str();
388  strg2= " "+strm2.str();
389  if(m_msgSvc)
390  {
391  log << MSG::DEBUG << strg << endmsg;
392  log << MSG::DEBUG << strg1 << endmsg;
393  log << MSG::DEBUG << strg2 << endmsg;
394  }
395  else
396  {
397  std::cout << strg << std::endl;
398  std::cout << strg1 << std::endl;
399  std::cout << strg2 << std::endl;
400  }
401  //std::cout << "min > " << size << " "
402  // << i << " "
403  // << show_to_string(min) << " "
404  // << m_pnz_reg_impl.unpack(min) << " "
405  // << std::endl;
406  }
407  }
408 
409  // Check hash calculation
410  for (unsigned int i = 0; i < m_tower_hash_max; ++i) {
411  Identifier id = tower_id(i);
412  if (tower_hash(id) != i)
413  {
414  strm << show_to_string(id);
415  strm1 << tower_hash(id);
416  strm2 << i;
417  strg = " ***** Error tower ranges, id, hash, i = "+strm.str();
418  strg1= " , "+strm1.str();
419  strg2= " , "+strm2.str();
420  if(m_msgSvc)
421  {
422  log << MSG::ERROR << strg << endmsg;
423  log << MSG::ERROR << strg1 << endmsg;
424  log << MSG::ERROR << strg2 << endmsg;
425  }
426  else
427  {
428  std::cout << strg << std::endl;
429  std::cout << strg1 << std::endl;
430  std::cout << strg2 << std::endl;
431  }
432 
433  //std::cout << "tower ranges, id, hash, i = "
434  // << show_to_string(id) << ", "
435  // << tower_hash(id) << ", "
436  // << i
437  // << std::endl;
438  }
439  }
440 
441  return 0;
442 
443 }

◆ initLevelsFromDict()

int CaloLVL1_ID::initLevelsFromDict ( void  )
private

Definition at line 693 of file CaloLVL1_ID.cxx.

694 {
695  MsgStream log(m_msgSvc, "CaloLVL1_ID" );
696  std::stringstream strm;
697  std::stringstream strm1;
698  std::stringstream strm2;
699  std::stringstream strm3;
700  std::stringstream strm4;
701  std::stringstream strm5;
702  std::stringstream strm6;
703  std::stringstream strm7;
704  std::string strg;
705  std::string strg1;
706  std::string strg2;
707  std::string strg3;
708  std::string strg4;
709  std::string strg5;
710  std::string strg6;
711  std::string strg7;
712  if(!m_dict)
713  {
714  strg= "initLevelsFromDict - dictionary NOT initialized ";
715  if(m_msgSvc) {
716  log << MSG::ERROR << strg << endmsg;
717  }
718  else
719  {
720  std::cout << strg << std::endl;
721  }
722  return (1);
723  }
724 
725  // Find out which identifier field corresponds to each level.
726 
727  m_CALO_INDEX = 999 ;
728  m_DETZSIDE_INDEX = 999 ;
729  m_SAMPLING_INDEX = 999 ;
730  m_REGION_INDEX = 999 ;
731  m_ETA_INDEX = 999 ;
732  m_PHI_INDEX = 999 ;
733  m_LAYER_INDEX = 999 ;
734 
735  // Save index to a LVL1 region for unpacking - search with region name
736  IdDictRegion* reg = m_dict->find_region("Lvl1_0");
737  if (reg)
738  {
740  }
741  else
742  {
743  strg = "initLevelsFromDict - unable to find lvl1 region ";
744  if(m_msgSvc) {
745  log << MSG::ERROR << strg << endmsg;
746  }
747  else
748  {
749  std::cout << strg << std::endl;
750  }
751  return (1);
752  }
753 
754  // Fing a LVL1 region
755  IdDictField* field = m_dict->find_field("subdet") ;
756  if (field) {
757  m_CALO_INDEX = field->m_index ;
758  }
759  else
760  {
761  strg= "initLevelsFromDict - unable to find 'subdet' field ";
762  if(m_msgSvc)
763  {
764  log << MSG::ERROR << strg << endmsg;
765  }
766  else
767  {
768  std::cout << strg << std::endl;
769  }
770  return (1);
771  }
772 
773  field = m_dict->find_field("DetZside") ;
774  if (field) {
775  m_DETZSIDE_INDEX = field->m_index ;
776  }
777  else
778  {
779  strg= "initLevelsFromDict - unable to find 'DetZside' field ";
780  if(m_msgSvc)
781  {
782  log << MSG::ERROR << strg << endmsg;
783  }
784  else
785  {
786  std::cout << strg << std::endl;
787  }
788  return (1);
789  }
790 
791  field = m_dict->find_field("LVL1sampling") ;
792  if (field) {
793  m_SAMPLING_INDEX = field->m_index ;
794  }
795  else
796  {
797  strg= "initLevelsFromDict - unable to find 'LVL1sampling' field ";
798  if(m_msgSvc) {
799  log << MSG::ERROR << strg << endmsg;
800  }
801  else
802  {
803  std::cout << strg << std::endl;
804  }
805  return (1);
806  }
807 
808  field = m_dict->find_field("region") ;
809  if (field) {
810  m_REGION_INDEX = field->m_index ;
811  }
812  else
813  {
814 
815  strg="initLevelsFromDict - unable to find 'region' field ";
816  if(m_msgSvc)
817  {
818  log << MSG::ERROR << strg << endmsg;
819  }
820  else
821  {
822  std::cout << strg << std::endl;
823  }
824  return (1);
825  }
826 
827  /* std::cout << "m_region= " << m_REGION_INDEX << std::endl; */
828 
829  field = m_dict->find_field("eta") ;
830  if (field) {
831  m_ETA_INDEX = field->m_index ;
832  }
833  else
834  {
835  strg= "initLevelsFromDict - unable to find 'eta' field ";
836  if(m_msgSvc)
837  {
838  log << MSG::ERROR << strg << endmsg;
839  }
840  else
841  {
842  std::cout << strg << std::endl;
843  }
844  return (1);
845  }
846 
847  field = m_dict->find_field("phi") ;
848  if (field) {
849  m_PHI_INDEX = field->m_index ;
850  }
851  else
852  {
853 
854  strg= "initLevelsFromDict - unable to find 'phi' field ";
855  if(m_msgSvc)
856  {
857  log << MSG::ERROR << strg << endmsg;
858  }
859  else
860  {
861  std::cout << strg << std::endl;
862  }
863  return (1);
864  }
865 
866  field = m_dict->find_field("layer") ;
867  if (field) {
868  m_LAYER_INDEX = field->m_index ;
869  }
870  else
871  {
872  strg= "initLevelsFromDict - unable to find 'layer' field ";
873  if(m_msgSvc) {
874  log << MSG::ERROR << strg << endmsg;
875  }
876  else
877  {
878  std::cout << strg << std::endl;
879  }
880  return (1);
881  }
882 
883  // Set the field implementations
884 
886 
887  m_calo_impl = region.m_implementation[m_CALO_INDEX];
888  m_lvl1_impl = region.m_implementation[m_DETZSIDE_INDEX];
889  m_sampling_impl = region.m_implementation[m_SAMPLING_INDEX];
890  m_region_impl = region.m_implementation[m_REGION_INDEX];
891  m_eta_impl = region.m_implementation[m_ETA_INDEX];
892  m_phi_impl = region.m_implementation[m_PHI_INDEX];
893  m_layer_impl = region.m_implementation[m_LAYER_INDEX];
894 
895  if (!m_quiet) {
896  strm1 << m_calo_impl.show_to_string();
897  strm2 << m_lvl1_impl.show_to_string();
898  strm3 << m_sampling_impl.show_to_string();
899  strm4 << m_region_impl.show_to_string();
900  strm5 << m_eta_impl.show_to_string();
901  strm6 << m_phi_impl.show_to_string();
902  strm7 << m_layer_impl.show_to_string();
903  strg = "decode index and bit fields for each level: ";
904  strg1= "calo "+strm1.str();
905  strg2= "detzside "+strm2.str();
906  strg3= "samp "+strm3.str();
907  strg4= "reg "+strm4.str();
908  strg5= "eta "+strm5.str();
909  strg6= "phi "+strm6.str();
910  strg7= "layer "+strm7.str();
911  if(m_msgSvc)
912  {
913  log << MSG::DEBUG << strg << endmsg;
914  log << MSG::DEBUG << strg1 << endmsg;
915  log << MSG::DEBUG << strg2 << endmsg;
916  log << MSG::DEBUG << strg3 << endmsg;
917  log << MSG::DEBUG << strg4 << endmsg;
918  log << MSG::DEBUG << strg5 << endmsg;
919  log << MSG::DEBUG << strg6 << endmsg;
920  log << MSG::DEBUG << strg7 << endmsg;
921  }
922  else
923  {
924  std::cout << strg << std::endl;
925  std::cout << strg1 << std::endl;
926  std::cout << strg2 << std::endl;
927  std::cout << strg3 << std::endl;
928  std::cout << strg4 << std::endl;
929  std::cout << strg5 << std::endl;
930  std::cout << strg6 << std::endl;
931  std::cout << strg7 << std::endl;
932  }
933  }
934 
935  return(0) ;
936 }

◆ 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.

40 {
42  m_lvl = m_imsg ?
43  static_cast<MSG::Level>( m_imsg.load()->outputLevel(m_nm) ) :
44  MSG::INFO;
45 }

◆ is_alfa()

bool AtlasDetectorID::is_alfa ( Identifier  id) const
inlineinherited

Definition at line 941 of file AtlasDetectorID.h.

942 {
943  bool result = false;
944  if(is_forward(id)) {
945  result = (abs(m_lar_part_impl.unpack(id)) == m_ALFA_ID);
946  }
947  return result;
948 }

◆ is_barrel_end()

bool CaloLVL1_ID::is_barrel_end ( const Identifier  id) const
inline

Test wether given tower or layer is part of the EM barrel END.

Warning
does NOT take as input a REGION identifier

Definition at line 690 of file CaloLVL1_ID.h.

691 {
692  return (is_lvl1_trig_towers(id) && region(id) == 0 && sampling(id) == 0 && eta(id) == 14);
693 }

◆ is_bcm()

bool AtlasDetectorID::is_bcm ( Identifier  id) const
inlineinherited

Definition at line 951 of file AtlasDetectorID.h.

952 {
953  bool result = false;
954  if(is_forward(id)) {
955  result = (abs(m_lar_part_impl.unpack(id)) == m_BCM_ID);
956  }
957  return result;
958 }

◆ is_calo() [1/2]

bool AtlasDetectorID::is_calo ( const ExpandedIdentifier id) const
inherited

Definition at line 281 of file AtlasDetectorID.cxx.

281  {
282  return id.fields() > 0 && id[0] == m_CALO_ID;
283 }

◆ is_calo() [2/2]

bool AtlasDetectorID::is_calo ( Identifier  id) const
inlineinherited

Definition at line 707 of file AtlasDetectorID.h.

708 {
709  return (m_det_impl.unpack(id) == m_CALO_ID);
710 }

◆ is_csc() [1/2]

bool AtlasDetectorID::is_csc ( const ExpandedIdentifier id) const
inherited

Definition at line 323 of file AtlasDetectorID.cxx.

323  {
324  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_CSC_ID;
325 }

◆ is_csc() [2/2]

bool AtlasDetectorID::is_csc ( Identifier  id) const
inlineinherited

Definition at line 891 of file AtlasDetectorID.h.

892 {
893  bool result = false;
894  if (!is_muon(id)) return false;
895  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
896  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
897  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasCSC));
898  return result;
899 }

◆ is_emb()

bool CaloLVL1_ID::is_emb ( const Identifier  id) const
inline

Test wether given tower or layer is part of the EM barrel.

Warning
does NOT take as input a REGION identifier
excluding 'barrel end'!

Definition at line 684 of file CaloLVL1_ID.h.

685 {
686  return (is_lvl1_trig_towers(id) && region(id) == 0 && sampling(id) == 0 && eta(id) < 14);
687 }

◆ is_emec()

bool CaloLVL1_ID::is_emec ( const Identifier  id) const
inline

Test wether given tower or layer is part of the EM end-cap.

Warning
does NOT take as input a REGION identifier

Definition at line 696 of file CaloLVL1_ID.h.

697 {
698  return (is_lvl1_trig_towers(id) && sampling(id) == 0 &&
699  ((region(id) == 0 && eta(id) > 14) || region(id) == 1 || region(id) == 2 ));
700 }

◆ is_fcal()

bool CaloLVL1_ID::is_fcal ( const Identifier  id) const
inline

Test wether given tower or layer is part of the FCAL.

Warning
does NOT take as input a REGION identifier

Definition at line 710 of file CaloLVL1_ID.h.

711 {
712  return (is_lvl1_trig_towers(id) && region(id) == 3 );
713 }

◆ is_forward()

bool AtlasDetectorID::is_forward ( Identifier  id) const
inlineinherited

Definition at line 935 of file AtlasDetectorID.h.

936 {
937  return (m_det_impl.unpack(id) == m_FWD_ID);
938 }

◆ is_hec()

bool CaloLVL1_ID::is_hec ( const Identifier  id) const
inline

Test wether given tower or layer is part of the HEC.

Warning
does NOT take as input a REGION identifier

Definition at line 703 of file CaloLVL1_ID.h.

704 {
705  return (is_lvl1_trig_towers(id) && sampling(id) == 1 &&
706  ((region(id) == 0 && eta(id) > 14) || region(id) == 1 || region(id) == 2 ));
707 }

◆ is_hgtd() [1/2]

bool AtlasDetectorID::is_hgtd ( const ExpandedIdentifier id) const
inherited

Definition at line 294 of file AtlasDetectorID.cxx.

294  {
295  return is_indet(id) && id.fields() > 1 && id[1] == m_HGTD_ID;
296 }

◆ is_hgtd() [2/2]

bool AtlasDetectorID::is_hgtd ( Identifier  id) const
inlineinherited

Definition at line 794 of file AtlasDetectorID.h.

795 {
796  bool result = false;
797  // Must check is_pixel to allow for special bits
798  // (don't need this check for 64-bit identifier, but leave it in for now)
799  if(is_indet(id) && !is_pixel(id)) {
801  }
802  return result;
803 }

◆ is_indet() [1/2]

bool AtlasDetectorID::is_indet ( const ExpandedIdentifier id) const
inherited

Definition at line 269 of file AtlasDetectorID.cxx.

269  {
270  return id.fields() > 0 && id[0] == m_INDET_ID;
271 }

◆ is_indet() [2/2]

bool AtlasDetectorID::is_indet ( Identifier  id) const
inlineinherited

Definition at line 683 of file AtlasDetectorID.h.

684 {
685  return (m_det_impl.unpack(id) == m_INDET_ID);
686 }

◆ is_lar() [1/2]

bool AtlasDetectorID::is_lar ( const ExpandedIdentifier id) const
inherited

Definition at line 272 of file AtlasDetectorID.cxx.

272  {
273  return id.fields() > 0 && id[0] == m_LAR_ID;
274 }

◆ is_lar() [2/2]

bool AtlasDetectorID::is_lar ( Identifier  id) const
inlineinherited

Definition at line 689 of file AtlasDetectorID.h.

690 {
691  return (m_det_impl.unpack(id) == m_LAR_ID);
692 }

◆ is_lar_dm()

bool AtlasDetectorID::is_lar_dm ( Identifier  id) const
inlineinherited

LAr/Tile dead material:

Definition at line 736 of file AtlasDetectorID.h.

737 {
738  bool result = false;
739  if (is_calo(id)) {
740  int temp = m_calo_side_impl.unpack(id);
741  result = (m_lar_dm_field.match(temp));
742  }
743  return result;
744 }

◆ is_lar_em() [1/2]

bool AtlasDetectorID::is_lar_em ( const ExpandedIdentifier id) const
inherited

Definition at line 304 of file AtlasDetectorID.cxx.

304  {
305  return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_EM_ID;
306 }

◆ is_lar_em() [2/2]

bool AtlasDetectorID::is_lar_em ( Identifier  id) const
inlineinherited

Definition at line 818 of file AtlasDetectorID.h.

819 {
820  bool result = false;
821  if(is_lar(id)) {
822  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_EM_ID);
823  }
824  return result;
825 }

◆ is_lar_fcal() [1/2]

bool AtlasDetectorID::is_lar_fcal ( const ExpandedIdentifier id) const
inherited

Definition at line 311 of file AtlasDetectorID.cxx.

311  {
312  return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_FCAL_ID;
313 }

◆ is_lar_fcal() [2/2]

bool AtlasDetectorID::is_lar_fcal ( Identifier  id) const
inlineinherited

Definition at line 839 of file AtlasDetectorID.h.

840 {
841  bool result = false;
842  if(is_lar(id)) {
843  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_FCAL_ID);
844  }
845  return result;
846 }

◆ is_lar_hec() [1/2]

bool AtlasDetectorID::is_lar_hec ( const ExpandedIdentifier id) const
inherited

Definition at line 307 of file AtlasDetectorID.cxx.

307  {
308  return is_lar(id) && id.fields() > 1 && std::abs(id[1]) == m_LAR_HEC_ID;
309 }

◆ is_lar_hec() [2/2]

bool AtlasDetectorID::is_lar_hec ( Identifier  id) const
inlineinherited

Definition at line 829 of file AtlasDetectorID.h.

830 {
831  bool result = false;
832  if(is_lar(id)) {
833  result = (abs(m_lar_part_impl.unpack(id)) == m_LAR_HEC_ID);
834  }
835  return result;
836 }

◆ is_lar_minifcal() [1/2]

bool AtlasDetectorID::is_lar_minifcal ( const ExpandedIdentifier id) const
inherited

Definition at line 315 of file AtlasDetectorID.cxx.

315  {
316  return is_lar_fcal(id) && id.fields() > 3 &&std::abs(id[3]) == 0;
317 }

◆ is_lar_minifcal() [2/2]

bool AtlasDetectorID::is_lar_minifcal ( Identifier  id) const
inlineinherited

Definition at line 849 of file AtlasDetectorID.h.

850 {
851  bool result = false;
852  if(is_lar_fcal(id)) {
853  result = (m_lar_fcal_module_impl.unpack(id) == 0);
854  }
855  return result;
856 }

◆ is_lucid()

bool AtlasDetectorID::is_lucid ( Identifier  id) const
inlineinherited

Definition at line 961 of file AtlasDetectorID.h.

962 {
963  bool result = false;
964  if(is_forward(id)) {
965  result = (abs(m_lar_part_impl.unpack(id)) == m_LUCID_ID);
966  }
967  return result;
968 }

◆ is_lumi() [1/2]

bool AtlasDetectorID::is_lumi ( const ExpandedIdentifier id) const
inherited

Definition at line 297 of file AtlasDetectorID.cxx.

297  {
298  return is_indet(id) && id.fields() > 1 && id[1] == m_LUMI_ID;
299 }

◆ is_lumi() [2/2]

bool AtlasDetectorID::is_lumi ( Identifier  id) const
inlineinherited

Definition at line 806 of file AtlasDetectorID.h.

807 {
808  bool result = false;
809  // Must check is_pixel to allow for special bits
810  // (don't need this check for 64-bit identifier, but leave it in for now)
811  if(is_indet(id) && !is_pixel(id)) {
813  }
814  return result;
815 }

◆ is_lvl1_online()

bool AtlasDetectorID::is_lvl1_online ( Identifier  id) const
inlineinherited

Definition at line 724 of file AtlasDetectorID.h.

725 {
726  bool result = false;
727  if (is_calo(id)) {
728  int temp = m_calo_side_impl.unpack(id);
729  result = (m_lvl1_onl_field.match(temp));
730  }
731  return result;
732 }

◆ is_lvl1_trig_towers()

bool AtlasDetectorID::is_lvl1_trig_towers ( Identifier  id) const
inlineinherited

Definition at line 713 of file AtlasDetectorID.h.

714 {
715  bool result = false;
716  if (is_calo(id)) {
717  int temp = m_calo_side_impl.unpack(id);
718  result = (m_lvl1_field.match(temp));
719  }
720  return result;
721 }

◆ is_mdt() [1/2]

bool AtlasDetectorID::is_mdt ( const ExpandedIdentifier id) const
inherited

Definition at line 319 of file AtlasDetectorID.cxx.

319  {
320  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_MDT_ID;
321 }

◆ is_mdt() [2/2]

bool AtlasDetectorID::is_mdt ( Identifier  id) const
inlineinherited

Definition at line 859 of file AtlasDetectorID.h.

860 {
861  bool result = false;
862  if (!is_muon(id)) return false;
863  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
864  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
865  // MDT and RPC can only be destinguished by the additional bit in the ID
866  // since the station names are ambiguous
867  if (is_muon(id) && ((techBit == AtlasDetDescr::fAtlasMDT)
868  || (techBit == AtlasDetDescr::fAtlasRPC))) {
870  }
871  return result;
872 }

◆ is_mm() [1/2]

bool AtlasDetectorID::is_mm ( const ExpandedIdentifier id) const
inherited

Definition at line 339 of file AtlasDetectorID.cxx.

339  {
340  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_MM_ID;
341 }

◆ is_mm() [2/2]

bool AtlasDetectorID::is_mm ( Identifier  id) const
inlineinherited

Definition at line 913 of file AtlasDetectorID.h.

914 {
915  bool result = false;
916  if (!is_muon(id)) return false;
917  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
918  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
919  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasMM));
920  return result;
921 }

◆ is_muon() [1/2]

bool AtlasDetectorID::is_muon ( const ExpandedIdentifier id) const
inherited

Definition at line 278 of file AtlasDetectorID.cxx.

278  {
279  return id.fields() > 0 && id[0] == m_MUON_ID;
280 }

◆ is_muon() [2/2]

bool AtlasDetectorID::is_muon ( Identifier  id) const
inlineinherited

Definition at line 701 of file AtlasDetectorID.h.

702 {
703  return (m_det_impl.unpack(id) == m_MUON_ID);
704 }

◆ is_pixel() [1/2]

bool AtlasDetectorID::is_pixel ( const ExpandedIdentifier id) const
inherited

Definition at line 284 of file AtlasDetectorID.cxx.

284  {
285  return is_indet(id) && id.fields() > 1 && id[1] == m_PIXEL_ID;
286 }

◆ is_pixel() [2/2]

bool AtlasDetectorID::is_pixel ( Identifier  id) const
inlineinherited

Definition at line 760 of file AtlasDetectorID.h.

761 {
762  bool result = false;
763  if(is_indet(id)) {
765  }
766  return result;
767 }

◆ is_plr() [1/2]

bool AtlasDetectorID::is_plr ( const ExpandedIdentifier id) const
inherited

Definition at line 300 of file AtlasDetectorID.cxx.

300  {
301  return is_lumi(id) && id.fields() > 2 && id[2] == m_LUMI_PLR_ID;
302 }

◆ is_plr() [2/2]

bool AtlasDetectorID::is_plr ( Identifier  id) const
inherited

◆ is_rpc() [1/2]

bool AtlasDetectorID::is_rpc ( const ExpandedIdentifier id) const
inherited

Definition at line 327 of file AtlasDetectorID.cxx.

327  {
328  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_RPC_ID;
329 }

◆ is_rpc() [2/2]

bool AtlasDetectorID::is_rpc ( Identifier  id) const
inlineinherited

Definition at line 875 of file AtlasDetectorID.h.

876 {
877  bool result = false;
878  if (!is_muon(id)) return false;
879  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
880  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
881  // MDT and RPC can only be destinguished by the additional bit in the ID
882  // since the station names are ambiguous
883  if (is_muon(id) && ((techBit == AtlasDetDescr::fAtlasMDT)
884  || (techBit == AtlasDetDescr::fAtlasRPC))) {
886  }
887  return result;
888 }

◆ is_sct() [1/2]

bool AtlasDetectorID::is_sct ( const ExpandedIdentifier id) const
inherited

Definition at line 288 of file AtlasDetectorID.cxx.

288  {
289  return is_indet(id) && id.fields() > 1 && id[1] == m_SCT_ID;
290 }

◆ is_sct() [2/2]

bool AtlasDetectorID::is_sct ( Identifier  id) const
inlineinherited

Definition at line 770 of file AtlasDetectorID.h.

771 {
772  bool result = false;
773  // Must check is_pixel to allow for special bits
774  // (don't need this check for 64-bit identifier, but leave it in for now)
775  if(is_indet(id) && !is_pixel(id)) {
777  }
778  return result;
779 }

◆ is_stgc() [1/2]

bool AtlasDetectorID::is_stgc ( const ExpandedIdentifier id) const
inherited

Definition at line 335 of file AtlasDetectorID.cxx.

335  {
336  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_STGC_ID;
337 }

◆ is_stgc() [2/2]

bool AtlasDetectorID::is_stgc ( Identifier  id) const
inlineinherited

Definition at line 924 of file AtlasDetectorID.h.

925 {
926  bool result = false;
927  if (!is_muon(id)) return false;
928  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
929  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
930  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasSTGC));
931  return result;
932 }

◆ is_tgc() [1/2]

bool AtlasDetectorID::is_tgc ( const ExpandedIdentifier id) const
inherited

Definition at line 331 of file AtlasDetectorID.cxx.

331  {
332  return id.fields() > 4 && id[0] == m_MUON_ID && id[4] == m_TGC_ID;
333 }

◆ is_tgc() [2/2]

bool AtlasDetectorID::is_tgc ( Identifier  id) const
inlineinherited

Definition at line 902 of file AtlasDetectorID.h.

903 {
904  bool result = false;
905  if (!is_muon(id)) return false;
906  unsigned int stationNameIndex = m_muon_station_name_impl.unpack(id);
907  unsigned int techBit = m_muon_tech_bits[stationNameIndex];
908  result = (is_muon(id) && (techBit == AtlasDetDescr::fAtlasTGC));
909  return result;
910 }

◆ is_tile() [1/2]

bool AtlasDetectorID::is_tile ( const ExpandedIdentifier id) const
inherited

Definition at line 275 of file AtlasDetectorID.cxx.

275  {
276  return id.fields() > 0 && id[0] == m_TILE_ID;
277 }

◆ is_tile() [2/2]

bool CaloLVL1_ID::is_tile ( const Identifier  id) const
inline

Test wether given tower or layer is part of the Tile Calorimeter.

Warning
does NOT take as input a REGION identifier

Definition at line 672 of file CaloLVL1_ID.h.

673 {
674  // Must first check if this is a normal tile id
675  if (AtlasDetectorID::is_tile(id)) {
676  return (true);
677  }
678  else {
679  return (is_lvl1_trig_towers(id) && region(id) == 0 && sampling(id) == 1 && eta(id) < 15);
680  }
681 }

◆ is_tile_dm()

bool AtlasDetectorID::is_tile_dm ( Identifier  id) const
inlineinherited

Definition at line 748 of file AtlasDetectorID.h.

749 {
750  bool result = false;
751  if (is_calo(id)) {
752  int temp = m_calo_side_impl.unpack(id);
753  result = (m_tile_dm_field.match(temp));
754  }
755  return result;
756 }

◆ is_trt() [1/2]

bool AtlasDetectorID::is_trt ( const ExpandedIdentifier id) const
inherited

Definition at line 291 of file AtlasDetectorID.cxx.

291  {
292  return is_indet(id) && id.fields() > 1;
293 }

◆ is_trt() [2/2]

bool AtlasDetectorID::is_trt ( Identifier  id) const
inlineinherited

Definition at line 782 of file AtlasDetectorID.h.

783 {
784  bool result = false;
785  // Must check is_pixel to allow for special bits
786  // (don't need this check for 64-bit identifier, but leave it in for now)
787  if(is_indet(id) && !is_pixel(id)) {
789  }
790  return result;
791 }

◆ is_zdc()

bool AtlasDetectorID::is_zdc ( Identifier  id) const
inlineinherited

Definition at line 971 of file AtlasDetectorID.h.

972 {
973  bool result = false;
974  if(is_forward(id)) {
975  result = (abs(m_lar_part_impl.unpack(id)) == m_ZDC_ID);
976  }
977  return result;
978 }

◆ lar()

Identifier AtlasDetectorID::lar ( void  ) const
inherited

Definition at line 47 of file AtlasDetectorID.cxx.

47  {
48  Identifier result{0};
49  // Pack field
51  return result;
52 }

◆ lar_dm()

Identifier AtlasDetectorID::lar_dm ( void  ) const
inherited

Definition at line 131 of file AtlasDetectorID.cxx.

131  {
132  Identifier result{0};
133  // Pack field
136  return result;
137 }

◆ lar_em()

Identifier AtlasDetectorID::lar_em ( void  ) const
inherited

Definition at line 115 of file AtlasDetectorID.cxx.

115  {
116  Identifier result{0};
117  // Pack field
120  return result;
121 }

◆ lar_em_exp()

ExpandedIdentifier AtlasDetectorID::lar_em_exp ( void  ) const
inlineprotectedinherited

LAr.

Definition at line 562 of file AtlasDetectorID.h.

563 {
565  return (result << m_LAR_EM_ID);
566 }

◆ lar_em_field_value()

int AtlasDetectorID::lar_em_field_value ( ) const
inlineprotectedinherited

Definition at line 644 of file AtlasDetectorID.h.

644 {return (m_LAR_EM_ID);}

◆ lar_exp()

ExpandedIdentifier AtlasDetectorID::lar_exp ( void  ) const
inlineprotectedinherited

Definition at line 492 of file AtlasDetectorID.h.

493 {
495  return (result << m_LAR_ID);
496 }

◆ lar_fcal()

Identifier AtlasDetectorID::lar_fcal ( void  ) const
inherited

Definition at line 155 of file AtlasDetectorID.cxx.

155  {
156  Identifier result{0};
157  // Pack field
160  return result;
161 }

◆ lar_fcal_exp()

ExpandedIdentifier AtlasDetectorID::lar_fcal_exp ( void  ) const
inlineprotectedinherited

Definition at line 576 of file AtlasDetectorID.h.

577 {
579  return (result << m_LAR_FCAL_ID);
580 }

◆ lar_fcal_field_value()

int AtlasDetectorID::lar_fcal_field_value ( ) const
inlineprotectedinherited

Definition at line 650 of file AtlasDetectorID.h.

650 {return (m_LAR_FCAL_ID);}

◆ lar_field_value()

int AtlasDetectorID::lar_field_value ( ) const
inlineprotectedinherited

Definition at line 614 of file AtlasDetectorID.h.

614 {return (m_LAR_ID);}

◆ lar_hec()

Identifier AtlasDetectorID::lar_hec ( void  ) const
inherited

Definition at line 147 of file AtlasDetectorID.cxx.

147  {
148  Identifier result{0};
149  // Pack field
152  return result;
153 }

◆ lar_hec_exp()

ExpandedIdentifier AtlasDetectorID::lar_hec_exp ( void  ) const
inlineprotectedinherited

Definition at line 569 of file AtlasDetectorID.h.

570 {
572  return (result << m_LAR_HEC_ID);
573 }

◆ lar_hec_field_value()

int AtlasDetectorID::lar_hec_field_value ( ) const
inlineprotectedinherited

Definition at line 647 of file AtlasDetectorID.h.

647 {return (m_LAR_HEC_ID);}

◆ lar_lvl1()

Identifier AtlasDetectorID::lar_lvl1 ( void  ) const
inherited

Definition at line 123 of file AtlasDetectorID.cxx.

123  {
124  Identifier result{0};
125  // Pack field
128  return result;
129 }

◆ layer()

int CaloLVL1_ID::layer ( const Identifier  id) const
inline

return layer according to :

element           range              meaning

layer [0,3] region 0, 1, 2 (|eta|<3.2) : 4 em samplings or 4 had samplings " [0,1] region 3 (3.2<|eta|<4.9) : 1 em sampling or 2 had samplings
failure returns 0
 

Definition at line 665 of file CaloLVL1_ID.h.

666 {
667  return (m_layer_impl.unpack(id));
668 }

◆ layer_begin()

CaloLVL1_ID::id_iterator CaloLVL1_ID::layer_begin ( ) const
inline

begin iterators over layers

Definition at line 616 of file CaloLVL1_ID.h.

617 {
618  return(m_layer_vec.begin());
619 }

◆ layer_context()

IdContext CaloLVL1_ID::layer_context ( void  ) const

access to IdContext's which define which levels of fields are contained in the id

id for towers with layers ("extended" id)

Definition at line 61 of file CaloLVL1_ID.cxx.

62 {
64  return {id, 0, m_LAYER_INDEX};
65 }

◆ layer_end()

CaloLVL1_ID::id_iterator CaloLVL1_ID::layer_end ( ) const
inline

end iterators over layers

Definition at line 622 of file CaloLVL1_ID.h.

623 {
624  return(m_layer_vec.end());
625 }

◆ layer_hash_max()

CaloLVL1_ID::size_type CaloLVL1_ID::layer_hash_max ( void  ) const
inline

layer hash table max size

Definition at line 566 of file CaloLVL1_ID.h.

567 {
568  return m_layer_hash_max;
569 }

◆ layer_id() [1/4]

Identifier CaloLVL1_ID::layer_id ( const Identifier  towerId,
int  layer 
) const
inline

build a layer identifier

Definition at line 553 of file CaloLVL1_ID.h.

555 {
556  return layer_id (towerId, layer, do_checks());
557 }

◆ layer_id() [2/4]

Identifier CaloLVL1_ID::layer_id ( const Identifier  towerId,
int  layer,
bool  checks 
) const
inline

Definition at line 537 of file CaloLVL1_ID.h.

539 {
540  Identifier result(towerId);
541 
542  // Reset the fields and then set the values
545  // Do checks
546  if(checks) {
547  layer_id_checks( towerId, layer );
548  }
549 
550  return result;
551 }

◆ layer_id() [3/4]

Identifier CaloLVL1_ID::layer_id ( int  pos_neg_z,
int  sampling,
int  region,
int  eta,
int  phi,
int  layer 
) const
inline

build a layer identifier

Definition at line 530 of file CaloLVL1_ID.h.

532 {
534 }

◆ layer_id() [4/4]

Identifier CaloLVL1_ID::layer_id ( int  pos_neg_z,
int  sampling,
int  region,
int  eta,
int  phi,
int  layer,
bool  checks 
) const
inline

Definition at line 508 of file CaloLVL1_ID.h.

511 {
512  Identifier result(0);
513  // Pack fields independently
521 
522  // Do checks
523  if(checks) {
525  }
526 
527  return result;
528 }

◆ layer_id_checks() [1/2]

void CaloLVL1_ID::layer_id_checks ( const Identifier  towerId,
int  layer 
) const
private

Definition at line 670 of file CaloLVL1_ID.cxx.

672 {
673  // Fill expanded id
675 
676  IdContext context = layer_context();
677  if (get_expanded_id(towerId, id, &context)) {
678  std::string errorMessage = "CaloLVL1_ID::layer_id(towerId, layer) result is not OK: ID= "
679  + show_to_string(towerId) ;
680  throw CaloID_Exception(errorMessage , 2);
681  }
682 
683  id << layer;
684 
685  if (!m_full_layer_range.match(id)) {
686  std::string errorMessage = "CaloLVL1_ID::layer_id(towerId) result is not OK: ID, range = "
687  + (std::string)id + " , " + (std::string)m_full_layer_range;
688  throw CaloID_Exception(errorMessage , 2);
689  }
690 }

◆ layer_id_checks() [2/2]

void CaloLVL1_ID::layer_id_checks ( int  pos_neg_z,
int  sampling,
int  region,
int  eta,
int  phi,
int  layer 
) const
private

Definition at line 656 of file CaloLVL1_ID.cxx.

658 {
659  // Fill expanded id
661  id << pos_neg_z << sampling << region << eta << phi << layer;
662 
663  if (!m_full_layer_range.match(id)) {
664  std::string errorMessage = "CaloLVL1_ID::layer_id(field values) result is not OK: ID, range = "
665  + std::string(id) + " , " + (std::string)m_full_layer_range;
666  throw CaloID_Exception(errorMessage , 2);
667  }
668 }

◆ layer_max()

int CaloLVL1_ID::layer_max ( const Identifier  regId) const

max value of phi index (-999 == failure)

Warning
input = REGION ID !!

Definition at line 516 of file CaloLVL1_ID.cxx.

517 {
518  ExpandedIdentifier expId;
519  IdContext region_cntxt = region_context();
520  if(!get_expanded_id(regId, expId, &region_cntxt)) {
521  int result = -999;
522  for (unsigned int i = 0; i < m_full_layer_range.size(); ++i) {
523  const Range& range = m_full_layer_range[i];
524  if (range.match(expId)) {
525  const Range::field& lay_field = range[m_LAYER_INDEX];
526  if (not lay_field.empty()) {
527  int laymax = lay_field.get_maximum();
528  if (result < laymax) result = laymax;
529  }
530  }
531  }
532  return (result);
533  }
534  return (-999); // default
535 }

◆ layer_range()

CaloLVL1_ID::id_range CaloLVL1_ID::layer_range ( ) const
inline

range over layers

Definition at line 629 of file CaloLVL1_ID.h.

630 {
631  return id_range (layer_begin(), layer_end());
632 }

◆ lucid_exp()

ExpandedIdentifier AtlasDetectorID::lucid_exp ( void  ) const
inlineprotectedinherited

Definition at line 597 of file AtlasDetectorID.h.

598 {
600  return (result << m_LUCID_ID);
601 }

◆ lucid_field_value()

int AtlasDetectorID::lucid_field_value ( ) const
inlineprotectedinherited

Definition at line 677 of file AtlasDetectorID.h.

677 {return (m_LUCID_ID);}

◆ lumi()

Identifier AtlasDetectorID::lumi ( void  ) const
inherited

Definition at line 107 of file AtlasDetectorID.cxx.

107  {
108  Identifier result{0};
109  // Pack field
112  return result;
113 }

◆ lumi_exp()

ExpandedIdentifier AtlasDetectorID::lumi_exp ( void  ) const
inlineprotectedinherited

Definition at line 555 of file AtlasDetectorID.h.

556 {
558  return (result << m_LUMI_ID);
559 }

◆ lumi_field_value()

int AtlasDetectorID::lumi_field_value ( ) const
inlineprotectedinherited

Definition at line 638 of file AtlasDetectorID.h.

638 {return (m_LUMI_ID);}

◆ mdt()

Identifier AtlasDetectorID::mdt ( void  ) const
inherited

Definition at line 22 of file AtlasDetectorID.cxx.

22  {
23  return Identifier{};
24 }

◆ mdt_field_value()

int AtlasDetectorID::mdt_field_value ( ) const
inlineprotectedinherited

Definition at line 653 of file AtlasDetectorID.h.

653 {return (m_MDT_ID);}

◆ mm()

Identifier AtlasDetectorID::mm ( void  ) const
inherited

Definition at line 37 of file AtlasDetectorID.cxx.

37  {
38  return Identifier{};
39 }

◆ mm_field_value()

int AtlasDetectorID::mm_field_value ( ) const
inlineprotectedinherited

Definition at line 668 of file AtlasDetectorID.h.

668 {return (m_MM_ID);}

◆ 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.

165 {
166  MsgStream* ms = m_msg_tls.get();
167  if (!ms) {
168  if (!m_initialized.test_and_set()) initMessaging();
169  ms = new MsgStream(m_imsg,m_nm);
170  m_msg_tls.reset( ms );
171  }
172 
173  ms->setLevel (m_lvl);
174  return *ms;
175 }

◆ 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
lvlThe message level to test against
Returns
boolean Indicating if messages at given level will be printed
Return values
trueMessages at level "lvl" will be printed

Definition at line 151 of file AthMessaging.h.

152 {
153  if (!m_initialized.test_and_set()) initMessaging();
154  if (m_lvl <= lvl) {
155  msg() << lvl;
156  return true;
157  } else {
158  return false;
159  }
160 }

◆ muon()

Identifier AtlasDetectorID::muon ( void  ) const
inherited

Definition at line 61 of file AtlasDetectorID.cxx.

61  {
62  Identifier result{0};
63  // Pack field
65  return result;
66 }

◆ muon_exp()

ExpandedIdentifier AtlasDetectorID::muon_exp ( void  ) const
inlineprotectedinherited

Definition at line 506 of file AtlasDetectorID.h.

507 {
509  return (result << m_MUON_ID);
510 }

◆ muon_field_value()

int AtlasDetectorID::muon_field_value ( ) const
inlineprotectedinherited

Definition at line 620 of file AtlasDetectorID.h.

620 {return (m_MUON_ID);}

◆ phi()

int CaloLVL1_ID::phi ( const Identifier  id) const
inline

return phi according to :

element           range              meaning

phi [0,63] region 0(|eta|<2.5), granularity = 0.1 " [0,31] region 1(2.5<|eta|<3.1), granularity = 0.2 " [0,31] region 2(3.1<|eta|<3.2), granularity = 0.2 " [0,15] region 3(3.2<|eta|<4.9), granularity = 0.4
failure returns 0
 

Definition at line 659 of file CaloLVL1_ID.h.

660 {
661  return (m_phi_impl.unpack(id));
662 }

◆ phi_max()

int CaloLVL1_ID::phi_max ( const Identifier  regId) const

min value of phi index (-999 == failure)

Warning
input = REGION ID !!

Definition at line 495 of file CaloLVL1_ID.cxx.

496 {
497  ExpandedIdentifier expId;
498  IdContext region_cntxt = region_context();
499  if(!get_expanded_id(regId, expId, &region_cntxt)) {
500  int result = -999;
501  for (unsigned int i = 0; i < m_full_tower_range.size(); ++i) {
502  const Range& range = m_full_tower_range[i];
503  if (range.match(expId)) {
504  const Range::field& phi_field = range[m_PHI_INDEX];
505  if (not phi_field.empty()) {
506  int phimax = phi_field.get_maximum();
507  if (result < phimax) result = phimax;
508  }
509  }
510  }
511  return (result);
512  }
513  return (-999); // default
514 }

◆ pixel()

Identifier AtlasDetectorID::pixel ( void  ) const
inherited

Definition at line 75 of file AtlasDetectorID.cxx.

75  {
76  Identifier result{0};
77  // Pack field
80  return result;
81 }

◆ pixel_exp()

ExpandedIdentifier AtlasDetectorID::pixel_exp ( void  ) const
inlineprotectedinherited

Inner Detector:

Definition at line 527 of file AtlasDetectorID.h.

528 {
530  return (result << m_PIXEL_ID);
531 }

◆ pixel_field_value()

int AtlasDetectorID::pixel_field_value ( ) const
inlineprotectedinherited

Definition at line 626 of file AtlasDetectorID.h.

626 {return (m_PIXEL_ID);}

◆ plr_field_value()

int AtlasDetectorID::plr_field_value ( ) const
inlineprotectedinherited

Definition at line 641 of file AtlasDetectorID.h.

641 {return (m_LUMI_PLR_ID);}

◆ pos_neg_z()

int CaloLVL1_ID::pos_neg_z ( const Identifier  id) const
inline

return pos_neg_z according to :

element           range              meaning
-------           -----              -------
DETZSIDE           +/-1             positive/negative
failure returns 0
 

Definition at line 635 of file CaloLVL1_ID.h.

636 {
637  return (m_lvl1_impl.unpack(id));
638 }

◆ print()

void AtlasDetectorID::print ( Identifier  id,
const IdContext context = 0 
) const
inherited

Expanded print out of any identifier.

Definition at line 404 of file AtlasDetectorID.cxx.

404  {
405  ATH_MSG_INFO(print_to_string(id, context));
406 }

◆ print_to_string()

std::string AtlasDetectorID::print_to_string ( Identifier  id,
const IdContext context = 0 
) const
inherited

or provide the printout in string form

Definition at line 408 of file AtlasDetectorID.cxx.

409  {
410  // Print out for any Atlas identifier
411  std::string result;
413 
414  // Do a generic printout of identifier from dictionary
415  unsigned int max_index = (context) ? context->end_index() : 999;
416 
417  // Find the dictionary to use:
418  IdDictDictionary *dict{nullptr};
419  ExpandedIdentifier expId;
420  ExpandedIdentifier prefix; // default is null prefix
421  Identifier compact = id;
422 
423  if (is_indet(id)) {
424  dict = m_indet_dict;
425  } else if (is_lar(id)) {
426  dict = m_lar_dict;
427  } else if (is_tile(id)) {
428  dict = m_tile_dict;
429  } else if (is_muon(id)) {
430  dict = m_muon_dict;
431  } else if (is_lvl1_trig_towers(id) || is_lvl1_online(id) ||
432  is_lar_dm(id) || is_tile_dm(id)) {
433  dict = m_calo_dict;
434  } else if (is_forward(id)) {
435  dict = m_fwd_dict;
436  }
437 
438  if (!dict) {
439  ATH_MSG_WARNING(__func__<<":"<<__LINE__<<" No dictionary could be associated to "<<id);
440  return result;
441  }
442  if (dict->unpack(compact, prefix, max_index," ", result)) {
443  return result;
444  }
445  }
446  return result;
447 }

◆ region()

int CaloLVL1_ID::region ( const Identifier  id) const
inline

return region according to :

element           range              meaning
-------           -----              -------
region           [0,3]            4 regions of different eta/phi granularity
failure returns 0
 

Definition at line 647 of file CaloLVL1_ID.h.

648 {
649  return (m_region_impl.unpack(id));
650 }

◆ region_begin()

CaloLVL1_ID::id_iterator CaloLVL1_ID::region_begin ( ) const
inline

begin iterator over regions

Definition at line 579 of file CaloLVL1_ID.h.

580 {
581  return(m_region_vec.begin());
582 }

◆ region_context()

IdContext CaloLVL1_ID::region_context ( void  ) const

access to IdContext's which define which levels of fields are contained in the id

id for towers ("reduced" id)

Definition at line 47 of file CaloLVL1_ID.cxx.

48 {
50  return {id, 0, m_REGION_INDEX};
51 }

◆ region_end()

CaloLVL1_ID::id_iterator CaloLVL1_ID::region_end ( ) const
inline

end iterator over regions

Definition at line 585 of file CaloLVL1_ID.h.

586 {
587  return(m_region_vec.end());
588 }

◆ region_hash_max()

CaloLVL1_ID::size_type CaloLVL1_ID::region_hash_max ( void  ) const
inline

region hash table max size

Definition at line 572 of file CaloLVL1_ID.h.

573 {
574  return m_region_hash_max;
575 }

◆ region_id() [1/4]

Identifier CaloLVL1_ID::region_id ( const Identifier  tower_or_layerId) const
inline

build a region (of towers) identifier

Definition at line 464 of file CaloLVL1_ID.h.

465 {
466  Identifier result(tower_or_layerId);
467  // reset eta, phi, layer
471  return (result);
472 }

◆ region_id() [2/4]

Identifier CaloLVL1_ID::region_id ( IdentifierHash  region_hash_id) const
inline

create region id from hash id

Definition at line 716 of file CaloLVL1_ID.h.

717 {
718  return(m_region_vec[region_hash_id]);
719 }

◆ region_id() [3/4]

Identifier CaloLVL1_ID::region_id ( int  pos_neg_z,
int  sampling,
int  region 
) const
inline

build a region (of towers) identifier

Definition at line 502 of file CaloLVL1_ID.h.

503 {
505 }

◆ region_id() [4/4]

Identifier CaloLVL1_ID::region_id ( int  pos_neg_z,
int  sampling,
int  region,
bool  checks 
) const
inline

Definition at line 484 of file CaloLVL1_ID.h.

486 {
487  Identifier result(0);
488  // Pack fields independently
493 
494  // Do checks
495  if(checks) {
497  }
498 
499  return result;
500 }

◆ region_id_checks()

void CaloLVL1_ID::region_id_checks ( int  pos_neg_z,
int  sampling,
int  region 
) const
private

Definition at line 643 of file CaloLVL1_ID.cxx.

644 {
645  // Fill expanded id
647  id << pos_neg_z << sampling << region ;
648 
649  if (!m_full_region_range.match(id)) {
650  std::string errorMessage = "CaloLVL1_ID::region_id() result is not OK: ID, range = "
651  + std::string(id) + " , " + (std::string)m_full_region_range;
652  throw CaloID_Exception(errorMessage , 2);
653  }
654 }

◆ region_range()

CaloLVL1_ID::id_range CaloLVL1_ID::region_range ( ) const
inline

range over regions

Definition at line 591 of file CaloLVL1_ID.h.

592 {
593  return id_range (region_begin(), region_end());
594 }

◆ 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 186 of file AtlasDetectorID.cxx.

187  {
188  // Register version of dictionary dict_name
189 
190  // Access dictionary by name
191  IdDictDictionary *dict = dict_mgr.find_dictionary(dict_name);
192  if (!dict) {
193  ATH_MSG_ERROR(__func__<<":"<<__LINE__<<" No dictionary found");
194  return 1;
195 
196  }
197  // Add in dict name, file name and version
198  m_dict_names.push_back(dict_name);
199  m_file_names.push_back(dict->file_name());
200  m_dict_tags.push_back(dict->dict_tag());
201  return 0;
202 }

◆ reinitialize()

bool AtlasDetectorID::reinitialize ( const IdDictMgr dict_mgr)
protectedinherited

Test whether an idhelper should be reinitialized based on the change of tags.

Definition at line 206 of file AtlasDetectorID.cxx.

206  {
207  // If no tag has been registered, then reinitialize
208  if (m_dict_tags.size() == 0){
209  return true;
210  }
211  // If no dict names have been registered, then reinitialize
212  if (m_dict_names.size() == 0){
213  return true;
214  }
215  // Loop over dict names and check version tags
216  if (m_dict_names.size() != m_dict_tags.size()) {
217  ATH_MSG_ERROR("reinitialize: dict names and tags vectors not the same length ");
218  ATH_MSG_ERROR("names: " << m_dict_names.size() << " tags: " << m_dict_tags.size());
219  }
220  for (unsigned int i = 0; i < m_dict_names.size(); ++i) {
221  // Access dictionary by name
222  IdDictDictionary *dict = dict_mgr.find_dictionary(m_dict_names[i]);
223  if (!dict) {
224  ATH_MSG_ERROR("reinitialize: could not find dict - " << m_dict_names[i]);
225  return false;
226  }
227  if (m_dict_tags[i] != dict->dict_tag()) {
228  // Remove all memory of versions
229  m_dict_names.clear();
230  m_dict_tags.clear();
231  m_file_names.clear();
232  return true;
233  }
234  }
235 
236  // Tags match - don't reinitialize
237  return false;
238 }

◆ rpc()

Identifier AtlasDetectorID::rpc ( void  ) const
inherited

Definition at line 28 of file AtlasDetectorID.cxx.

28  {
29  return Identifier{};
30 }

◆ rpc_field_value()

int AtlasDetectorID::rpc_field_value ( ) const
inlineprotectedinherited

Definition at line 659 of file AtlasDetectorID.h.

659 {return (m_RPC_ID);}

◆ sampling()

int CaloLVL1_ID::sampling ( const Identifier  id) const
inline

return sampling according to :

element           range              meaning

LVL1sampling 0 EM " 1 Hadronic
failure returns 0
 

Definition at line 641 of file CaloLVL1_ID.h.

642 {
643  return (m_sampling_impl.unpack(id));
644 }

◆ sct()

Identifier AtlasDetectorID::sct ( void  ) const
inherited

Definition at line 83 of file AtlasDetectorID.cxx.

83  {
84  Identifier result{0};
85  // Pack field
88  return result;
89 }

◆ sct_exp()

ExpandedIdentifier AtlasDetectorID::sct_exp ( void  ) const
inlineprotectedinherited

Definition at line 534 of file AtlasDetectorID.h.

535 {
537  return (result << m_SCT_ID);
538 }

◆ sct_field_value()

int AtlasDetectorID::sct_field_value ( ) const
inlineprotectedinherited

Definition at line 629 of file AtlasDetectorID.h.

629 {return (m_SCT_ID);}

◆ set_do_checks()

void AtlasDetectorID::set_do_checks ( bool  do_checks)
overridevirtualinherited

Implements IdHelper.

Definition at line 460 of file AtlasDetectorID.cxx.

460  {
462 }

◆ set_do_neighbours()

void AtlasDetectorID::set_do_neighbours ( bool  do_neighbours)
overridevirtualinherited

Implements IdHelper.

Definition at line 468 of file AtlasDetectorID.cxx.

468  {
470 }

◆ set_quiet()

void AtlasDetectorID::set_quiet ( bool  quiet)
inherited

Set flag for suppressing informational output.

Definition at line 476 of file AtlasDetectorID.cxx.

476  {
477  m_quiet = quiet;
478 }

◆ setDictVersion()

void AtlasDetectorID::setDictVersion ( const IdDictMgr dict_mgr,
const std::string &  name 
)
overrideprotectedvirtualinherited

Implements IdHelper.

Definition at line 480 of file AtlasDetectorID.cxx.

480  {
481  const IdDictDictionary *dict = dict_mgr.find_dictionary(name);
482  m_dict_version = dict->m_version;
483 }

◆ setLevel()

void AthMessaging::setLevel ( MSG::Level  lvl)
inherited

Change the current logging level.

Use this rather than msg().setLevel() for proper operation with MT.

Definition at line 28 of file AthMessaging.cxx.

29 {
30  m_lvl = lvl;
31 }

◆ setMessageSvc()

void AtlasDetectorID::setMessageSvc ( IMessageSvc *  msgSvc)
overridevirtualinherited

Implements IdHelper.

Definition at line 472 of file AtlasDetectorID.cxx.

472  {
473  m_msgSvc = msgSvc;
474 }

◆ show()

void AtlasDetectorID::show ( Identifier  id,
const IdContext context = 0,
char  sep = '.' 
) const
inherited

Short print out of any identifier (optionally provide separation character - default is '.

'):

Definition at line 344 of file AtlasDetectorID.cxx.

344  {
345  ATH_MSG_INFO(show_to_string(id, context, sep));
346 }

◆ show_to_string()

std::string AtlasDetectorID::show_to_string ( Identifier  id,
const IdContext context = 0,
char  sep = '.' 
) const
inherited

or provide the printout in string form

Definition at line 350 of file AtlasDetectorID.cxx.

350  {
351  // Do a generic printout of identifier
352 
353  std::string result("Unable to decode id");
354  unsigned int max_index = (context) ? context->end_index() : 999;
355 
357  return result;
358 
359  // Find the dictionary to use:
360  IdDictDictionary *dict{nullptr};
361  ExpandedIdentifier expId{};
362  ExpandedIdentifier prefix{}; // default is null prefix
363  Identifier compact = id;
364 
365  if (is_indet(id)) {
366  dict = m_indet_dict;
367  } else if (is_lar(id)) {
368  dict = m_lar_dict;
369  } else if (is_tile(id)) {
370  dict = m_tile_dict;
371  } else if (is_muon(id)) {
372  dict = m_muon_dict;
373  } else if (is_lvl1_trig_towers(id) || is_lvl1_online(id) ||
374  is_lar_dm(id) || is_tile_dm(id)) {
375  dict = m_calo_dict;
376  } else if (is_forward(id)) {
377  dict = m_fwd_dict;
378  }
379 
380  if (!dict) {
381  ATH_MSG_WARNING(__func__<<" No detector type associated to id "<<id);
382  return result;
383  }
384  if (dict->unpack(compact, prefix, max_index, expId)) {
385  return result;
386  }
387 
388  bool first = true;
389  result = "";
390  if ('.' == sep)
391  result = "[";
392  for (unsigned int i = 0; i < expId.fields(); ++i) {
393  if (first)
394  first = false;
395  else
396  result += sep;
397  result += std::format("{}", expId[i]);
398  }
399  if ('.' == sep)
400  result += "]";
401  return result;
402 }

◆ stgc()

Identifier AtlasDetectorID::stgc ( void  ) const
inherited

Definition at line 34 of file AtlasDetectorID.cxx.

34  {
35  return Identifier{};
36 }

◆ stgc_field_value()

int AtlasDetectorID::stgc_field_value ( ) const
inlineprotectedinherited

Definition at line 665 of file AtlasDetectorID.h.

665 {return (m_STGC_ID);}

◆ subdet_context()

IdContext AtlasDetectorID::subdet_context ( void  ) const
inherited

IdContext (indicates id length) for sub-detector.

Definition at line 169 of file AtlasDetectorID.cxx.

169  {
170  ExpandedIdentifier id{};
171  return IdContext{id, 0, m_SUBDET_INDEX};
172 }

◆ tgc()

Identifier AtlasDetectorID::tgc ( void  ) const
inherited

Definition at line 31 of file AtlasDetectorID.cxx.

31  {
32  return Identifier{};
33 }

◆ tgc_field_value()

int AtlasDetectorID::tgc_field_value ( ) const
inlineprotectedinherited

Definition at line 662 of file AtlasDetectorID.h.

662 {return (m_TGC_ID);}

◆ tile()

Identifier AtlasDetectorID::tile ( void  ) const
inherited

Definition at line 54 of file AtlasDetectorID.cxx.

54  {
55  Identifier result{0};
56  // Pack field
58  return result;
59 }

◆ tile_dm()

Identifier AtlasDetectorID::tile_dm ( void  ) const
inherited

Definition at line 139 of file AtlasDetectorID.cxx.

139  {
140  Identifier result{0};
141  // Pack field
144  return result;
145 }

◆ tile_exp()

ExpandedIdentifier AtlasDetectorID::tile_exp ( void  ) const
inlineprotectedinherited

Definition at line 499 of file AtlasDetectorID.h.

500 {
502  return (result << m_TILE_ID);
503 }

◆ tile_field_value()

int AtlasDetectorID::tile_field_value ( ) const
inlineprotectedinherited

Definition at line 617 of file AtlasDetectorID.h.

617 {return (m_TILE_ID);}

◆ to_range()

std::string AtlasDetectorID::to_range ( const ExpandedIdentifier id) const
protectedinherited

Definition at line 485 of file AtlasDetectorID.cxx.

485  {
486 
487  // Build a string from the contents of an identifier
488  int fields = id.fields();
489  std::string result("");
490  for (int i = 0; i < fields; ++i) {
491  if (i > 0) {
492  result += '/'; // add '/' only if NOT last one
493  }
494  result += std::format("{}", id[i]);
495  }
496  return result;
497 }

◆ tower_begin()

CaloLVL1_ID::id_iterator CaloLVL1_ID::tower_begin ( ) const
inline

begin iterator over towers

Definition at line 597 of file CaloLVL1_ID.h.

598 {
599  return(m_tower_vec.begin());
600 }

◆ tower_context()

IdContext CaloLVL1_ID::tower_context ( void  ) const

access to IdContext's which define which levels of fields are contained in the id

id for towers ("normal" id)

Definition at line 54 of file CaloLVL1_ID.cxx.

55 {
57  return {id, 0, m_PHI_INDEX};
58 }

◆ tower_end()

CaloLVL1_ID::id_iterator CaloLVL1_ID::tower_end ( ) const
inline

end iterator over towers

Definition at line 603 of file CaloLVL1_ID.h.

604 {
605  return(m_tower_vec.end());
606 }

◆ tower_hash()

IdentifierHash CaloLVL1_ID::tower_hash ( Identifier  towerId) const
inline

create hash id from tower id

Definition at line 728 of file CaloLVL1_ID.h.

729 {
730  const HashCalc& hc = m_hash_calcs[m_pnz_reg_impl.unpack(towerId)];
731  return (hc.m_hash + (eta(towerId)-hc.m_etamin)*hc.m_nphi + phi(towerId));
732 }

◆ tower_hash_binary_search()

IdentifierHash CaloLVL1_ID::tower_hash_binary_search ( Identifier  towerId) const
inline

create hash id from tower id – method NOT optimised, please use tower_hash() above

Definition at line 735 of file CaloLVL1_ID.h.

736 {
737  std::vector<Identifier>::const_iterator it = std::lower_bound(m_tower_vec.begin(),m_tower_vec.end(),towerId);
738  if ( it != m_tower_vec.end() ){
739  return (it - m_tower_vec.begin());
740  }
741  return (0);
742 }

◆ tower_hash_max()

CaloLVL1_ID::size_type CaloLVL1_ID::tower_hash_max ( void  ) const
inline

tower hash table max size

Definition at line 560 of file CaloLVL1_ID.h.

561 {
562  return m_tower_hash_max;
563 }

◆ tower_id() [1/6]

Identifier CaloLVL1_ID::tower_id ( const Identifier  layerId) const
inline

build a tower identifier

Definition at line 475 of file CaloLVL1_ID.h.

476 {
477  Identifier result(layerId);
478  // reset layer
480  return (result);
481 }

◆ tower_id() [2/6]

Identifier CaloLVL1_ID::tower_id ( const Identifier  regionId,
int  eta,
int  phi 
) const
inline

build a tower identifier

Definition at line 456 of file CaloLVL1_ID.h.

458 {
459  return tower_id (regionId, eta, phi, do_checks());
460 }

◆ tower_id() [3/6]

Identifier CaloLVL1_ID::tower_id ( const Identifier  regionId,
int  eta,
int  phi,
bool  checks 
) const
inline

Definition at line 437 of file CaloLVL1_ID.h.

439 {
440  Identifier result(regionId);
441 
442  // Reset the fields and then set the values
447 
448  // Do checks
449  if(checks) {
450  tower_id_checks( regionId, eta, phi );
451  }
452 
453  return result;
454 }

◆ tower_id() [4/6]

Identifier CaloLVL1_ID::tower_id ( IdentifierHash  tower_hash_id) const
inline

create tower id from hash id

Definition at line 722 of file CaloLVL1_ID.h.

723 {
724  return(m_tower_vec[tower_hash_id]);
725 }

◆ tower_id() [5/6]

Identifier CaloLVL1_ID::tower_id ( int  pos_neg_z,
int  sampling,
int  region,
int  eta,
int  phi 
) const
inline

build a tower identifier

Definition at line 429 of file CaloLVL1_ID.h.

431 {
433 }

◆ tower_id() [6/6]

Identifier CaloLVL1_ID::tower_id ( int  pos_neg_z,
int  sampling,
int  region,
int  eta,
int  phi,
bool  checks 
) const
inline

Definition at line 409 of file CaloLVL1_ID.h.

411 {
412  Identifier result(0);
413  // Pack fields independently
420 
421  // Do checks
422  if(checks) {
424  }
425 
426  return result;
427 }

◆ tower_id_checks() [1/2]

void CaloLVL1_ID::tower_id_checks ( const Identifier  regionId,
int  eta,
int  phi 
) const
private

Definition at line 621 of file CaloLVL1_ID.cxx.

623 {
624  // Fill expanded id
626 
627  IdContext context = region_context();
628  if (get_expanded_id(regionId, id, &context)) {
629  std::string errorMessage = "CaloLVL1_ID::tower_id(regionId) result is not OK: ID= "
630  + show_to_string(regionId) ;
631  throw CaloID_Exception(errorMessage , 2);
632  }
633 
634  id << eta << phi;
635 
636  if (!m_full_tower_range.match(id)) {
637  std::string errorMessage = "CaloLVL1_ID::tower_id(regionId,field values) result is not OK: ID, range = "
638  + std::string(id) + " , " + (std::string)m_full_tower_range;
639  throw CaloID_Exception(errorMessage , 2);
640  }
641 }

◆ tower_id_checks() [2/2]

void CaloLVL1_ID::tower_id_checks ( int  pos_neg_z,
int  sampling,
int  region,
int  eta,
int  phi 
) const
private

Definition at line 606 of file CaloLVL1_ID.cxx.

608 {
609  // Fill expanded id
611  id << pos_neg_z << sampling << region << eta << phi;
612 
613  if (!m_full_tower_range.match(id)) {
614  std::string errorMessage = "CaloLVL1_ID::tower_id() result is not OK: ID, range = "
615  + std::string(id) + " , " + (std::string)m_full_tower_range;
616  throw CaloID_Exception(errorMessage , 2);
617  }
618 }

◆ tower_range()

CaloLVL1_ID::id_range CaloLVL1_ID::tower_range ( ) const
inline

range over towers

Definition at line 609 of file CaloLVL1_ID.h.

610 {
611  return id_range (tower_begin(), tower_end());
612 }

◆ trt()

Identifier AtlasDetectorID::trt ( void  ) const
inherited

Definition at line 91 of file AtlasDetectorID.cxx.

91  {
92  Identifier result{0};
93  // Pack field
96  return result;
97 }

◆ trt_exp()

ExpandedIdentifier AtlasDetectorID::trt_exp ( void  ) const
inlineprotectedinherited

Definition at line 541 of file AtlasDetectorID.h.

542 {
544  return (result << m_TRT_ID);
545 }

◆ trt_field_value()

int AtlasDetectorID::trt_field_value ( ) const
inlineprotectedinherited

Definition at line 632 of file AtlasDetectorID.h.

632 {return (m_TRT_ID);}

◆ zdc_exp()

ExpandedIdentifier AtlasDetectorID::zdc_exp ( void  ) const
inlineprotectedinherited

Definition at line 604 of file AtlasDetectorID.h.

605 {
607  return (result << m_ZDC_ID);
608 }

◆ zdc_field_value()

int AtlasDetectorID::zdc_field_value ( ) const
inlineprotectedinherited

Definition at line 679 of file AtlasDetectorID.h.

679 {return (m_ZDC_ID);}

Member Data Documentation

◆ ATLAS_THREAD_SAFE

std::atomic_flag m_initialized AthMessaging::ATLAS_THREAD_SAFE = ATOMIC_FLAG_INIT
mutableprivateinherited

Messaging initialized (initMessaging)

Definition at line 141 of file AthMessaging.h.

◆ m_ALFA_ID

int AtlasDetectorID::m_ALFA_ID {1}
privateinherited

Definition at line 424 of file AtlasDetectorID.h.

◆ m_atlas_dict

IdDictDictionary* AtlasDetectorID::m_atlas_dict {}
privateinherited

Definition at line 435 of file AtlasDetectorID.h.

◆ m_BCM_ID

int AtlasDetectorID::m_BCM_ID {3}
privateinherited

Definition at line 425 of file AtlasDetectorID.h.

◆ m_calo_dict

IdDictDictionary* AtlasDetectorID::m_calo_dict {}
privateinherited

Definition at line 440 of file AtlasDetectorID.h.

◆ m_CALO_ID

int AtlasDetectorID::m_CALO_ID {10}
privateinherited

Definition at line 406 of file AtlasDetectorID.h.

◆ m_calo_impl

IdDictFieldImplementation CaloLVL1_ID::m_calo_impl
private

Definition at line 391 of file CaloLVL1_ID.h.

◆ m_CALO_INDEX

size_type CaloLVL1_ID::m_CALO_INDEX
private

Definition at line 347 of file CaloLVL1_ID.h.

◆ m_calo_side_impl

IdDictFieldImplementation AtlasDetectorID::m_calo_side_impl
privateinherited

Definition at line 445 of file AtlasDetectorID.h.

◆ m_CSC_ID

int AtlasDetectorID::m_CSC_ID {1}
privateinherited

Definition at line 418 of file AtlasDetectorID.h.

◆ m_det_impl

IdDictFieldImplementation AtlasDetectorID::m_det_impl
privateinherited

Definition at line 443 of file AtlasDetectorID.h.

◆ m_DET_INDEX

size_type AtlasDetectorID::m_DET_INDEX {999}
privateinherited

Definition at line 399 of file AtlasDetectorID.h.

◆ m_DETZSIDE_INDEX

size_type CaloLVL1_ID::m_DETZSIDE_INDEX
private

Definition at line 348 of file CaloLVL1_ID.h.

◆ m_dict

const IdDictDictionary* CaloLVL1_ID::m_dict
private

Definition at line 355 of file CaloLVL1_ID.h.

◆ m_dict_names

std::vector<std::string> AtlasDetectorID::m_dict_names
protectedinherited

List of dictionary names used by this helper.

Definition at line 375 of file AtlasDetectorID.h.

◆ m_dict_tags

std::vector<std::string> AtlasDetectorID::m_dict_tags
protectedinherited

List of dictionary versions used by this helper.

Definition at line 381 of file AtlasDetectorID.h.

◆ m_dict_version

std::string AtlasDetectorID::m_dict_version
privateinherited

Definition at line 397 of file AtlasDetectorID.h.

◆ 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_eta_impl

IdDictFieldImplementation CaloLVL1_ID::m_eta_impl
private

Definition at line 395 of file CaloLVL1_ID.h.

◆ m_ETA_INDEX

size_type CaloLVL1_ID::m_ETA_INDEX
private

Definition at line 351 of file CaloLVL1_ID.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_layer_range

MultiRange CaloLVL1_ID::m_full_layer_range
private

Definition at line 359 of file CaloLVL1_ID.h.

◆ m_full_region_range

MultiRange CaloLVL1_ID::m_full_region_range
private

Definition at line 357 of file CaloLVL1_ID.h.

◆ m_full_tower_range

MultiRange CaloLVL1_ID::m_full_tower_range
private

Definition at line 358 of file CaloLVL1_ID.h.

◆ m_fwd_dict

IdDictDictionary* AtlasDetectorID::m_fwd_dict {}
privateinherited

Definition at line 441 of file AtlasDetectorID.h.

◆ m_FWD_ID

int AtlasDetectorID::m_FWD_ID {13}
privateinherited

Definition at line 423 of file AtlasDetectorID.h.

◆ m_fwd_part_impl

IdDictFieldImplementation AtlasDetectorID::m_fwd_part_impl
privateinherited

Definition at line 451 of file AtlasDetectorID.h.

◆ m_hash_calcs

std::vector<HashCalc> CaloLVL1_ID::m_hash_calcs
private

Definition at line 387 of file CaloLVL1_ID.h.

◆ m_helper

AtlasDetectorIDHelper* AtlasDetectorID::m_helper {}
privateinherited

Definition at line 442 of file AtlasDetectorID.h.

◆ m_HGTD_ID

int AtlasDetectorID::m_HGTD_ID {4}
privateinherited

Definition at line 410 of file AtlasDetectorID.h.

◆ m_imsg

std::atomic<IMessageSvc*> AthMessaging::m_imsg { nullptr }
mutableprivateinherited

MessageSvc pointer.

Definition at line 135 of file AthMessaging.h.

◆ m_indet_dict

IdDictDictionary* AtlasDetectorID::m_indet_dict {}
privateinherited

Definition at line 436 of file AtlasDetectorID.h.

◆ m_INDET_ID

int AtlasDetectorID::m_INDET_ID {2}
privateinherited

Definition at line 402 of file AtlasDetectorID.h.

◆ m_indet_part_impl

IdDictFieldImplementation AtlasDetectorID::m_indet_part_impl
privateinherited

Definition at line 444 of file AtlasDetectorID.h.

◆ m_is_initialized_from_dict

bool AtlasDetectorID::m_is_initialized_from_dict {}
privateinherited

Definition at line 398 of file AtlasDetectorID.h.

◆ m_isHighLuminosityLHC

bool AtlasDetectorID::m_isHighLuminosityLHC {}
privateinherited

Definition at line 429 of file AtlasDetectorID.h.

◆ m_lar_dict

IdDictDictionary* AtlasDetectorID::m_lar_dict {}
privateinherited

Definition at line 437 of file AtlasDetectorID.h.

◆ m_lar_dm_field

Range::field AtlasDetectorID::m_lar_dm_field
privateinherited

Definition at line 433 of file AtlasDetectorID.h.

◆ m_LAR_EM_ID

int AtlasDetectorID::m_LAR_EM_ID {1}
privateinherited

Definition at line 413 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_ID

int AtlasDetectorID::m_LAR_FCAL_ID {3}
privateinherited

Definition at line 415 of file AtlasDetectorID.h.

◆ m_lar_fcal_module_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_fcal_module_impl
privateinherited

Definition at line 447 of file AtlasDetectorID.h.

◆ m_LAR_FCAL_MODULE_INDEX

int AtlasDetectorID::m_LAR_FCAL_MODULE_INDEX {999}
privateinherited

Definition at line 416 of file AtlasDetectorID.h.

◆ m_LAR_HEC_ID

int AtlasDetectorID::m_LAR_HEC_ID {2}
privateinherited

Definition at line 414 of file AtlasDetectorID.h.

◆ m_LAR_ID

int AtlasDetectorID::m_LAR_ID {4}
privateinherited

Definition at line 403 of file AtlasDetectorID.h.

◆ m_lar_part_impl

IdDictFieldImplementation AtlasDetectorID::m_lar_part_impl
privateinherited

Definition at line 446 of file AtlasDetectorID.h.

◆ m_layer_hash_max

size_type CaloLVL1_ID::m_layer_hash_max
private

Definition at line 361 of file CaloLVL1_ID.h.

◆ m_layer_impl

IdDictFieldImplementation CaloLVL1_ID::m_layer_impl
private

Definition at line 397 of file CaloLVL1_ID.h.

◆ m_LAYER_INDEX

size_type CaloLVL1_ID::m_LAYER_INDEX
private

Definition at line 353 of file CaloLVL1_ID.h.

◆ m_layer_vec

std::vector<Identifier> CaloLVL1_ID::m_layer_vec
private

Definition at line 364 of file CaloLVL1_ID.h.

◆ m_LUCID_ID

int AtlasDetectorID::m_LUCID_ID {5}
privateinherited

Definition at line 426 of file AtlasDetectorID.h.

◆ m_LUMI_ID

int AtlasDetectorID::m_LUMI_ID {3}
privateinherited

Definition at line 411 of file AtlasDetectorID.h.

◆ m_LUMI_PLR_ID

int AtlasDetectorID::m_LUMI_PLR_ID {1}
privateinherited

Definition at line 412 of file AtlasDetectorID.h.

◆ m_lvl

std::atomic<MSG::Level> AthMessaging::m_lvl { MSG::NIL }
mutableprivateinherited

Current logging level.

Definition at line 138 of file AthMessaging.h.

◆ m_lvl1_field

Range::field AtlasDetectorID::m_lvl1_field
privateinherited

Definition at line 431 of file AtlasDetectorID.h.

◆ m_lvl1_impl

IdDictFieldImplementation CaloLVL1_ID::m_lvl1_impl
private

Definition at line 392 of file CaloLVL1_ID.h.

◆ m_lvl1_onl_field

Range::field AtlasDetectorID::m_lvl1_onl_field
privateinherited

Definition at line 432 of file AtlasDetectorID.h.

◆ m_lvl1_region_index

size_type CaloLVL1_ID::m_lvl1_region_index
private

Definition at line 346 of file CaloLVL1_ID.h.

◆ m_MDT_ID

int AtlasDetectorID::m_MDT_ID {0}
privateinherited

Definition at line 417 of file AtlasDetectorID.h.

◆ m_MM_ID

int AtlasDetectorID::m_MM_ID {5}
privateinherited

Definition at line 422 of file AtlasDetectorID.h.

◆ 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

pointer to the message service

Definition at line 368 of file AtlasDetectorID.h.

◆ m_muon_dict

IdDictDictionary* AtlasDetectorID::m_muon_dict {}
privateinherited

Definition at line 439 of file AtlasDetectorID.h.

◆ m_MUON_ID

int AtlasDetectorID::m_MUON_ID {7}
privateinherited

Definition at line 405 of file AtlasDetectorID.h.

◆ m_muon_mdt_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_mdt_impl
privateinherited

Definition at line 449 of file AtlasDetectorID.h.

◆ m_muon_rpc_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_rpc_impl
privateinherited

Definition at line 450 of file AtlasDetectorID.h.

◆ m_muon_station_name_impl

IdDictFieldImplementation AtlasDetectorID::m_muon_station_name_impl
privateinherited

Definition at line 448 of file AtlasDetectorID.h.

◆ m_MUON_SUBDET_INDEX

size_type AtlasDetectorID::m_MUON_SUBDET_INDEX {999}
privateinherited

Definition at line 401 of file AtlasDetectorID.h.

◆ m_muon_tech_bits

std::vector<unsigned int> AtlasDetectorID::m_muon_tech_bits
privateinherited

Definition at line 454 of file AtlasDetectorID.h.

◆ m_next_eta_vec

std::vector<unsigned short> CaloLVL1_ID::m_next_eta_vec
private

Definition at line 369 of file CaloLVL1_ID.h.

◆ m_next_phi_vec

std::vector<unsigned short> CaloLVL1_ID::m_next_phi_vec
private

Definition at line 367 of file CaloLVL1_ID.h.

◆ m_nm

std::string AthMessaging::m_nm
privateinherited

Message source name.

Definition at line 129 of file AthMessaging.h.

◆ m_phi_impl

IdDictFieldImplementation CaloLVL1_ID::m_phi_impl
private

Definition at line 396 of file CaloLVL1_ID.h.

◆ m_PHI_INDEX

size_type CaloLVL1_ID::m_PHI_INDEX
private

Definition at line 352 of file CaloLVL1_ID.h.

◆ m_PIXEL_ID

int AtlasDetectorID::m_PIXEL_ID {1}
privateinherited

Definition at line 407 of file AtlasDetectorID.h.

◆ m_pnz_reg_impl

IdDictFieldImplementation CaloLVL1_ID::m_pnz_reg_impl
private

Definition at line 399 of file CaloLVL1_ID.h.

◆ m_prev_eta_vec

std::vector<unsigned short> CaloLVL1_ID::m_prev_eta_vec
private

Definition at line 368 of file CaloLVL1_ID.h.

◆ m_prev_phi_vec

std::vector<unsigned short> CaloLVL1_ID::m_prev_phi_vec
private

Definition at line 366 of file CaloLVL1_ID.h.

◆ m_quiet

bool AtlasDetectorID::m_quiet {}
protectedinherited

If true, suppress DEBUG/INFO messages.

Definition at line 371 of file AtlasDetectorID.h.

◆ m_region_hash_max

size_type CaloLVL1_ID::m_region_hash_max
private

Definition at line 362 of file CaloLVL1_ID.h.

◆ m_region_impl

IdDictFieldImplementation CaloLVL1_ID::m_region_impl
private

Definition at line 394 of file CaloLVL1_ID.h.

◆ m_REGION_INDEX

size_type CaloLVL1_ID::m_REGION_INDEX
private

Definition at line 350 of file CaloLVL1_ID.h.

◆ m_region_vec

std::vector<Identifier> CaloLVL1_ID::m_region_vec
private

Definition at line 365 of file CaloLVL1_ID.h.

◆ m_RPC_ID

int AtlasDetectorID::m_RPC_ID {2}
privateinherited

Definition at line 419 of file AtlasDetectorID.h.

◆ m_sampling_impl

IdDictFieldImplementation CaloLVL1_ID::m_sampling_impl
private

Definition at line 393 of file CaloLVL1_ID.h.

◆ m_SAMPLING_INDEX

size_type CaloLVL1_ID::m_SAMPLING_INDEX
private

Definition at line 349 of file CaloLVL1_ID.h.

◆ m_SCT_ID

int AtlasDetectorID::m_SCT_ID {2}
privateinherited

Definition at line 408 of file AtlasDetectorID.h.

◆ m_STGC_ID

int AtlasDetectorID::m_STGC_ID {4}
privateinherited

Definition at line 421 of file AtlasDetectorID.h.

◆ m_SUBDET_INDEX

size_type AtlasDetectorID::m_SUBDET_INDEX {999}
privateinherited

Definition at line 400 of file AtlasDetectorID.h.

◆ m_TGC_ID

int AtlasDetectorID::m_TGC_ID {3}
privateinherited

Definition at line 420 of file AtlasDetectorID.h.

◆ m_tile_dict

IdDictDictionary* AtlasDetectorID::m_tile_dict {}
privateinherited

Definition at line 438 of file AtlasDetectorID.h.

◆ m_tile_dm_field

Range::field AtlasDetectorID::m_tile_dm_field
privateinherited

Definition at line 434 of file AtlasDetectorID.h.

◆ m_TILE_ID

int AtlasDetectorID::m_TILE_ID {5}
privateinherited

Definition at line 404 of file AtlasDetectorID.h.

◆ m_tower_hash_max

size_type CaloLVL1_ID::m_tower_hash_max
private

Definition at line 360 of file CaloLVL1_ID.h.

◆ m_tower_vec

std::vector<Identifier> CaloLVL1_ID::m_tower_vec
private

Definition at line 363 of file CaloLVL1_ID.h.

◆ m_TRT_ID

int AtlasDetectorID::m_TRT_ID {3}
privateinherited

Definition at line 409 of file AtlasDetectorID.h.

◆ m_ZDC_ID

int AtlasDetectorID::m_ZDC_ID {7}
privateinherited

Definition at line 427 of file AtlasDetectorID.h.


The documentation for this class was generated from the following files:
IdDictDictionary::find_region
IdDictRegion * find_region(const std::string &region_name) const
Definition: IdDictDictionary.cxx:101
AtlasDetectorID::is_pixel
bool is_pixel(Identifier id) const
Definition: AtlasDetectorID.h:760
AthMessaging::m_lvl
std::atomic< MSG::Level > m_lvl
Current logging level.
Definition: AthMessaging.h:138
IdDictDictionary::dict_tag
const std::string & dict_tag(void) const
Access to the dictionary tag.
Definition: IdDictDictionary.h:262
AtlasDetectorID::m_muon_dict
IdDictDictionary * m_muon_dict
Definition: AtlasDetectorID.h:439
AtlasDetectorID::indet_field_value
int indet_field_value() const
Provide efficient access to individual field values, for subclass idhelpers.
Definition: AtlasDetectorID.h:611
CaloLVL1_ID::id_range
boost::iterator_range< id_iterator > id_range
Type for range over identifiers.
Definition: CaloLVL1_ID.h:154
ConstRangeIterator
Definition: RangeIterator.h:46
CaloLVL1_ID::m_next_phi_vec
std::vector< unsigned short > m_next_phi_vec
Definition: CaloLVL1_ID.h:367
AtlasDetectorID::is_forward
bool is_forward(Identifier id) const
Definition: AtlasDetectorID.h:935
IdDictDictionary::build_multirange
MultiRange build_multirange() const
Get MultiRange for full dictionary.
Definition: IdDictDictionary.cxx:299
CaloLVL1_ID::tower_context
IdContext tower_context(void) const
access to IdContext's which define which levels of fields are contained in the id
Definition: CaloLVL1_ID.cxx:54
AtlasDetectorID::m_muon_tech_bits
std::vector< unsigned int > m_muon_tech_bits
Definition: AtlasDetectorID.h:454
AtlasDetectorID::MAX_BIT
@ MAX_BIT
Definition: AtlasDetectorID.h:389
AtlasDetectorID::m_LUMI_ID
int m_LUMI_ID
Definition: AtlasDetectorID.h:411
AtlasDetectorID::initialize_from_dictionary
virtual int initialize_from_dictionary(const IdDictMgr &dict_mgr) override
Initialization from the identifier dictionary.
Definition: AtlasDetectorID.cxx:240
get_generator_info.result
result
Definition: get_generator_info.py:21
AtlasDetectorID::m_indet_part_impl
IdDictFieldImplementation m_indet_part_impl
Definition: AtlasDetectorID.h:444
CaloLVL1_ID::m_PHI_INDEX
size_type m_PHI_INDEX
Definition: CaloLVL1_ID.h:352
InDetDD::PLR
@ PLR
Definition: DetectorDesign.h:46
CaloLVL1_ID::get_expanded_id
int get_expanded_id(const Identifier &id, ExpandedIdentifier &exp_id, const IdContext *context) const
create expanded Identifier from Identifier (return == 0 for OK)
Definition: CaloLVL1_ID.cxx:586
vtune_athena.format
format
Definition: vtune_athena.py:14
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition: AthMsgStreamMacros.h:31
CaloLVL1_ID::layer_id_checks
void layer_id_checks(int pos_neg_z, int sampling, int region, int eta, int phi, int layer) const
Definition: CaloLVL1_ID.cxx:656
AtlasDetectorID::is_lar_fcal
bool is_lar_fcal(Identifier id) const
Definition: AtlasDetectorID.h:839
CaloID_Exception
Exception class for Calo Identifiers.
Definition: CaloID_Exception.h:20
CaloLVL1_ID::m_prev_eta_vec
std::vector< unsigned short > m_prev_eta_vec
Definition: CaloLVL1_ID.h:368
CaloLVL1_ID::m_REGION_INDEX
size_type m_REGION_INDEX
Definition: CaloLVL1_ID.h:350
IdDictFieldImplementation::show_to_string
std::string show_to_string(void) const
Definition: IdDictFieldImplementation.cxx:38
AtlasDetectorID::is_lar
bool is_lar(Identifier id) const
Definition: AtlasDetectorID.h:689
Pixel
Definition: PixelFEUtils.h:16
AtlasDetectorID::muon_field_value
int muon_field_value() const
Definition: AtlasDetectorID.h:620
CaloLVL1_ID::region_context
IdContext region_context(void) const
access to IdContext's which define which levels of fields are contained in the id
Definition: CaloLVL1_ID.cxx:47
CaloLVL1_ID::m_sampling_impl
IdDictFieldImplementation m_sampling_impl
Definition: CaloLVL1_ID.h:393
AtlasDetectorID::m_TRT_ID
int m_TRT_ID
Definition: AtlasDetectorID.h:409
quiet
bool quiet
Definition: TrigGlobEffCorrValidation.cxx:190
index
Definition: index.py:1
IdentifierField::get_minimum
element_type get_minimum() const
Query the values.
Definition: IdentifierField.h:59
CaloLVL1_ID::phi_max
int phi_max(const Identifier regId) const
min value of phi index (-999 == failure)
Definition: CaloLVL1_ID.cxx:495
min
constexpr double min()
Definition: ap_fixedTest.cxx:26
CaloLVL1_ID::m_phi_impl
IdDictFieldImplementation m_phi_impl
Definition: CaloLVL1_ID.h:396
AtlasDetectorID::m_HGTD_ID
int m_HGTD_ID
Definition: AtlasDetectorID.h:410
IdContext::end_index
size_type end_index() const
Definition: IdContext.h:46
AtlasDetectorID::calo_field_value
int calo_field_value() const
Definition: AtlasDetectorID.h:623
CaloLVL1_ID::m_region_impl
IdDictFieldImplementation m_region_impl
Definition: CaloLVL1_ID.h:394
PlotCalibFromCool.begin
begin
Definition: PlotCalibFromCool.py:94
ExpandedIdentifier::add
void add(element_type value)
Append a value into a new field.
skel.it
it
Definition: skel.GENtoEVGEN.py:401
CaloLVL1_ID::m_region_vec
std::vector< Identifier > m_region_vec
Definition: CaloLVL1_ID.h:365
ExpandedIdentifier
Definition: DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:102
IdDictFieldImplementation::pack
void pack(int value, Identifier &id) const
Definition: IdDictFieldImplementation.h:173
AtlasDetectorID::m_tile_dict
IdDictDictionary * m_tile_dict
Definition: AtlasDetectorID.h:438
CaloLVL1_ID::region
int region(const Identifier id) const
return region according to :
Definition: CaloLVL1_ID.h:647
ExpandedIdentifier::show
void show() const
Send to std::cout.
Definition: DetectorDescription/Identifier/src/ExpandedIdentifier.cxx:60
CaloLVL1_ID::m_dict
const IdDictDictionary * m_dict
Definition: CaloLVL1_ID.h:355
AtlasDetectorID::m_msgSvc
IMessageSvc * m_msgSvc
pointer to the message service
Definition: AtlasDetectorID.h:368
AtlasDetectorID::m_dict_version
std::string m_dict_version
Definition: AtlasDetectorID.h:397
CaloLVL1_ID::init_hashes
int init_hashes(void)
Definition: CaloLVL1_ID.cxx:939
IdentifierField::get_maximum
element_type get_maximum() const
Definition: IdentifierField.h:68
CaloLVL1_ID::m_layer_impl
IdDictFieldImplementation m_layer_impl
Definition: CaloLVL1_ID.h:397
AtlasDetectorID::m_do_checks
bool m_do_checks
Flag for subclasses to know whether or not to perform checks.
Definition: AtlasDetectorID.h:362
CaloLVL1_ID::region_id
Identifier region_id(int pos_neg_z, int sampling, int region) const
build a region (of towers) identifier
Definition: CaloLVL1_ID.h:502
Identifier::MAX_BIT
static constexpr value_type MAX_BIT
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:32
ReadOfcFromCool.field
field
Definition: ReadOfcFromCool.py:48
CaloLVL1_ID::layer_end
id_iterator layer_end() const
end iterators over layers
Definition: CaloLVL1_ID.h:622
AtlasDetectorID::m_ZDC_ID
int m_ZDC_ID
Definition: AtlasDetectorID.h:427
AtlasDetectorID::m_STGC_ID
int m_STGC_ID
Definition: AtlasDetectorID.h:421
AtlasDetectorID::lar_field_value
int lar_field_value() const
Definition: AtlasDetectorID.h:614
Muon
NRpcCablingAlg reads raw condition data and writes derived condition data to the condition store.
Definition: TrackSystemController.h:45
AthMessaging::m_imsg
std::atomic< IMessageSvc * > m_imsg
MessageSvc pointer.
Definition: AthMessaging.h:135
IdDictFieldImplementation::unpack
int unpack(Identifier id) const
Identifier manipulation methods.
Definition: IdDictFieldImplementation.h:147
python.SystemOfUnits.ms
int ms
Definition: SystemOfUnits.py:132
CaloLVL1_ID::layer_context
IdContext layer_context(void) const
access to IdContext's which define which levels of fields are contained in the id
Definition: CaloLVL1_ID.cxx:61
AtlasDetectorID::ALL_BITS
@ ALL_BITS
Definition: AtlasDetectorID.h:392
AtlasDetectorID::do_neighbours
virtual bool do_neighbours(void) const override
Neighbour initialization is performed by default One can switch or query this mode for any idHelper w...
Definition: AtlasDetectorID.cxx:464
CaloLVL1_ID::tower_end
id_iterator tower_end() const
end iterator over towers
Definition: CaloLVL1_ID.h:603
CaloLVL1_ID::layer
int layer(const Identifier id) const
return layer according to :
Definition: CaloLVL1_ID.h:665
Athena::getMessageSvc
IMessageSvc * getMessageSvc(bool quiet=false)
Definition: getMessageSvc.cxx:20
IdDictDictionary::find_field
IdDictField * find_field(const std::string &name) const
Definition: IdDictDictionary.cxx:45
AtlasDetectorID::is_lvl1_trig_towers
bool is_lvl1_trig_towers(Identifier id) const
Definition: AtlasDetectorID.h:713
IdDictRegion
Definition: IdDictRegion.h:20
IdDictDictionary::m_version
std::string m_version
Definition: IdDictDictionary.h:217
mergePhysValFiles.end
end
Definition: DataQuality/DataQualityUtils/scripts/mergePhysValFiles.py:93
AtlasDetectorID::m_LAR_ID
int m_LAR_ID
Definition: AtlasDetectorID.h:403
AtlasDetectorID::m_do_neighbours
bool m_do_neighbours
Flag for subclasses to know whether or not to perform neighbour initialization.
Definition: AtlasDetectorID.h:365
IdDictFieldImplementation::reset
void reset(Identifier &id) const
Definition: IdDictFieldImplementation.h:183
CaloLVL1_ID::region_end
id_iterator region_end() const
end iterator over regions
Definition: CaloLVL1_ID.h:585
CaloLVL1_ID::m_full_layer_range
MultiRange m_full_layer_range
Definition: CaloLVL1_ID.h:359
AtlasDetectorID::m_INDET_ID
int m_INDET_ID
Definition: AtlasDetectorID.h:402
Trk::DetectorElemType::Silicon
@ Silicon
CaloLVL1_ID::layer_id
Identifier layer_id(int pos_neg_z, int sampling, int region, int eta, int phi, int layer) const
build a layer identifier
Definition: CaloLVL1_ID.h:530
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
AtlasDetectorID::m_LUMI_PLR_ID
int m_LUMI_PLR_ID
Definition: AtlasDetectorID.h:412
CaloLVL1_ID::phi
int phi(const Identifier id) const
return phi according to :
Definition: CaloLVL1_ID.h:659
IdentifierField::match
bool match(element_type value) const
The basic match operation.
Definition: IdentifierField.cxx:71
AtlasDetectorID::PIXEL_MASK
@ PIXEL_MASK
Definition: AtlasDetectorID.h:391
AtlasDetectorID::m_tile_dm_field
Range::field m_tile_dm_field
Definition: AtlasDetectorID.h:434
CaloLVL1_ID::m_next_eta_vec
std::vector< unsigned short > m_next_eta_vec
Definition: CaloLVL1_ID.h:369
IdContext::begin_index
size_type begin_index() const
Definition: IdContext.h:45
CaloLVL1_ID::m_eta_impl
IdDictFieldImplementation m_eta_impl
Definition: CaloLVL1_ID.h:395
Tile
Definition: TileVolumeBuilder.h:43
Identifier::ALL_BITS
static constexpr value_type ALL_BITS
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:33
IdDictMgr::find_dictionary
IdDictDictionary * find_dictionary(const std::string &name) const
Access dictionary by name.
Definition: IdDictMgr.cxx:115
IdDictRegion::m_index
size_t m_index
Definition: IdDictRegion.h:43
AtlasDetectorID::ATLAS_ID
@ ATLAS_ID
Definition: AtlasDetectorID.h:388
TrigConf::MSGTC::Level
Level
Definition: Trigger/TrigConfiguration/TrigConfBase/TrigConfBase/MsgStream.h:21
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
AtlasDetectorID::m_TILE_ID
int m_TILE_ID
Definition: AtlasDetectorID.h:404
TRT
Definition: HitInfo.h:33
CaloLVL1_ID::m_LAYER_INDEX
size_type m_LAYER_INDEX
Definition: CaloLVL1_ID.h:353
CaloLVL1_ID::region_begin
id_iterator region_begin() const
begin iterator over regions
Definition: CaloLVL1_ID.h:579
StdJOSetup.msgSvc
msgSvc
Provide convenience handles for various services.
Definition: StdJOSetup.py:36
fillPileUpNoiseLumi.next
next
Definition: fillPileUpNoiseLumi.py:52
IdentifierField::empty
bool empty() const
Definition: IdentifierField.h:114
AtlasDetectorID::m_calo_dict
IdDictDictionary * m_calo_dict
Definition: AtlasDetectorID.h:440
lumiFormat.i
int i
Definition: lumiFormat.py:85
CaloLVL1_ID::m_hash_calcs
std::vector< HashCalc > m_hash_calcs
Definition: CaloLVL1_ID.h:387
IdDictFieldImplementation::set_bits
void set_bits(size_type bits, size_type bits_offset)
Definition: IdDictFieldImplementation.h:278
AtlasDetectorID::m_is_initialized_from_dict
bool m_is_initialized_from_dict
Definition: AtlasDetectorID.h:398
AtlasDetectorID::m_lar_part_impl
IdDictFieldImplementation m_lar_part_impl
Definition: AtlasDetectorID.h:446
AtlasDetectorID::indet_exp
ExpandedIdentifier indet_exp(void) const
Detector systems:
Definition: AtlasDetectorID.h:485
endmsg
#define endmsg
Definition: AnalysisConfig_Ntuple.cxx:63
CaloLVL1_ID::init_neighbors
int init_neighbors(void)
Definition: CaloLVL1_ID.cxx:1147
CaloLVL1_ID::m_prev_phi_vec
std::vector< unsigned short > m_prev_phi_vec
Definition: CaloLVL1_ID.h:366
CaloLVL1_ID::m_tower_vec
std::vector< Identifier > m_tower_vec
Definition: CaloLVL1_ID.h:363
AtlasDetectorID::m_muon_mdt_impl
IdDictFieldImplementation m_muon_mdt_impl
Definition: AtlasDetectorID.h:449
CaloLVL1_ID::eta_min
int eta_min(const Identifier regId) const
min value of eta index (-999 == failure)
Definition: CaloLVL1_ID.cxx:448
AtlasDetectorID::m_lar_fcal_module_impl
IdDictFieldImplementation m_lar_fcal_module_impl
Definition: AtlasDetectorID.h:447
IdDictFieldImplementation::bits_offset
size_type bits_offset() const
Definition: IdDictFieldImplementation.h:208
AtlasDetectorID::is_tile_dm
bool is_tile_dm(Identifier id) const
Definition: AtlasDetectorID.h:748
AtlasDetectorID::m_LAR_EM_ID
int m_LAR_EM_ID
Definition: AtlasDetectorID.h:413
IdDictDictionary::m_regions
std::vector< IdDictRegion * > m_regions
Definition: IdDictDictionary.h:235
plotBeamSpotVxVal.range
range
Definition: plotBeamSpotVxVal.py:195
checkCorrelInHIST.prefix
dictionary prefix
Definition: checkCorrelInHIST.py:391
CaloLVL1_ID::get_hash
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)
Definition: CaloLVL1_ID.cxx:144
AtlasDetectorID::m_fwd_dict
IdDictDictionary * m_fwd_dict
Definition: AtlasDetectorID.h:441
IdentifierField::get_next
bool get_next(element_type current, element_type &next) const
Definition: IdentifierField.cxx:149
AtlasDetectorID::is_tile
bool is_tile(Identifier id) const
Definition: AtlasDetectorID.h:695
AtlasDetectorID::m_TGC_ID
int m_TGC_ID
Definition: AtlasDetectorID.h:420
CaloLVL1_ID::m_DETZSIDE_INDEX
size_type m_DETZSIDE_INDEX
Definition: CaloLVL1_ID.h:348
AtlasDetectorID::m_CSC_ID
int m_CSC_ID
Definition: AtlasDetectorID.h:418
AtlasDetectorID::m_lvl1_onl_field
Range::field m_lvl1_onl_field
Definition: AtlasDetectorID.h:432
AtlasDetectorID::m_quiet
bool m_quiet
If true, suppress DEBUG/INFO messages.
Definition: AtlasDetectorID.h:371
AtlasDetectorID::m_LAR_HEC_ID
int m_LAR_HEC_ID
Definition: AtlasDetectorID.h:414
AthMessaging::msg
MsgStream & msg() const
The standard message stream.
Definition: AthMessaging.h:164
AtlasDetectorID::HelperType::Unimplemented
@ Unimplemented
SCT
Definition: SCT_ChipUtils.h:14
AtlasDetectorID::m_muon_rpc_impl
IdDictFieldImplementation m_muon_rpc_impl
Definition: AtlasDetectorID.h:450
AtlasDetDescr::fAtlasMM
@ fAtlasMM
Definition: AtlasDetTechnology.h:54
AtlasDetectorID::m_SCT_ID
int m_SCT_ID
Definition: AtlasDetectorID.h:408
AtlasDetDescr::fAtlasSTGC
@ fAtlasSTGC
Definition: AtlasDetTechnology.h:53
AtlasDetectorID::register_dict_tag
int register_dict_tag(const IdDictMgr &dict_mgr, const std::string &dict_name)
Register the file and tag names for a particular IdDict dictionary.
Definition: AtlasDetectorID.cxx:186
AtlasDetectorID::m_LAR_FCAL_ID
int m_LAR_FCAL_ID
Definition: AtlasDetectorID.h:415
AtlasDetectorID::is_calo
bool is_calo(Identifier id) const
Definition: AtlasDetectorID.h:707
AtlasDetectorID::m_MM_ID
int m_MM_ID
Definition: AtlasDetectorID.h:422
IdDictDictionary::file_name
const std::string & file_name(void) const
Access to file name.
Definition: IdDictDictionary.h:255
AtlasDetectorID::m_DET_INDEX
size_type m_DET_INDEX
Definition: AtlasDetectorID.h:399
AtlasDetectorID::tile_field_value
int tile_field_value() const
Definition: AtlasDetectorID.h:617
IdDictDictionary::get_label_value
int get_label_value(const std::string &field, const std::string &label, int &value) const
Definition: IdDictDictionary.cxx:73
CaloLVL1_ID::m_lvl1_impl
IdDictFieldImplementation m_lvl1_impl
Definition: CaloLVL1_ID.h:392
grepfile.sep
sep
Definition: grepfile.py:38
AtlasDetectorID::print_to_string
std::string print_to_string(Identifier id, const IdContext *context=0) const
or provide the printout in string form
Definition: AtlasDetectorID.cxx:408
CaloLVL1_ID::m_SAMPLING_INDEX
size_type m_SAMPLING_INDEX
Definition: CaloLVL1_ID.h:349
id
SG::auxid_t id
Definition: Control/AthContainers/Root/debug.cxx:227
CaloLVL1_ID::m_region_hash_max
size_type m_region_hash_max
Definition: CaloLVL1_ID.h:362
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
python.subdetectors.mmg.ids
ids
Definition: mmg.py:8
CaloLVL1_ID::m_pnz_reg_impl
IdDictFieldImplementation m_pnz_reg_impl
Definition: CaloLVL1_ID.h:399
AtlasDetectorID::m_indet_dict
IdDictDictionary * m_indet_dict
Definition: AtlasDetectorID.h:436
AtlasDetectorID::m_calo_side_impl
IdDictFieldImplementation m_calo_side_impl
Definition: AtlasDetectorID.h:445
AtlasDetectorID::is_indet
bool is_indet(Identifier id) const
Definition: AtlasDetectorID.h:683
CaloLVL1_ID::tower_hash_binary_search
IdentifierHash tower_hash_binary_search(Identifier towerId) const
create hash id from tower id – method NOT optimised, please use tower_hash() above
Definition: CaloLVL1_ID.h:735
AtlasDetectorID::m_dict_names
std::vector< std::string > m_dict_names
List of dictionary names used by this helper.
Definition: AtlasDetectorID.h:375
CaloLVL1_ID::eta
int eta(const Identifier id) const
return eta according to :
Definition: CaloLVL1_ID.h:653
AtlasDetectorID::m_lar_dm_field
Range::field m_lar_dm_field
Definition: AtlasDetectorID.h:433
Range
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
Definition: DetectorDescription/Identifier/Identifier/Range.h:29
AtlasDetectorID::calo_exp
ExpandedIdentifier calo_exp(void) const
Definition: AtlasDetectorID.h:513
AtlasDetectorID::fwd_exp
ExpandedIdentifier fwd_exp(void) const
Definition: AtlasDetectorID.h:520
AtlasDetectorID::m_muon_station_name_impl
IdDictFieldImplementation m_muon_station_name_impl
Definition: AtlasDetectorID.h:448
AtlasDetectorID::m_MDT_ID
int m_MDT_ID
Definition: AtlasDetectorID.h:417
CaloLVL1_ID::m_ETA_INDEX
size_type m_ETA_INDEX
Definition: CaloLVL1_ID.h:351
CaloLVL1_ID::m_lvl1_region_index
size_type m_lvl1_region_index
Definition: CaloLVL1_ID.h:346
CaloLVL1_ID::m_full_region_range
MultiRange m_full_region_range
Definition: CaloLVL1_ID.h:357
IdDictDictionary
Definition: IdDictDictionary.h:30
AtlasDetectorID::m_RPC_ID
int m_RPC_ID
Definition: AtlasDetectorID.h:419
CaloLVL1_ID::region_id_checks
void region_id_checks(int pos_neg_z, int sampling, int region) const
Definition: CaloLVL1_ID.cxx:643
CaloLVL1_ID::pos_neg_z
int pos_neg_z(const Identifier id) const
return pos_neg_z according to :
Definition: CaloLVL1_ID.h:635
MultiRange::match
int match(const ExpandedIdentifier &id) const
Match an identifier.
Definition: MultiRange.cxx:57
AtlasDetDescr::fAtlasRPC
@ fAtlasRPC
Definition: AtlasDetTechnology.h:51
CaloLVL1_ID::m_layer_vec
std::vector< Identifier > m_layer_vec
Definition: CaloLVL1_ID.h:364
DeMoScan.index
string index
Definition: DeMoScan.py:364
AtlasDetectorID::is_lumi
bool is_lumi(Identifier id) const
Definition: AtlasDetectorID.h:806
AtlasDetectorID::reinitialize
bool reinitialize(const IdDictMgr &dict_mgr)
Test whether an idhelper should be reinitialized based on the change of tags.
Definition: AtlasDetectorID.cxx:206
AtlasDetectorID::is_lar_dm
bool is_lar_dm(Identifier id) const
LAr/Tile dead material:
Definition: AtlasDetectorID.h:736
CaloLVL1_ID::tower_id_checks
void tower_id_checks(int pos_neg_z, int sampling, int region, int eta, int phi) const
Definition: CaloLVL1_ID.cxx:606
AtlasDetectorID::is_muon
bool is_muon(Identifier id) const
Definition: AtlasDetectorID.h:701
IdDictDictionary::m_name
std::string m_name
Definition: IdDictDictionary.h:216
AtlasDetectorID::m_det_impl
IdDictFieldImplementation m_det_impl
Definition: AtlasDetectorID.h:443
CaloCell
Data object for each calorimeter readout cell.
Definition: CaloCell.h:57
AtlasDetectorID::show_to_string
std::string show_to_string(Identifier id, const IdContext *context=0, char sep='.') const
or provide the printout in string form
Definition: AtlasDetectorID.cxx:350
CaloLVL1_ID::NOT_VALID_HASH
@ NOT_VALID_HASH
Definition: CaloLVL1_ID.h:320
AtlasDetectorID::lar_exp
ExpandedIdentifier lar_exp(void) const
Definition: AtlasDetectorID.h:492
AtlasDetectorID::m_file_names
std::vector< std::string > m_file_names
List of dictionary file names used by this helper.
Definition: AtlasDetectorID.h:378
ATH_MSG_WARNING
#define ATH_MSG_WARNING(x)
Definition: AthMsgStreamMacros.h:32
AtlasDetDescr::fAtlasCSC
@ fAtlasCSC
Definition: AtlasDetTechnology.h:50
AthMessaging::m_nm
std::string m_nm
Message source name.
Definition: AthMessaging.h:129
MultiRange::size
size_type size() const
Definition: MultiRange.cxx:70
DeMoScan.first
bool first
Definition: DeMoScan.py:536
AtlasDetDescr::fAtlasMDT
@ fAtlasMDT
Definition: AtlasDetTechnology.h:49
DEBUG
#define DEBUG
Definition: page_access.h:11
python.CaloCondTools.log
log
Definition: CaloCondTools.py:20
IdentifierField
This is the individual specification for the range of one ExpandedIdentifier IdentifierField.
Definition: IdentifierField.h:21
AtlasDetectorID::m_CALO_ID
int m_CALO_ID
Definition: AtlasDetectorID.h:406
CaloLVL1_ID::tower_begin
id_iterator tower_begin() const
begin iterator over towers
Definition: CaloLVL1_ID.h:597
CaloLVL1_ID::sampling
int sampling(const Identifier id) const
return sampling according to :
Definition: CaloLVL1_ID.h:641
AtlasDetectorID::m_ALFA_ID
int m_ALFA_ID
Definition: AtlasDetectorID.h:424
CaloLVL1_ID::m_calo_impl
IdDictFieldImplementation m_calo_impl
Definition: CaloLVL1_ID.h:391
ExpandedIdentifier::clear
void clear()
Erase all fields.
IdentifierField::get_previous
bool get_previous(element_type current, element_type &previous) const
Returns false if previous/next is at end of range, or not possible.
Definition: IdentifierField.cxx:106
AtlasDetectorID::m_MUON_ID
int m_MUON_ID
Definition: AtlasDetectorID.h:405
AtlasDetectorID::m_lar_dict
IdDictDictionary * m_lar_dict
Definition: AtlasDetectorID.h:437
CaloLVL1_ID::m_CALO_INDEX
size_type m_CALO_INDEX
Definition: CaloLVL1_ID.h:347
Identifier::value_type
unsigned long long value_type
Definition: DetectorDescription/Identifier/Identifier/Identifier.h:27
AtlasDetectorID::m_PIXEL_ID
int m_PIXEL_ID
Definition: AtlasDetectorID.h:407
AtlasDetectorID::is_lvl1_online
bool is_lvl1_online(Identifier id) const
Definition: AtlasDetectorID.h:724
CaloLVL1_ID::initLevelsFromDict
int initLevelsFromDict(void)
Definition: CaloLVL1_ID.cxx:693
CaloLVL1_ID::tower_hash
IdentifierHash tower_hash(Identifier towerId) const
create hash id from tower id
Definition: CaloLVL1_ID.h:728
AtlasDetDescr::fAtlasTGC
@ fAtlasTGC
Definition: AtlasDetTechnology.h:52
CaloCondBlobAlgs_fillNoiseFromASCII.fields
fields
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:106
AthMessaging::initMessaging
void initMessaging() const
Initialize our message level and MessageSvc.
Definition: AthMessaging.cxx:39
IdDictField
Definition: IdDictField.h:15
MultiRange::cardinality
size_type cardinality() const
Computes a possible cardinality from all ranges.
Definition: MultiRange.cxx:82
IdentifierHash
This is a "hash" representation of an Identifier. This encodes a 32 bit index which can be used to lo...
Definition: IdentifierHash.h:25
AtlasDetectorID::m_BCM_ID
int m_BCM_ID
Definition: AtlasDetectorID.h:425
Analysis::TT
@ TT
Definition: JpsiFinder.h:36
AthMessaging::m_msg_tls
boost::thread_specific_ptr< MsgStream > m_msg_tls
MsgStream instance (a std::cout like with print-out levels)
Definition: AthMessaging.h:132
CaloLVL1_ID::m_layer_hash_max
size_type m_layer_hash_max
Definition: CaloLVL1_ID.h:361
CaloLVL1_ID::m_full_tower_range
MultiRange m_full_tower_range
Definition: CaloLVL1_ID.h:358
LArCellBinning.etamin
etamin
Definition: LArCellBinning.py:137
ExpandedIdentifier::element_type
int element_type
Definition: DetectorDescription/Identifier/Identifier/ExpandedIdentifier.h:106
CaloLVL1_ID::tower_id
Identifier tower_id(int pos_neg_z, int sampling, int region, int eta, int phi) const
build a tower identifier
Definition: CaloLVL1_ID.h:429
AtlasDetectorID::do_checks
virtual bool do_checks(void) const override
Checks are performed by default in debug compilation and NOT in optimized compilation.
Definition: AtlasDetectorID.cxx:457
IdContext
This class saves the "context" of an expanded identifier (ExpandedIdentifier) for compact or hash ver...
Definition: IdContext.h:26
AtlasDetectorID::m_dict_tags
std::vector< std::string > m_dict_tags
List of dictionary versions used by this helper.
Definition: AtlasDetectorID.h:381
AtlasDetectorID::m_SUBDET_INDEX
size_type m_SUBDET_INDEX
Definition: AtlasDetectorID.h:400
CaloLVL1_ID::layer_begin
id_iterator layer_begin() const
begin iterators over layers
Definition: CaloLVL1_ID.h:616
CaloLVL1_ID::m_tower_hash_max
size_type m_tower_hash_max
Definition: CaloLVL1_ID.h:360
AtlasDetectorID::m_FWD_ID
int m_FWD_ID
Definition: AtlasDetectorID.h:423
AtlasDetectorID::m_lvl1_field
Range::field m_lvl1_field
Definition: AtlasDetectorID.h:431
IdDictFieldImplementation::size_type
Identifier::size_type size_type
Definition: IdDictFieldImplementation.h:62
AtlasDetectorID::m_LUCID_ID
int m_LUCID_ID
Definition: AtlasDetectorID.h:426
IdDictFieldImplementation::bits
size_type bits() const
Definition: IdDictFieldImplementation.h:202
Identifier
Definition: IdentifierFieldParser.cxx:14