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

#include <IdDictDefs.h>

Inheritance diagram for IdDictAltRegions:
Collaboration diagram for IdDictAltRegions:

Public Types

typedef std::map< std::string, IdDictRegion * > map_type
 
typedef map_type::iterator map_iterator
 
typedef map_type::value_type value_type
 

Public Member Functions

 IdDictAltRegions ()
 
 ~IdDictAltRegions ()
 
std::string group_name () const
 
Range build_range () const
 
void set_index (size_t index)
 
void resolve_references (const IdDictMgr &idd, IdDictDictionary &dictionary)
 
void generate_implementation (const IdDictMgr &idd, IdDictDictionary &dictionary, const std::string &tag="")
 
void reset_implementation ()
 
bool verify () const
 
void clear ()
 

Public Attributes

map_type m_regions
 
IdDictRegionm_selected_region
 

Detailed Description

Definition at line 401 of file IdDictDefs.h.

Member Typedef Documentation

◆ map_iterator

typedef map_type::iterator IdDictAltRegions::map_iterator

Definition at line 424 of file IdDictDefs.h.

◆ map_type

typedef std::map<std::string, IdDictRegion* > IdDictAltRegions::map_type

Definition at line 423 of file IdDictDefs.h.

◆ value_type

typedef map_type::value_type IdDictAltRegions::value_type

Definition at line 425 of file IdDictDefs.h.

Constructor & Destructor Documentation

◆ IdDictAltRegions()

IdDictAltRegions::IdDictAltRegions ( )

Definition at line 2185 of file IdDictMgr.cxx.

2186  :
2188 {
2189 }

◆ ~IdDictAltRegions()

IdDictAltRegions::~IdDictAltRegions ( )

Definition at line 2191 of file IdDictMgr.cxx.

2192 {
2195  for (; first != last; ++first) {
2196  delete (*first).second;
2197  }
2198 }

Member Function Documentation

◆ build_range()

Range IdDictAltRegions::build_range ( ) const
virtual

Implements IdDictDictEntry.

Definition at line 2285 of file IdDictMgr.cxx.

2285  {
2286  Range result;
2287 
2289  return (result);
2290 }

◆ clear()

void IdDictAltRegions::clear ( )
virtual

Implements IdDictDictEntry.

Definition at line 2273 of file IdDictMgr.cxx.

2274 {
2275  map_iterator first = m_regions.begin();
2276  map_iterator last = m_regions.end();
2277  for (; first != last; ++first) {
2278  (*first).second->clear();
2279  delete (*first).second;
2280  }
2281  m_regions.clear();
2282 }

◆ generate_implementation()

void IdDictAltRegions::generate_implementation ( const IdDictMgr idd,
IdDictDictionary dictionary,
const std::string &  tag = "" 
)
virtual

Implements IdDictDictEntry.

Definition at line 2234 of file IdDictMgr.cxx.

2237 {
2238  // Find the region given by the tag
2239  map_iterator region_it = m_regions.find(tag);
2240  if(region_it == m_regions.end()) {
2241  std::cout << "IdDictAltRegions::generate_implementation could not find region for tag "
2242  << tag << " Keys in map " << std::endl;
2243  map_iterator first = m_regions.begin();
2244  map_iterator last = m_regions.end();
2245  int i = 0;
2246  for (; first != last; ++first, ++i) {
2247  std::cout << " i " << i << " key " << (*first).first;
2248  }
2249  std::cout << std::endl;
2250  return;
2251  }
2252  m_selected_region = (*region_it).second;
2253 
2254 
2256 
2257 }

◆ group_name()

std::string IdDictAltRegions::group_name ( ) const
virtual

Implements IdDictDictEntry.

Definition at line 2201 of file IdDictMgr.cxx.

2202 {
2203  std::string result;
2204  if (1 <= m_regions.size()) result = (*m_regions.begin()).second->group_name();
2205  return (result);
2206 }

◆ reset_implementation()

void IdDictAltRegions::reset_implementation ( )
virtual

Implements IdDictDictEntry.

Definition at line 2260 of file IdDictMgr.cxx.

◆ resolve_references()

void IdDictAltRegions::resolve_references ( const IdDictMgr idd,
IdDictDictionary dictionary 
)
virtual

Implements IdDictDictEntry.

Definition at line 2221 of file IdDictMgr.cxx.

2223 {
2224  // We assume that it is not necessary to select only those with
2225  // the correct tag -> send to all in map
2226  map_iterator first = m_regions.begin();
2227  map_iterator last = m_regions.end();
2228  for (; first != last; ++first) {
2229  (*first).second->resolve_references (idd, dictionary);
2230  }
2231 }

◆ set_index()

void IdDictAltRegions::set_index ( size_t  index)
virtual

Implements IdDictDictEntry.

Definition at line 2210 of file IdDictMgr.cxx.

2211 {
2212  map_iterator first = m_regions.begin();
2213  map_iterator last = m_regions.end();
2214  for (; first != last; ++first) {
2215  (*first).second->set_index (index);
2216  }
2217 }

◆ verify()

bool IdDictAltRegions::verify ( ) const
virtual

Implements IdDictDictEntry.

Definition at line 2267 of file IdDictMgr.cxx.

2268 {
2269  return (true);
2270 }

Member Data Documentation

◆ m_regions

map_type IdDictAltRegions::m_regions

Definition at line 426 of file IdDictDefs.h.

◆ m_selected_region

IdDictRegion* IdDictAltRegions::m_selected_region

Definition at line 427 of file IdDictDefs.h.


The documentation for this class was generated from the following files:
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
python.SystemOfUnits.second
int second
Definition: SystemOfUnits.py:120
get_generator_info.result
result
Definition: get_generator_info.py:21
index
Definition: index.py:1
IdDictAltRegions::m_selected_region
IdDictRegion * m_selected_region
Definition: IdDictDefs.h:427
IdDictRegion::build_range
Range build_range() const
Definition: IdDictMgr.cxx:2420
IdDictRegion::reset_implementation
void reset_implementation()
Definition: IdDictMgr.cxx:2384
lumiFormat.i
int i
Definition: lumiFormat.py:85
IdDictAltRegions::map_iterator
map_type::iterator map_iterator
Definition: IdDictDefs.h:424
IdDictRegion::generate_implementation
void generate_implementation(const IdDictMgr &idd, IdDictDictionary &dictionary, const std::string &tag="")
Definition: IdDictMgr.cxx:2318
master.dictionary
dictionary
Definition: master.py:47
IdDictAltRegions::m_regions
map_type m_regions
Definition: IdDictDefs.h:426
Range
A Range describes the possible ranges for the field values of an ExpandedIdentifier.
Definition: DetectorDescription/Identifier/Identifier/Range.h:29
DeMoScan.first
bool first
Definition: DeMoScan.py:536
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24