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
FairGeoAsciiIo.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairGeoAsciiIo.h
1
#ifndef FAIRGEOASCIIIO_H
2
#define FAIRGEOASCIIIO_H
3
4
#include "
FairGeoIo.h
"
5
6
#include "TString.h"
7
8
#include <fstream>
9
//#include <iomanip>
10
11
class
FairGeoSet
;
12
class
FairGeoMedia
;
13
class
FairGeoInterface
;
14
19
class
FairGeoAsciiIo
:
public
FairGeoIo
20
{
21
TString
filename
;
22
TString
filedir
;
23
Bool_t
writable
;
24
std::fstream*
file
;
25
public
:
26
FairGeoAsciiIo
();
27
virtual
~FairGeoAsciiIo
();
28
void
setDirectory
(
const
char
* fDir) {
filedir
=fDir;}
29
const
char
*
getDirectory
() {
return
filedir
.Data();}
30
const
char
*
getFilename
() {
return
filename
.Data();}
31
Bool_t
open
(
const
char
*,
const
Text_t* status=
"in"
);
32
Bool_t
isOpen
();
33
Bool_t
isWritable
();
34
void
close
();
35
void
print
();
36
Bool_t
read
(
FairGeoMedia
*);
37
Bool_t
read
(
FairGeoSet
*,
FairGeoMedia
*);
38
Bool_t
write
(
FairGeoMedia
*);
39
Bool_t
write
(
FairGeoSet
*
set
);
40
Bool_t
readGeomConfig
(
FairGeoInterface
*);
41
Bool_t
readDetectorSetup
(
FairGeoInterface
*);
42
Bool_t
setSimulRefRun
(
const
char
*) {
return
kTRUE;}
43
Bool_t
setHistoryDate
(
const
char
*) {
return
kTRUE;}
44
private
:
45
FairGeoAsciiIo
(
const
FairGeoAsciiIo
&);
46
FairGeoAsciiIo
&
operator=
(
const
FairGeoAsciiIo
&);
47
ClassDef(
FairGeoAsciiIo
,0)
// Class for geometry I/O from ASCII file
48
};
49
50
#endif
/* !FAIRGEOASCIIIO_H */
EicRoot
blob
master
geobase
FairGeoAsciiIo.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:36
using
1.8.2 with
EIC GitHub integration