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

This class is used to build the CaloTTDescriptors and CaloTTDetDescrRegions carrying the geometry information of the Calorimeter Trigger Towers. More...

#include <CaloTTDescrManager.h>

Collaboration diagram for CaloTTDescrManager:

Public Types

typedef std::vector< CaloTTDescrRegion * > calo_region_vec
 
typedef calo_region_vec::size_type calo_region_vec_size
 
typedef calo_region_vec::const_iterator calo_region_const_iterator
 
typedef std::vector< CaloTTDescriptor * > calo_descr_vec
 
typedef calo_descr_vec::size_type calo_descr_size
 
typedef calo_descr_vec::const_iterator calo_descr_const_iterator
 

Public Member Functions

 CaloTTDescrManager (void)
 
 ~CaloTTDescrManager ()
 
CaloTTDescrRegionfind_calo_region (const Identifier &tower_id) const
 Access to the Det Descr region (==Trigger Tower) corresponding to a TT identifier. More...
 
calo_region_const_iterator calo_region_begin (void) const
 Begin iterator on Det Descr regions (== Trigger Towers) More...
 
calo_region_const_iterator calo_region_end (void) const
 End iterator on Det Descr regions (== Trigger Towers) More...
 
calo_region_vec_size calo_region_size (void) const
 Total number of Det Descr regions (i.e. More...
 
calo_descr_const_iterator calo_descriptors_begin (void) const
 Begin iterator on descriptors. More...
 
calo_descr_const_iterator calo_descriptors_end (void) const
 End iterator on descriptors. More...
 
calo_descr_size calo_descriptors_size (void) const
 Total number of descriptors. More...
 
const CaloLVL1_IDget_lvl1_id (void) const
 access to the offline identifier helper More...
 
void print (void) const
 
void initialize (void)
 dummy. More...
 
bool is_initialized (void) const
 
void add (CaloTTDescrRegion *region)
 Insertion in the vector of Det Descr regions (== Trigger Towers) More...
 
void add (CaloTTDescriptor *descriptor)
 Insertion in the vector of descriptors. More...
 
void set_helper (const CaloLVL1_ID *id_helper)
 set the helper used to decode the TT offline identifiers More...
 

Private Types

typedef std::map< Identifier, CaloTTDescrRegion * > calo_region_map
 

Private Member Functions

 CaloTTDescrManager (const CaloTTDescrManager &)
 undefined semantics More...
 
CaloTTDescrManageroperator= (const CaloTTDescrManager &)
 
void clear (void)
 Delete towers and descriptors. More...
 

Private Attributes

bool m_is_initialized
 
const CaloLVL1_IDm_calo_lvl1_id
 Helper used to decode the TT offline identifiers. More...
 
calo_region_vec m_calo_region_vec
 vector of Det Descr regions (== Trigger Towers) More...
 
calo_region_map m_calo_region_map
 
calo_descr_vec m_calo_descr_vec
 vector of descriptors More...
 

Detailed Description

This class is used to build the CaloTTDescriptors and CaloTTDetDescrRegions carrying the geometry information of the Calorimeter Trigger Towers.

It is initialized by the CaloTTMgrDetDescrCnv converter from package Calorimeter/CaloCnv/CaloTTDetDescrCnv

Warning
The hadronic part of the FCAL calorimeter calorimeter is constructed with 4 channels in eta. These 4 channels actually correspond to 2 channels in eta FOR EACH of the hadronic samplings, i.e. FCAL2 and FCAL3. Therefore the geometry of these channels is wrong.

Access to the DetDescrElements:
----------------------------—

Access is either individually using identifiers and a find method, or one can iterate over the whole set.


The information provided:
----------------------—

Each DetDescrElement provides access to a detector descriptor object.


Access to CaloTTDescrManager:
--------------------------—

This is NOT a singleton class anymore one now has to access the manager from the detector store


Initialization of DetDescrElements:
--------------------------------—

Once an initialization has been performed, subsequent calls are ignored. Also, the method:

       bool is_initialized()
     returns true. 
*

Definition at line 69 of file CaloTTDescrManager.h.

Member Typedef Documentation

◆ calo_descr_const_iterator

typedef calo_descr_vec::const_iterator CaloTTDescrManager::calo_descr_const_iterator

Definition at line 79 of file CaloTTDescrManager.h.

◆ calo_descr_size

typedef calo_descr_vec::size_type CaloTTDescrManager::calo_descr_size

Definition at line 78 of file CaloTTDescrManager.h.

◆ calo_descr_vec

Definition at line 77 of file CaloTTDescrManager.h.

◆ calo_region_const_iterator

typedef calo_region_vec::const_iterator CaloTTDescrManager::calo_region_const_iterator

Definition at line 75 of file CaloTTDescrManager.h.

◆ calo_region_map

Definition at line 130 of file CaloTTDescrManager.h.

◆ calo_region_vec

Definition at line 73 of file CaloTTDescrManager.h.

◆ calo_region_vec_size

typedef calo_region_vec::size_type CaloTTDescrManager::calo_region_vec_size

Definition at line 74 of file CaloTTDescrManager.h.

Constructor & Destructor Documentation

◆ CaloTTDescrManager() [1/2]

CaloTTDescrManager::CaloTTDescrManager ( void  )

Definition at line 23 of file CaloTTDescrManager.cxx.

24  :
25  m_is_initialized(false),
26  m_calo_lvl1_id(nullptr)
27 {
28 }

◆ ~CaloTTDescrManager()

CaloTTDescrManager::~CaloTTDescrManager ( )

Definition at line 30 of file CaloTTDescrManager.cxx.

31 {
32 // Remove regions and descriptors
33  clear();
34 }

◆ CaloTTDescrManager() [2/2]

CaloTTDescrManager::CaloTTDescrManager ( const CaloTTDescrManager )
private

undefined semantics

Member Function Documentation

◆ add() [1/2]

void CaloTTDescrManager::add ( CaloTTDescriptor descriptor)

Insertion in the vector of descriptors.

Definition at line 115 of file CaloTTDescrManager.cxx.

116 {
117  m_calo_descr_vec.push_back(descriptor);
118 }

◆ add() [2/2]

void CaloTTDescrManager::add ( CaloTTDescrRegion region)

Insertion in the vector of Det Descr regions (== Trigger Towers)

Definition at line 107 of file CaloTTDescrManager.cxx.

108 {
109  m_calo_region_vec.push_back(region);
110  // m_calo_region_map[region->identify()] = region;
111  m_calo_region_map.insert(std::pair<Identifier, CaloTTDescrRegion*>((region->identify()),region));
112 }

◆ calo_descriptors_begin()

CaloTTDescrManager::calo_descr_const_iterator CaloTTDescrManager::calo_descriptors_begin ( void  ) const

Begin iterator on descriptors.

Definition at line 69 of file CaloTTDescrManager.cxx.

70 {
71  return m_calo_descr_vec.begin();
72 }

◆ calo_descriptors_end()

CaloTTDescrManager::calo_descr_const_iterator CaloTTDescrManager::calo_descriptors_end ( void  ) const

End iterator on descriptors.

Definition at line 75 of file CaloTTDescrManager.cxx.

76 {
77  return m_calo_descr_vec.end();
78 }

◆ calo_descriptors_size()

CaloTTDescrManager::calo_descr_size CaloTTDescrManager::calo_descriptors_size ( void  ) const

Total number of descriptors.

Definition at line 81 of file CaloTTDescrManager.cxx.

82 {
83  return m_calo_descr_vec.size();
84 }

◆ calo_region_begin()

CaloTTDescrManager::calo_region_const_iterator CaloTTDescrManager::calo_region_begin ( void  ) const

Begin iterator on Det Descr regions (== Trigger Towers)

Definition at line 51 of file CaloTTDescrManager.cxx.

52 {
53  return m_calo_region_vec.begin();
54 }

◆ calo_region_end()

CaloTTDescrManager::calo_region_const_iterator CaloTTDescrManager::calo_region_end ( void  ) const

End iterator on Det Descr regions (== Trigger Towers)

Definition at line 57 of file CaloTTDescrManager.cxx.

58 {
59  return m_calo_region_vec.end();
60 }

◆ calo_region_size()

CaloTTDescrManager::calo_region_vec_size CaloTTDescrManager::calo_region_size ( void  ) const

Total number of Det Descr regions (i.e.

Trigger Towers)

Definition at line 63 of file CaloTTDescrManager.cxx.

64 {
65  return m_calo_region_vec.size();
66 }

◆ clear()

void CaloTTDescrManager::clear ( void  )
private

Delete towers and descriptors.

Definition at line 143 of file CaloTTDescrManager.cxx.

144 {
145 // Remove regions and descriptors
148  for (; first != last; ++first) delete (*first);
149  m_calo_region_vec.clear();
150 
153  for (; first2 != last2; ++first2) delete (*first2);
154  m_calo_descr_vec.clear();
155 
156  m_is_initialized = false;
157 }

◆ find_calo_region()

CaloTTDescrRegion * CaloTTDescrManager::find_calo_region ( const Identifier tower_id) const

Access to the Det Descr region (==Trigger Tower) corresponding to a TT identifier.

Definition at line 37 of file CaloTTDescrManager.cxx.

38 {
39  calo_region_map::const_iterator p = m_calo_region_map.find(region);
40  if(p != m_calo_region_map.end()) {
41  return p->second;
42  } else {
43  // no CaloTTDescrRegion corresponding to Identifier
44  // this is expected as some Identifiers have no real counter part)
45  return(nullptr);
46  }
47 
48 }

◆ get_lvl1_id()

const CaloLVL1_ID * CaloTTDescrManager::get_lvl1_id ( void  ) const

access to the offline identifier helper

Definition at line 86 of file CaloTTDescrManager.cxx.

87 {
88  return (m_calo_lvl1_id);
89 }

◆ initialize()

void CaloTTDescrManager::initialize ( void  )

dummy.

only sets is_initialized. actual initialization performed in CaloTTMgrDetDescrCnv

Definition at line 94 of file CaloTTDescrManager.cxx.

95 {
96  // initialization actually done in CaloTTMgrDetDescrCnv
97  m_is_initialized = true;
98 }

◆ is_initialized()

bool CaloTTDescrManager::is_initialized ( void  ) const

Definition at line 100 of file CaloTTDescrManager.cxx.

101 {
102  return m_is_initialized;
103 }

◆ operator=()

CaloTTDescrManager& CaloTTDescrManager::operator= ( const CaloTTDescrManager )
private

◆ print()

void CaloTTDescrManager::print ( void  ) const

Definition at line 128 of file CaloTTDescrManager.cxx.

129 {
130  std::cout << "CaloTTDescrManager : " << std::endl;
131  std::cout << " Number of Calo TT Regions : " << m_calo_region_vec.size() << std::endl;
132  std::cout << " Number of Calo descriptors : " << m_calo_descr_vec.size() << std::endl;
133 
136 
137  for (; first != last; ++first) {
138  (*first)->print();
139  }
140 
141 }

◆ set_helper()

void CaloTTDescrManager::set_helper ( const CaloLVL1_ID id_helper)

set the helper used to decode the TT offline identifiers

Definition at line 121 of file CaloTTDescrManager.cxx.

122 {
123  m_calo_lvl1_id = id_helper;
124 }

Member Data Documentation

◆ m_calo_descr_vec

calo_descr_vec CaloTTDescrManager::m_calo_descr_vec
private

vector of descriptors

Definition at line 139 of file CaloTTDescrManager.h.

◆ m_calo_lvl1_id

const CaloLVL1_ID* CaloTTDescrManager::m_calo_lvl1_id
private

Helper used to decode the TT offline identifiers.

Definition at line 134 of file CaloTTDescrManager.h.

◆ m_calo_region_map

calo_region_map CaloTTDescrManager::m_calo_region_map
private

Definition at line 137 of file CaloTTDescrManager.h.

◆ m_calo_region_vec

calo_region_vec CaloTTDescrManager::m_calo_region_vec
private

vector of Det Descr regions (== Trigger Towers)

Definition at line 136 of file CaloTTDescrManager.h.

◆ m_is_initialized

bool CaloTTDescrManager::m_is_initialized
private

Definition at line 132 of file CaloTTDescrManager.h.


The documentation for this class was generated from the following files:
CaloTTDescrManager::calo_region_end
calo_region_const_iterator calo_region_end(void) const
End iterator on Det Descr regions (== Trigger Towers)
Definition: CaloTTDescrManager.cxx:57
CaloTTDescrManager::m_calo_descr_vec
calo_descr_vec m_calo_descr_vec
vector of descriptors
Definition: CaloTTDescrManager.h:139
CaloTTDescrManager::calo_region_const_iterator
calo_region_vec::const_iterator calo_region_const_iterator
Definition: CaloTTDescrManager.h:75
CaloTTDescrManager::m_calo_region_vec
calo_region_vec m_calo_region_vec
vector of Det Descr regions (== Trigger Towers)
Definition: CaloTTDescrManager.h:136
python.utils.AtlRunQueryDQUtils.p
p
Definition: AtlRunQueryDQUtils.py:210
CaloTTDescrManager::m_calo_region_map
calo_region_map m_calo_region_map
Definition: CaloTTDescrManager.h:137
CaloTTDescrManager::calo_descr_const_iterator
calo_descr_vec::const_iterator calo_descr_const_iterator
Definition: CaloTTDescrManager.h:79
CaloTTDescrRegion::identify
virtual Identifier identify() const
Definition: CaloTTDescrRegion.cxx:22
CaloTTDescrManager::m_calo_lvl1_id
const CaloLVL1_ID * m_calo_lvl1_id
Helper used to decode the TT offline identifiers.
Definition: CaloTTDescrManager.h:134
CaloTTDescrManager::clear
void clear(void)
Delete towers and descriptors.
Definition: CaloTTDescrManager.cxx:143
CaloTTDescrManager::calo_region_begin
calo_region_const_iterator calo_region_begin(void) const
Begin iterator on Det Descr regions (== Trigger Towers)
Definition: CaloTTDescrManager.cxx:51
DeMoScan.first
bool first
Definition: DeMoScan.py:536
CaloTTDescrManager::m_is_initialized
bool m_is_initialized
Definition: CaloTTDescrManager.h:132