ATLAS Offline Software
AGDDSectionStore.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
7 
8 #include <iostream>
9 
11 {
12 }
14 {
15  if (m_theSections.find(n) != m_theSections.end())
16  return m_theSections[n];
17  else
18  {
19  std::cout<<" Section "<<n<<" not found in store!"<<std::endl;
20  return 0;
21  }
22 }
24 {
25  std::string n=s->Name();
26  if (m_theSections.find(n) != m_theSections.end())
27  std::cout<<" Section "<<n<<" already in store "<<std::endl;
28  else
29  m_theSections[n]=s;
31 }
33 {
34  sectionList::const_iterator it;
35  for (it=m_theSections.begin();it!=m_theSections.end();++it)
36  {
37  (*it).second->Print();
38  }
39 }
40 
42 {
43  sectionList::const_iterator it;
44  for (it=m_theSections.begin();it!=m_theSections.end();++it)
45  {
46  delete (*it).second;
47  }
48  m_theSections.clear();
49 }
50 
python.SystemOfUnits.s
int s
Definition: SystemOfUnits.py:131
skel.it
it
Definition: skel.GENtoEVGEN.py:423
AGDDSectionStore.h
AGDDSectionStore::m_theSections
sectionList m_theSections
Definition: AGDDSectionStore.h:25
AGDDSectionStore::GetSection
AGDDSection * GetSection(const std::string &)
Definition: AGDDSectionStore.cxx:13
beamspotman.n
n
Definition: beamspotman.py:731
AGDDSectionStore::Clean
void Clean()
Definition: AGDDSectionStore.cxx:41
AGDDSectionStore::PrintAllSections
void PrintAllSections() const
Definition: AGDDSectionStore.cxx:32
AGDDSection
Definition: AGDDSection.h:17
AGDDSectionStore::RegisterSection
void RegisterSection(AGDDSection *)
Definition: AGDDSectionStore.cxx:23
AGDDSectionStore::AGDDSectionStore
AGDDSectionStore()
Definition: AGDDSectionStore.cxx:10
AGDDSection.h
AGDDSectionStore::m_currentSection
AGDDSection * m_currentSection
Definition: AGDDSectionStore.h:24