ATLAS Offline Software
Loading...
Searching...
No Matches
AGDDPgon Class Reference

#include <AGDDPgon.h>

Inheritance diagram for AGDDPgon:
Collaboration diagram for AGDDPgon:

Public Member Functions

 AGDDPgon (const std::string &s, AGDDVolumeStore &vs, AGDDSectionStore &ss)
void SetPlane (double ri, double ro, double z)
void SetProfile (double phi0, double dphi)
void SetNbPhi (int i)
int NrOfPlanes () const
double Rin (int i) const
double Rout (int i) const
double Z (int i) const
double Phi0 () const
double Dphi () const
virtual void CreateVolume (AGDDBuilder &builder) override
virtual void CreateSolid (const AGDDBuilder &builder) override
const std::string & GetName () const
void SetMaterial (const std::string &n)
void AddDaughter (AGDDPositioner *v)
AGDDPositionerGetDaughter (int i)
int NrOfDaughter () const
bool HasParent () const
void AddParent (AGDDVolume *v)
void * GetVolume ()
void * GetSolid ()
void SetSolid (void *p)
void SetVolume (void *p)
void SetColor (const std::string &c)
void IsSensitiveVolume (bool v)
bool IsSensitiveVolume () const
const std::string & GetColor () const
const std::string & GetMaterial () const

Public Attributes

std::vector< double > m_rin
std::vector< double > m_rou
std::vector< double > m_z
double m_phi0
double m_dphi
int m_nbPhi

Protected Attributes

std::string m_name
std::string m_material
std::vector< AGDDPositioner * > m_theDaughters
std::vector< AGDDVolume * > m_theParents
std::string m_color
void * m_theSolid
void * m_theVolume
bool m_isSensitive
AGDDVolumeStorem_vs

Detailed Description

Definition at line 13 of file AGDDPgon.h.

Constructor & Destructor Documentation

◆ AGDDPgon()

AGDDPgon::AGDDPgon ( const std::string & s,
AGDDVolumeStore & vs,
AGDDSectionStore & ss )
inline

Definition at line 15 of file AGDDPgon.h.

18 : AGDDVolume(s,vs,ss),m_phi0(0),m_dphi(0),m_nbPhi(0) {}
static Double_t ss
double m_phi0
Definition AGDDPgon.h:39
double m_dphi
Definition AGDDPgon.h:40
int m_nbPhi
Definition AGDDPgon.h:41
AGDDVolume(const std::string &s, AGDDVolumeStore &vs, AGDDSectionStore &ss, bool v=false)

Member Function Documentation

◆ AddDaughter()

void AGDDVolume::AddDaughter ( AGDDPositioner * v)
inherited

Definition at line 21 of file AGDDVolume.cxx.

22{
23 m_theDaughters.push_back(v);
24 m_vs.GetVolume(v->Volume())->AddParent(this);
25}
std::vector< AGDDPositioner * > m_theDaughters
Definition AGDDVolume.h:45
AGDDVolumeStore & m_vs
Definition AGDDVolume.h:55

◆ AddParent()

void AGDDVolume::AddParent ( AGDDVolume * v)
inlineinherited

Definition at line 31 of file AGDDVolume.h.

31{m_theParents.push_back(v);}
std::vector< AGDDVolume * > m_theParents
Definition AGDDVolume.h:46

◆ CreateSolid()

void AGDDPgon::CreateSolid ( const AGDDBuilder & builder)
overridevirtual

Reimplemented from AGDDVolume.

Definition at line 9 of file AGDDPgon.cxx.

10{
11 builder.CreatePgon(this);
12}

◆ CreateVolume()

void AGDDPgon::CreateVolume ( AGDDBuilder & builder)
overridevirtual

Reimplemented from AGDDVolume.

Definition at line 14 of file AGDDPgon.cxx.

15{
16 CreateSolid (builder);
17 builder.CreateVolume(this);
18}
virtual void CreateSolid(const AGDDBuilder &builder) override
Definition AGDDPgon.cxx:9

◆ Dphi()

double AGDDPgon::Dphi ( ) const
inline

Definition at line 32 of file AGDDPgon.h.

32{return m_dphi;}

◆ GetColor()

const std::string & AGDDVolume::GetColor ( ) const
inlineinherited

Definition at line 39 of file AGDDVolume.h.

39{return m_color;}
std::string m_color
Definition AGDDVolume.h:48

◆ GetDaughter()

AGDDPositioner * AGDDVolume::GetDaughter ( int i)
inlineinherited

Definition at line 28 of file AGDDVolume.h.

28{return m_theDaughters[i];}

◆ GetMaterial()

const std::string & AGDDVolume::GetMaterial ( ) const
inlineinherited

Definition at line 40 of file AGDDVolume.h.

40{return m_material;}
std::string m_material
Definition AGDDVolume.h:44

◆ GetName()

const std::string & AGDDVolume::GetName ( ) const
inlineinherited

Definition at line 23 of file AGDDVolume.h.

23{return m_name;}
std::string m_name
Definition AGDDVolume.h:43

◆ GetSolid()

void * AGDDVolume::GetSolid ( )
inlineinherited

Definition at line 33 of file AGDDVolume.h.

33{return m_theSolid;}
void * m_theSolid
Definition AGDDVolume.h:50

◆ GetVolume()

