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

#include <IdDictAltRegions.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 20 of file IdDictAltRegions.h.

Member Typedef Documentation

◆ map_iterator

typedef map_type::iterator IdDictAltRegions::map_iterator

Definition at line 37 of file IdDictAltRegions.h.

◆ map_type

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

Definition at line 36 of file IdDictAltRegions.h.

◆ value_type

typedef map_type::value_type IdDictAltRegions::value_type

Definition at line 38 of file IdDictAltRegions.h.

Constructor & Destructor Documentation

◆ IdDictAltRegions()

IdDictAltRegions::IdDictAltRegions ( )

Definition at line 15 of file IdDictAltRegions.cxx.

16  :
18 }

◆ ~IdDictAltRegions()

IdDictAltRegions::~IdDictAltRegions ( )

Definition at line 20 of file IdDictAltRegions.cxx.

20  {
23  for (; first != last; ++first) {
24  delete (*first).second;
25  }
26 }

Member Function Documentation

◆ build_range()

Range IdDictAltRegions::build_range ( ) const
virtual

Implements IdDictDictEntry.

Definition at line 106 of file IdDictAltRegions.cxx.

106  {
107  Range result;
108 
110  return(result);
111 }

◆ clear()

void IdDictAltRegions::clear ( )
virtual

Implements IdDictDictEntry.

Definition at line 94 of file IdDictAltRegions.cxx.

94  {
95  map_iterator first = m_regions.begin();
96  map_iterator last = m_regions.end();
97 
98  for (; first != last; ++first) {
99  (*first).second->clear();
100  delete (*first).second;
101  }
102  m_regions.clear();
103 }

◆ generate_implementation()

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

Implements IdDictDictEntry.

Definition at line 59 of file IdDictAltRegions.cxx.

61  {
62  // Find the region given by the tag
63  map_iterator region_it = m_regions.find(tag);
64 
65  if (region_it == m_regions.end()) {
66  std::cout << "IdDictAltRegions::generate_implementation could not find region for tag "
67  << tag << " Keys in map " << std::endl;
68  map_iterator first = m_regions.begin();
69  map_iterator last = m_regions.end();
70  int i = 0;
71  for (; first != last; ++first, ++i) {
72  std::cout << " i " << i << " key " << (*first).first;
73  }
74  std::cout << std::endl;
75  return;
76  }
77  m_selected_region = (*region_it).second;
78 
79 
81 }

◆ group_name()

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

Implements IdDictDictEntry.

Definition at line 29 of file IdDictAltRegions.cxx.

29  {
30  std::string result;
31  if (1 <= m_regions.size()) result = (*m_regions.begin()).second->group_name();
32  return(result);
33 }

◆ reset_implementation()

void IdDictAltRegions::reset_implementation ( )
virtual

Implements IdDictDictEntry.

Definition at line 84 of file IdDictAltRegions.cxx.

◆ resolve_references()

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

Implements IdDictDictEntry.

Definition at line 46 of file IdDictAltRegions.cxx.

47  {
48  // We assume that it is not necessary to select only those with
49  // the correct tag -> send to all in map
50  map_iterator first = m_regions.begin();
51  map_iterator last = m_regions.end();
52 
53  for (; first != last; ++first) {
54  (*first).second->resolve_references(idd, dictionary);
55  }
56 }

◆ set_index()

void IdDictAltRegions::set_index ( size_t  index)
virtual

Implements IdDictDictEntry.

Definition at line 36 of file IdDictAltRegions.cxx.

36  {
37  map_iterator first = m_regions.begin();
38  map_iterator last = m_regions.end();
39 
40  for (; first != last; ++first) {
41  (*first).second->set_index(index);
42  }
43 }

◆ verify()

bool IdDictAltRegions::verify ( ) const
virtual

Implements IdDictDictEntry.

Definition at line 89 of file IdDictAltRegions.cxx.

89  {
90  return(true);
91 }

Member Data Documentation

◆ m_regions

map_type IdDictAltRegions::m_regions

Definition at line 39 of file IdDictAltRegions.h.

◆ m_selected_region

IdDictRegion* IdDictAltRegions::m_selected_region {}

Definition at line 40 of file IdDictAltRegions.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: IdDictAltRegions.h:40
IdDictRegion::build_range
Range build_range() const
Definition: IdDictRegion.cxx:147
IdDictRegion::reset_implementation
void reset_implementation()
Definition: IdDictRegion.cxx:101
lumiFormat.i
int i
Definition: lumiFormat.py:85
IdDictAltRegions::map_iterator
map_type::iterator map_iterator
Definition: IdDictAltRegions.h:37
IdDictRegion::generate_implementation
void generate_implementation(const IdDictMgr &idd, IdDictDictionary &dictionary, const std::string &tag="")
Definition: IdDictRegion.cxx:37
master.dictionary
dictionary
Definition: master.py:47
IdDictAltRegions::m_regions
map_type m_regions
Definition: IdDictAltRegions.h:39
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