EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
FairGeoInterface.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairGeoInterface.h
1
#ifndef FAIRGEOINTERFACE_H
2
#define FAIRGEOINTERFACE_H
3
4
#include "TObject.h"
5
#include "TString.h"
6
//#include "TObjArray.h"
7
//#include "TList.h"
8
9
class
FairGeoIo
;
10
class
FairGeoSet
;
11
class
FairGeoMedia
;
12
class
FairGeoShapes
;
13
class
FairGeoBuilder
;
14
class
TObjArray;
15
class
TList;
16
17
enum
EHGeoDetPart
{
18
kFairGeoCave
= 0,
19
kFairGeoPipe
= 1,
20
kFairGeoTarget
= 2,
21
kFairGeoMagnet
= 3,
22
kFairGeoRich
= 4,
23
kFairGeoSts
= 5,
24
kFairGeoTrd
= 6,
25
kFairGeoTof
= 7,
26
kFairGeoEcal
= 8
27
};
28
29
35
class
FairGeoInterface
:
public
TObject
36
{
37
FairGeoIo
*
fileInput
;
38
FairGeoIo
*
oraInput
;
39
FairGeoIo
*
output
;
40
Int_t
nSets
;
41
Int_t
nActualSets
;
42
TObjArray*
sets
;
43
FairGeoMedia
*
media
;
44
FairGeoShapes
*
shapes
;
45
TList*
masterNodes
;
46
TString
setupFile
;
47
FairGeoBuilder
*
geoBuilder
;
48
public
:
49
FairGeoInterface
();
50
~FairGeoInterface
();
51
void
setOracleInput
(
FairGeoIo
*
p
) {
oraInput
=
p
;}
52
void
setOutput
(
FairGeoIo
*
p
) {
output
=
p
;}
53
void
setGeomBuilder
(
FairGeoBuilder
*
p
) {
geoBuilder
=
p
;}
54
FairGeoIo
*
getFileInput
() {
return
fileInput
; }
55
FairGeoIo
*
getOraInput
() {
return
oraInput
; }
56
FairGeoIo
*
getOutput
() {
return
output
; }
57
FairGeoShapes
*
getShapes
() {
return
shapes
; }
58
FairGeoMedia
*
getMedia
() {
return
media
; }
59
TList*
getMasterNodes
() {
return
masterNodes
; }
60
void
addInputFile
(
const
char
*);
61
void
addGeoModule
(
FairGeoSet
*);
62
void
setMediaFile
(
const
char
*
file
);
63
FairGeoSet
*
findSet
(
const
char
*);
64
Bool_t
readSet
(
FairGeoSet
*);
65
Bool_t
writeSet
(
FairGeoSet
*);
66
Bool_t
writeSet
(
FairGeoSet
*,
const
char
*);
67
Bool_t
createSet
(
FairGeoSet
*);
68
void
deleteSet
(
FairGeoSet
* pSet);
69
Bool_t
readMedia
();
70
Bool_t
writeMedia
();
71
Bool_t
writeMedia
(
const
char
*);
72
Bool_t
readAll
();
73
Bool_t
writeAll
();
74
Bool_t
createAll
(Bool_t withCleanup=kFALSE);
75
Bool_t
createGeometry
(Bool_t withCleanup=kFALSE);
76
Bool_t
readGeomConfig
(
const
char
*);
77
void
addSetupFile
(
const
char
* f) {
setupFile
=f;}
78
Bool_t
readSetupFile
();
79
void
print
();
80
void
SetNoOfSets
(Int_t
n
) {
nSets
=
n
;}
//
81
private
:
82
FairGeoInterface
(
const
FairGeoInterface
&);
83
FairGeoInterface
&
operator=
(
const
FairGeoInterface
&);
84
85
FairGeoIo
*
connectInput
(
const
char
*);
86
Bool_t
connectOutput
(
const
char
*);
87
88
ClassDef(
FairGeoInterface
,0)
//
89
};
90
91
#endif
/* !FAIRGEOINTERFACE_H */
EicRoot
blob
master
geobase
FairGeoInterface.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:36
using
1.8.2 with
EIC GitHub integration