ATLAS Offline Software
IdDictGroup.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef IDDICT_IdDictGroup_H
6 #define IDDICT_IdDictGroup_H
7 
8 #include <string>
9 #include <vector>
10 
11 class IdDictDictEntry;
12 class IdDictRegion;
13 class IdDictMgr;
14 class IdDictDictionary;
15 class MultiRange;
16 
17 
18 
19 class IdDictGroup{
20 public:
21  IdDictGroup ();
22  IdDictGroup (const std::string& name);
23  ~IdDictGroup ();
24 
25  const std::string& name();
26  const std::vector<IdDictDictEntry*>& entries();
27  const std::vector<IdDictRegion*>& regions();
28 
30  MultiRange build_multirange () const;
32 
33  void resolve_references (const IdDictMgr& idd,
35  size_t& index);
36  void generate_implementation (const IdDictMgr& idd,
38  const std::string& tag = "");
39  void reset_implementation ();
40  bool verify () const;
41  void sort ();
42  void clear ();
43 
44 
45 private:
46 
47  std::string m_name;
48  std::vector<IdDictDictEntry*> m_entries; // just the RegionEntries
49  std::vector<IdDictRegion*> m_regions; // regions derived from entries
51 };
52 
53 #endif
IdDictGroup::m_name
std::string m_name
Definition: IdDictGroup.h:47
IdDictGroup
Definition: IdDictGroup.h:19
index
Definition: index.py:1
IdDictGroup::sort
void sort()
Sort:
Definition: IdDictGroup.cxx:152
IdDictGroup::m_regions
std::vector< IdDictRegion * > m_regions
Definition: IdDictGroup.h:49
IdDictGroup::verify
bool verify() const
Definition: IdDictGroup.cxx:138
IdDictDictEntry
Definition: IdDictDictEntry.h:13
IdDictRegion
Definition: IdDictRegion.h:20
IdDictGroup::generate_implementation
void generate_implementation(const IdDictMgr &idd, IdDictDictionary &dictionary, const std::string &tag="")
Definition: IdDictGroup.cxx:90
IdDictGroup::m_entries
std::vector< IdDictDictEntry * > m_entries
Definition: IdDictGroup.h:48
IdDictGroup::resolve_references
void resolve_references(const IdDictMgr &idd, IdDictDictionary &dictionary, size_t &index)
Definition: IdDictGroup.cxx:77
IdDictMgr
Definition: IdDictMgr.h:14
IdDictGroup::IdDictGroup
IdDictGroup()
Definition: IdDictGroup.cxx:20
IdDictGroup::build_multirange
MultiRange build_multirange() const
Get MultiRange for this group.
Definition: IdDictGroup.cxx:49
IdDictGroup::clear
void clear()
Definition: IdDictGroup.cxx:185
IdDictGroup::add_dictentry
void add_dictentry(IdDictDictEntry *entry)
Definition: IdDictGroup.cxx:72
IdDictGroup::regions
const std::vector< IdDictRegion * > & regions()
Definition: IdDictGroup.cxx:44
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
MultiRange
A MultiRange combines several Ranges.
Definition: MultiRange.h:17
master.dictionary
dictionary
Definition: master.py:47
IdDictDictionary
Definition: IdDictDictionary.h:30
IdDictGroup::name
const std::string & name()
Definition: IdDictGroup.cxx:34
IdDictGroup::reset_implementation
void reset_implementation()
Definition: IdDictGroup.cxx:126
IdDictGroup::m_generated_implementation
bool m_generated_implementation
Definition: IdDictGroup.h:50
IdDictGroup::entries
const std::vector< IdDictDictEntry * > & entries()
Definition: IdDictGroup.cxx:39
CaloCondBlobAlgs_fillNoiseFromASCII.tag
string tag
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:24
IdDictGroup::~IdDictGroup
~IdDictGroup()
Definition: IdDictGroup.cxx:31