ATLAS Offline Software
AGDDSection.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef AGDDSection_H
6 #define AGDDSection_H
7 
8 class AGDDVolume;
9 class AGDDSectionStore;
10 
11 #include <string>
12 #include <map>
13 
14 typedef std::map<std::string, AGDDVolume*> volumeList;
15 typedef volumeList::const_iterator volumeIterator;
16 
17 class AGDDSection {
18 public:
19  AGDDSection(const std::string&, const std::string&, const std::string&,
20  const std::string&, const std::string&,
22  bool buildFlag=true);
23  void AddVolume(AGDDVolume*);
24  AGDDVolume* GetVolume(const std::string&);
26  void Name(const std::string& n) {m_name=n;}
27  void Version(const std::string& n) {m_version=n;}
28  void Author(const std::string& n) {m_author=n;}
29  void Date(const std::string& n) {m_date=n;}
30  void TopVolume(const std::string& n) {m_topVolume=n;}
31  std::string Name() const {return m_name;}
32  std::string Version() const {return m_version;}
33  std::string Author() const {return m_author;}
34  std::string Date() const {return m_date;}
35  std::string TopVolume() const {return m_topVolume;}
36  bool IsToBeBuilt() const {return m_toBeBuilt;}
39  void Print();
40 private:
41  std::string m_name;
42  std::string m_version;
43  std::string m_author;
44  std::string m_date;
45  std::string m_topVolume;
47 
49 };
50 
51 #endif
AGDDSection::Name
std::string Name() const
Definition: AGDDSection.h:31
AGDDSection::Author
std::string Author() const
Definition: AGDDSection.h:33
PowhegControl_ttHplus_NLO.ss
ss
Definition: PowhegControl_ttHplus_NLO.py:83
AGDDSection::m_toBeBuilt
bool m_toBeBuilt
Definition: AGDDSection.h:46
AGDDSection::m_date
std::string m_date
Definition: AGDDSection.h:44
AGDDSection::Print
void Print()
Definition: AGDDSection.cxx:47
AGDDSection::TopVolume
std::string TopVolume() const
Definition: AGDDSection.h:35
AGDDSection::GetVolume
AGDDVolume * GetVolume(const std::string &)
Definition: AGDDSection.cxx:32
AGDDSection::m_version
std::string m_version
Definition: AGDDSection.h:42
AGDDSection::Date
void Date(const std::string &n)
Definition: AGDDSection.h:29
AGDDSection::VolumeEnd
volumeIterator VolumeEnd()
Definition: AGDDSection.h:38
AGDDSection::VolumeBegin
volumeIterator VolumeBegin()
Definition: AGDDSection.h:37
AGDDSection::Register
void Register(AGDDSectionStore &ss)
Definition: AGDDSection.cxx:43
AGDDSectionStore
Definition: AGDDSectionStore.h:15
AGDDSection::TopVolume
void TopVolume(const std::string &n)
Definition: AGDDSection.h:30
AGDDSection::Version
std::string Version() const
Definition: AGDDSection.h:32
AGDDSection::m_theVolumes
volumeList m_theVolumes
Definition: AGDDSection.h:48
beamspotman.n
n
Definition: beamspotman.py:731
AGDDSection::AGDDSection
AGDDSection(const std::string &, const std::string &, const std::string &, const std::string &, const std::string &, AGDDSectionStore &ss, bool buildFlag=true)
Definition: AGDDSection.cxx:11
AGDDSection::Name
void Name(const std::string &n)
Definition: AGDDSection.h:26
AGDDSection::m_author
std::string m_author
Definition: AGDDSection.h:43
AGDDSection::Author
void Author(const std::string &n)
Definition: AGDDSection.h:28
AGDDSection::m_name
std::string m_name
Definition: AGDDSection.h:41
AGDDSection
Definition: AGDDSection.h:17
AGDDSection::IsToBeBuilt
bool IsToBeBuilt() const
Definition: AGDDSection.h:36
AGDDSection::Version
void Version(const std::string &n)
Definition: AGDDSection.h:27
volumeList
std::map< std::string, AGDDVolume * > volumeList
Definition: AGDDSection.h:9
AGDDSection::AddVolume
void AddVolume(AGDDVolume *)
Definition: AGDDSection.cxx:23
AGDDVolume
Definition: AGDDVolume.h:16
volumeIterator
volumeList::const_iterator volumeIterator
Definition: AGDDSection.h:15
AGDDSection::m_topVolume
std::string m_topVolume
Definition: AGDDSection.h:45
AGDDSection::Date
std::string Date() const
Definition: AGDDSection.h:34