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

#include <AGDDVolume.h>

Inherited by AGDDBolt, AGDDBox, AGDDComposition, AGDDCons, AGDDElcyl, AGDDGvxy, AGDDIbeam, AGDDIntersection, AGDDMMSpacer, AGDDMicromegas, AGDDMuonStation, AGDDPcon, AGDDPgon, AGDDSnake, AGDDSubtraction, AGDDTrd, AGDDTubs, AGDDUbeam, AGDDUnion, and AGDDsTGC.

Collaboration diagram for AGDDVolume:

Public Member Functions

 AGDDVolume (const std::string &s, AGDDVolumeStore &vs, AGDDSectionStore &ss, bool v=false)
virtual ~AGDDVolume ()
const std::string & GetName () const
void SetMaterial (const std::string &n)
virtual void CreateSolid (const AGDDBuilder &)
virtual void CreateVolume (AGDDBuilder &)
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

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 16 of file AGDDVolume.h.

Constructor & Destructor Documentation

◆ AGDDVolume()

AGDDVolume::AGDDVolume ( const std::string & s,
AGDDVolumeStore & vs,
AGDDSectionStore & ss,
bool v = false )

Definition at line 10 of file AGDDVolume.cxx.

15 m_vs (vs)
16{
17 vs.RegisterVolume(this);
18 AGDDSection* curr=ss.GetCurrentSection();
19 if (curr) curr->AddVolume(this);
20}
static Double_t ss
void AddVolume(AGDDVolume *)
void RegisterVolume(AGDDVolume *)
bool m_isSensitive
Definition AGDDVolume.h:53
void * m_theVolume
Definition AGDDVolume.h:51
std::string m_name
Definition AGDDVolume.h:43
void * m_theSolid
Definition AGDDVolume.h:50
AGDDVolumeStore & m_vs
Definition AGDDVolume.h:55

◆ ~AGDDVolume()

virtual AGDDVolume::~AGDDVolume ( )
inlinevirtual

Definition at line 22 of file AGDDVolume.h.

22{}

Member Function Documentation

◆ AddDaughter()

void AGDDVolume::AddDaughter ( AGDDPositioner * v)

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

◆ AddParent()

void AGDDVolume::AddParent ( AGDDVolume * v)
inline

Definition at line 31 of file AGDDVolume.h.

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

◆ CreateSolid()

virtual void AGDDVolume::CreateSolid ( const AGDDBuilder & )
inlinevirtual

◆ CreateVolume()

virtual void AGDDVolume::CreateVolume ( AGDDBuilder & )
inlinevirtual

◆ GetColor()

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

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)
inline

Definition at line 28 of file AGDDVolume.h.

28{return m_theDaughters[i];}

◆ GetMaterial()

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

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
inline

Definition at line 23 of file AGDDVolume.h.

23{return m_name;}

◆ GetSolid()

void * AGDDVolume::GetSolid ( )
inline

Definition at line 33 of file AGDDVolume.h.

33{return m_theSolid;}

◆ GetVolume()

void * AGDDVolume::GetVolume ( )
inline

Definition at line 32 of file AGDDVolume.h.

32{return m_theVolume;}

◆ HasParent()

bool AGDDVolume::HasParent ( ) const
inline

Definition at line 30 of file AGDDVolume.h.

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

◆ IsSensitiveVolume() [1/2]

bool AGDDVolume::IsSensitiveVolume ( ) const
inline

Definition at line 38 of file AGDDVolume.h.

38{return m_isSensitive;}

◆ IsSensitiveVolume() [2/2]

void AGDDVolume::IsSensitiveVolume ( bool v)

Definition at line 27 of file AGDDVolume.cxx.

28{
30}

◆ NrOfDaughter()

int AGDDVolume::NrOfDaughter ( ) const
inline

Definition at line 29 of file AGDDVolume.h.

29{return m_theDaughters.size();}

◆ SetColor()

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

Definition at line 36 of file AGDDVolume.h.

◆ SetMaterial()

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

Definition at line 24 of file AGDDVolume.h.

◆ SetSolid()

void AGDDVolume::SetSolid ( void * p)
inline

◆ SetVolume()

void AGDDVolume::SetVolume ( void * p)
inline

Definition at line 35 of file AGDDVolume.h.

Member Data Documentation

◆ m_color

std::string AGDDVolume::m_color
protected

Definition at line 48 of file AGDDVolume.h.

◆ m_isSensitive

bool AGDDVolume::m_isSensitive
protected

Definition at line 53 of file AGDDVolume.h.

◆ m_material

std::string AGDDVolume::m_material
protected

Definition at line 44 of file AGDDVolume.h.

◆ m_name

std::string AGDDVolume::m_name
protected

Definition at line 43 of file AGDDVolume.h.

◆ m_theDaughters

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

Definition at line 45 of file AGDDVolume.h.

◆ m_theParents

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

Definition at line 46 of file AGDDVolume.h.

◆ m_theSolid

void* AGDDVolume::m_theSolid
protected

Definition at line 50 of file AGDDVolume.h.

◆ m_theVolume

void* AGDDVolume::m_theVolume
protected

Definition at line 51 of file AGDDVolume.h.

◆ m_vs

AGDDVolumeStore& AGDDVolume::m_vs
protected

Definition at line 55 of file AGDDVolume.h.


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