void * AGDDVolume::GetVolume ( )
inlineinherited

Definition at line 32 of file AGDDVolume.h.

32{return m_theVolume;}
void * m_theVolume
Definition AGDDVolume.h:51

◆ HasParent()

bool AGDDVolume::HasParent ( ) const
inlineinherited

Definition at line 30 of file AGDDVolume.h.

30{return (m_theParents.size());}

◆ IsSensitiveVolume() [1/2]

bool AGDDVolume::IsSensitiveVolume ( ) const
inlineinherited

Definition at line 38 of file AGDDVolume.h.

38{return m_isSensitive;}
bool m_isSensitive
Definition AGDDVolume.h:53

◆ IsSensitiveVolume() [2/2]

void AGDDVolume::IsSensitiveVolume ( bool v)
inherited

Definition at line 27 of file AGDDVolume.cxx.

28{
30}

◆ NrOfDaughter()

int AGDDVolume::NrOfDaughter ( ) const
inlineinherited

Definition at line 29 of file AGDDVolume.h.

29{return m_theDaughters.size();}

◆ NrOfPlanes()

int AGDDPgon::NrOfPlanes ( ) const
inline

Definition at line 27 of file AGDDPgon.h.

27{return m_rin.size();}
std::vector< double > m_rin
Definition AGDDPgon.h:35

◆ Phi0()

double AGDDPgon::Phi0 ( ) const
inline

Definition at line 31 of file AGDDPgon.h.

31{return m_phi0;}

◆ Rin()

double AGDDPgon::Rin ( int i) const
inline

Definition at line 28 of file AGDDPgon.h.

28{return m_rin[i];}

◆ Rout()

double AGDDPgon::Rout ( int i) const
inline

Definition at line 29 of file AGDDPgon.h.

29{return m_rou[i];}
std::vector< double > m_rou
Definition AGDDPgon.h:36

◆ SetColor()

void AGDDVolume::SetColor ( const std::string & c)
inlineinherited

Definition at line 36 of file AGDDVolume.h.

◆ SetMaterial()

void AGDDVolume::SetMaterial ( const std::string & n)
inlineinherited

Definition at line 24 of file AGDDVolume.h.

◆ SetNbPhi()

void AGDDPgon::SetNbPhi ( int i)
inline

Definition at line 26 of file AGDDPgon.h.

26{m_nbPhi=i;}

◆ SetPlane()

void AGDDPgon::SetPlane ( double ri,
double ro,
double z )
inline

Definition at line 19 of file AGDDPgon.h.

20 {
21 m_rin.push_back(ri);
22 m_rou.push_back(ro);
23 m_z.push_back(z);
24 }
#define z
std::vector< double > m_z
Definition AGDDPgon.h:37

◆ SetProfile()

void AGDDPgon::SetProfile ( double phi0,
double dphi )
inline

Definition at line 25 of file AGDDPgon.h.

◆ SetSolid()

void AGDDVolume::SetSolid ( void * p)
inlineinherited

◆ SetVolume()

void AGDDVolume::SetVolume ( void * p)
inlineinherited

Definition at line 35 of file AGDDVolume.h.

◆ Z()

double AGDDPgon::Z ( int i) const
inline

Definition at line 30 of file AGDDPgon.h.

30{return m_z[i];}

Member Data Documentation

◆ m_color

std::string AGDDVolume::m_color
protectedinherited

Definition at line 48 of file AGDDVolume.h.

◆ m_dphi

double AGDDPgon::m_dphi

Definition at line 40 of file AGDDPgon.h.

◆ m_isSensitive

bool AGDDVolume::m_isSensitive
protectedinherited

Definition at line 53 of file AGDDVolume.h.

◆ m_material

std::string AGDDVolume::m_material
protectedinherited

Definition at line 44 of file AGDDVolume.h.

◆ m_name

std::string AGDDVolume::m_name
protectedinherited

Definition at line 43 of file AGDDVolume.h.

◆ m_nbPhi

int AGDDPgon::m_nbPhi

Definition at line 41 of file AGDDPgon.h.

◆ m_phi0

double AGDDPgon::m_phi0

Definition at line 39 of file AGDDPgon.h.

◆ m_rin

std::vector<double> AGDDPgon::m_rin

Definition at line 35 of file AGDDPgon.h.

◆ m_rou

std::vector<double> AGDDPgon::m_rou

Definition at line 36 of file AGDDPgon.h.

◆ m_theDaughters

std::vector<AGDDPositioner*> AGDDVolume::m_theDaughters
protectedinherited

Definition at line 45 of file AGDDVolume.h.

◆ m_theParents

std::vector<AGDDVolume*> AGDDVolume::m_theParents
protectedinherited

Definition at line 46 of file AGDDVolume.h.

◆ m_theSolid

void* AGDDVolume::m_theSolid
protectedinherited

Definition at line 50 of file AGDDVolume.h.

◆ m_theVolume

void* AGDDVolume::m_theVolume
protectedinherited

Definition at line 51 of file AGDDVolume.h.

◆ m_vs

AGDDVolumeStore& AGDDVolume::m_vs
protectedinherited

Definition at line 55 of file AGDDVolume.h.

◆ m_z

std::vector<double> AGDDPgon::m_z

Definition at line 37 of file AGDDPgon.h.


The documentation for this class was generated from the following files: