ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
AGDDSection Class Reference

#include <AGDDSection.h>

Collaboration diagram for AGDDSection:

Public Member Functions

 AGDDSection (const std::string &, const std::string &, const std::string &, const std::string &, const std::string &, AGDDSectionStore &ss, bool buildFlag=true)
 
void AddVolume (AGDDVolume *)
 
AGDDVolumeGetVolume (const std::string &)
 
void Register (AGDDSectionStore &ss)
 
void Name (const std::string &n)
 
void Version (const std::string &n)
 
void Author (const std::string &n)
 
void Date (const std::string &n)
 
void TopVolume (const std::string &n)
 
std::string Name () const
 
std::string Version () const
 
std::string Author () const
 
std::string Date () const
 
std::string TopVolume () const
 
bool IsToBeBuilt () const
 
volumeIterator VolumeBegin ()
 
volumeIterator VolumeEnd ()
 
void Print ()
 

Private Attributes

std::string m_name
 
std::string m_version
 
std::string m_author
 
std::string m_date
 
std::string m_topVolume
 
bool m_toBeBuilt
 
volumeList m_theVolumes
 

Detailed Description

Definition at line 17 of file AGDDSection.h.

Constructor & Destructor Documentation

◆ AGDDSection()

AGDDSection::AGDDSection ( const std::string &  a,
const std::string &  b,
const std::string &  c,
const std::string &  d,
const std::string &  e,
AGDDSectionStore ss,
bool  buildFlag = true 
)

Definition at line 11 of file AGDDSection.cxx.

17  :
19 {
20  Register(ss);
21 }

Member Function Documentation

◆ AddVolume()

void AGDDSection::AddVolume ( AGDDVolume v)

Definition at line 23 of file AGDDSection.cxx.

24 {
25  std::string temp=v->GetName();
26  if (m_theVolumes.find(temp)!=m_theVolumes.end())
27  std::cout<<" Volume "<<temp<<" already in section "<<m_name<<std::endl;
28  else
29  m_theVolumes[temp]=v;
30 }

◆ Author() [1/2]

std::string AGDDSection::Author ( ) const
inline

Definition at line 33 of file AGDDSection.h.

33 {return m_author;}

◆ Author() [2/2]

void AGDDSection::Author ( const std::string &  n)
inline

Definition at line 28 of file AGDDSection.h.

28 {m_author=n;}

◆ Date() [1/2]

std::string AGDDSection::Date ( ) const
inline

Definition at line 34 of file AGDDSection.h.

34 {return m_date;}

◆ Date() [2/2]

void AGDDSection::Date ( const std::string &  n)
inline

Definition at line 29 of file AGDDSection.h.

29 {m_date=n;}

◆ GetVolume()

AGDDVolume * AGDDSection::GetVolume ( const std::string &  n)

Definition at line 32 of file AGDDSection.cxx.

33 {
34  if (m_theVolumes.find(n)!=m_theVolumes.end())
35  return m_theVolumes[n];
36  else
37  {
38  std::cout<<" Volume "<<n<<" not found in section "<<m_name<<std::endl;
39  return 0;
40  }
41 }

◆ IsToBeBuilt()

bool AGDDSection::IsToBeBuilt ( ) const
inline

Definition at line 36 of file AGDDSection.h.

36 {return m_toBeBuilt;}

◆ Name() [1/2]

std::string AGDDSection::Name ( ) const
inline

Definition at line 31 of file AGDDSection.h.

31 {return m_name;}

◆ Name() [2/2]

void AGDDSection::Name ( const std::string &  n)
inline

Definition at line 26 of file AGDDSection.h.

26 {m_name=n;}

◆ Print()

void AGDDSection::Print ( )

Definition at line 47 of file AGDDSection.cxx.

