ATLAS Offline Software
Loading...
Searching...
No Matches
DetectorDescription
AGDD
AGDDKernel
src
AGDDVolume.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
AGDDKernel/AGDDVolumeStore.h
"
6
#include "
AGDDKernel/AGDDSectionStore.h
"
7
#include "
AGDDKernel/AGDDSection.h
"
8
#include "
AGDDKernel/AGDDVolume.h
"
9
10
AGDDVolume::AGDDVolume
(
const
std::string& n,
11
AGDDVolumeStore
& vs,
12
AGDDSectionStore
& ss,
13
bool
v)
14
:
m_name
(n),
m_theSolid
(0),
m_theVolume
(0),
m_isSensitive
(v),
15
m_vs
(vs)
16
{
17
vs.
RegisterVolume
(
this
);
18
AGDDSection
* curr=ss.GetCurrentSection();
19
if
(curr) curr->
AddVolume
(
this
);
20
}
21
void
AGDDVolume::AddDaughter
(
AGDDPositioner
* v)
22
{
23
m_theDaughters
.push_back(v);
24
m_vs
.GetVolume(v->Volume())->AddParent(
this
);
25
}
26
27
void
AGDDVolume::IsSensitiveVolume
(
bool
v)
28
{
29
m_isSensitive
=v;
30
}
AGDDSectionStore.h
AGDDSection.h
AGDDVolumeStore.h
AGDDVolume.h
AGDDPositioner
Definition
AGDDPositioner.h:18
AGDDSectionStore
Definition
AGDDSectionStore.h:15
AGDDSection
Definition
AGDDSection.h:17
AGDDSection::AddVolume
void AddVolume(AGDDVolume *)
Definition
AGDDSection.cxx:23
AGDDVolumeStore
Definition
AGDDVolumeStore.h:15
AGDDVolumeStore::RegisterVolume
void RegisterVolume(AGDDVolume *)
Definition
AGDDVolumeStore.cxx:14
AGDDVolume::m_isSensitive
bool m_isSensitive
Definition
AGDDVolume.h:53
AGDDVolume::m_theVolume
void * m_theVolume
Definition
AGDDVolume.h:51
AGDDVolume::m_theDaughters
std::vector< AGDDPositioner * > m_theDaughters
Definition
AGDDVolume.h:45
AGDDVolume::IsSensitiveVolume
bool IsSensitiveVolume() const
Definition
AGDDVolume.h:38
AGDDVolume::m_name
std::string m_name
Definition
AGDDVolume.h:43
AGDDVolume::AGDDVolume
AGDDVolume(const std::string &s, AGDDVolumeStore &vs, AGDDSectionStore &ss, bool v=false)
Definition
AGDDVolume.cxx:10
AGDDVolume::AddDaughter
void AddDaughter(AGDDPositioner *v)
Definition
AGDDVolume.cxx:21
AGDDVolume::m_theSolid
void * m_theSolid
Definition
AGDDVolume.h:50
AGDDVolume::m_vs
AGDDVolumeStore & m_vs
Definition
AGDDVolume.h:55
Generated on
for ATLAS Offline Software by
1.14.0