BOSS
7.1.2
BESIII Offline Software System
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
a
c
d
e
f
g
i
l
m
n
o
p
r
s
t
u
v
w
Variables
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
x
z
Typedefs
c
d
e
g
h
i
l
m
n
o
p
r
s
t
Enumerations
Enumerator
a
b
c
d
e
f
i
k
l
m
n
o
p
r
s
t
u
w
x
z
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
v
w
Enumerations
b
c
d
e
f
g
h
i
k
l
m
n
p
r
s
t
v
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Related Symbols
:
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
v
w
x
Files
File List
File Members
All
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
!
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
!
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
h
i
j
k
l
m
n
p
r
s
t
u
v
w
z
Enumerations
Enumerator
a
b
c
d
e
f
g
h
i
k
m
n
o
p
r
s
t
u
w
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
Loading...
Searching...
No Matches
SubDetectorG4Geo.cxx
Go to the documentation of this file.
1
//$id$
2
/*
3
* 2005/10/30 Zhengyun You Peking University
4
* G4 Geometry for Bes sub-detector
5
*
6
*/
7
8
using namespace
std
;
9
10
#include <string>
11
#include <iostream>
12
13
#include "
G4Geo/SubDetectorG4Geo.h
"
14
15
SubDetectorG4Geo::SubDetectorG4Geo
()
16
: m_G4GeoInit(0)
17
{
18
// Default constructor.
19
//m_sxp.Initialize();
20
}
15
SubDetectorG4Geo::SubDetectorG4Geo
() {
…
}
21
22
SubDetectorG4Geo::~SubDetectorG4Geo
()
23
{
24
m_sxp.Finalize();
25
}
22
SubDetectorG4Geo::~SubDetectorG4Geo
() {
…
}
26
27
void
28
SubDetectorG4Geo::ReadGdml
(
const
char
*gdmlFile,
const
char
*setupName )
29
{
30
m_config.SetURI( gdmlFile );
31
m_config.SetSetupName( setupName );
32
m_config.SetType (
"G4"
);
33
34
m_sxp.Configure( &m_config );
35
m_sxp.Initialize();
36
m_sxp.Run();
37
}
28
SubDetectorG4Geo::ReadGdml
(
const
char
*gdmlFile,
const
char
*setupName ) {
…
}
38
39
G4LogicalVolume*
40
SubDetectorG4Geo::GetLogicalVolume
(
const
std::string& vn )
41
{
42
G4LogicalVolume *lv = (G4LogicalVolume*)GDMLProcessor::GetInstance()->GetLogicalVolume(vn);
43
//if (!lv) std::cout << "Logical Volume " << vn << " not found " << std::endl;
44
return
lv;
45
}
40
SubDetectorG4Geo::GetLogicalVolume
(
const
std::string& vn ) {
…
}
46
47
SubDetectorG4Geo.h
SubDetectorG4Geo::SubDetectorG4Geo
SubDetectorG4Geo()
Constructor.
Definition
SubDetectorG4Geo.cxx:15
SubDetectorG4Geo::~SubDetectorG4Geo
virtual ~SubDetectorG4Geo()
Destructor.
Definition
SubDetectorG4Geo.cxx:22
SubDetectorG4Geo::ReadGdml
void ReadGdml(const char *gdmlFile, const char *setupName)
Initialize the instance of G4Geo.
Definition
SubDetectorG4Geo.cxx:28
SubDetectorG4Geo::GetLogicalVolume
G4LogicalVolume * GetLogicalVolume(const std::string &vn)
Get a logical volume by name;.
Definition
SubDetectorG4Geo.cxx:40
std
Definition
RootEventData/RootEventData_rootcint.cxx:38
7.1.2
DetectorDescription
G4Geo
G4Geo-00-00-13
src
SubDetectorG4Geo.cxx
Generated by
1.12.0