48 {
49  std::cout<<"+";
50  for (unsigned int i=0;i<10;i++) std::cout<<"--------";
51  std::cout<<"+"<<std::endl;
52  std::cout<<" section "<<m_name<<" "<<" version "<<m_version<<std::endl;
53  std::cout<<" author "<<m_author<<" date "<<m_date<<std::endl;
54  std::cout<<" defines volumes: "<<std::endl<<std::endl;
55  volumeList::const_iterator it;
56 // for (it=theVolumes.begin();it!=theVolumes.end();it++)
57 // {
58 // if (!(*it).second->HasParent())
59 // AGDDController::PrintVolumeHierarchy((*it).first,0);
60 // }
61  std::cout<<"+";
62  for (unsigned int i=0;i<10;i++) std::cout<<"--------";
63  std::cout<<"+"<<std::endl<<std::endl;
64 }

◆ Register()

void AGDDSection::Register ( AGDDSectionStore ss)

Definition at line 43 of file AGDDSection.cxx.

44 {
45  ss.RegisterSection(this);
46 }

◆ TopVolume() [1/2]

std::string AGDDSection::TopVolume ( ) const
inline

Definition at line 35 of file AGDDSection.h.

35 {return m_topVolume;}

◆ TopVolume() [2/2]

void AGDDSection::TopVolume ( const std::string &  n)
inline

Definition at line 30 of file AGDDSection.h.

30 {m_topVolume=n;}

◆ Version() [1/2]

std::string AGDDSection::Version ( ) const
inline

Definition at line 32 of file AGDDSection.h.

32 {return m_version;}

◆ Version() [2/2]

void AGDDSection::Version ( const std::string &  n)
inline

Definition at line 27 of file AGDDSection.h.

27 {m_version=n;}

◆ VolumeBegin()

volumeIterator AGDDSection::VolumeBegin ( )
inline

Definition at line 37 of file AGDDSection.h.

37 {return m_theVolumes.begin();}

◆ VolumeEnd()

volumeIterator AGDDSection::VolumeEnd ( )
inline

Definition at line 38 of file AGDDSection.h.

38 {return m_theVolumes.end();}

Member Data Documentation

◆ m_author

std::string AGDDSection::m_author
private

Definition at line 43 of file AGDDSection.h.

◆ m_date

std::string AGDDSection::m_date
private

Definition at line 44 of file AGDDSection.h.

◆ m_name

std::string AGDDSection::m_name
private

Definition at line 41 of file AGDDSection.h.

◆ m_theVolumes

volumeList AGDDSection::m_theVolumes
private

Definition at line 48 of file AGDDSection.h.

◆ m_toBeBuilt

bool AGDDSection::m_toBeBuilt
private

Definition at line 46 of file AGDDSection.h.

◆ m_topVolume

std::string AGDDSection::m_topVolume
private

Definition at line 45 of file AGDDSection.h.

◆ m_version

std::string AGDDSection::m_version
private

Definition at line 42 of file AGDDSection.h.


The documentation for this class was generated from the following files:
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
hist_file_dump.d
d
Definition: hist_file_dump.py:137
skel.it
it
Definition: skel.GENtoEVGEN.py:423
AGDDSection::m_version
std::string m_version
Definition: AGDDSection.h:42
AGDDSection::Register
void Register(AGDDSectionStore &ss)
Definition: AGDDSection.cxx:43
lumiFormat.i
int i
Definition: lumiFormat.py:92
AGDDSection::m_theVolumes
volumeList m_theVolumes
Definition: AGDDSection.h:48
beamspotman.n
n
Definition: beamspotman.py:731
AGDDSection::m_author
std::string m_author
Definition: AGDDSection.h:43
AGDDSection::m_name
std::string m_name
Definition: AGDDSection.h:41
plotBeamSpotMon.b
b
Definition: plotBeamSpotMon.py:77
python.PyAthena.v
v
Definition: PyAthena.py:157
DiTauMassTools::MaxHistStrategyV2::e
e
Definition: PhysicsAnalysis/TauID/DiTauMassTools/DiTauMassTools/HelperFunctions.h:26
a
TList * a
Definition: liststreamerinfos.cxx:10
AGDDSection::m_topVolume
std::string m_topVolume
Definition: AGDDSection.h:45
python.compressB64.c
def c
Definition: compressB64.py:93