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
FairParAsciiFileIo.h
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file FairParAsciiFileIo.h
1
#ifndef FAIRPARASCIFILEIIO_H
2
#define FAIRPARASCIFILEIIO_H
3
4
#include "
FairParIo.h
"
5
6
#include <fstream>
7
8
class
TList;
9
10
class
FairParAsciiFileIo
:
public
FairParIo
11
{
12
protected
:
13
std::fstream*
file
;
// pointer to a file
14
public
:
15
FairParAsciiFileIo
();
16
17
// default destructor closes an open file and deletes list of I/Os
18
~FairParAsciiFileIo
();
19
20
// opens file
21
// if a file is already open, this file will be closed
22
// activates detector I/Os
23
Bool_t
open
(
const
Text_t* fname,
const
Text_t* status=
"in"
);
24
25
// concatenate files whose names are stored in the TList
26
// TList holds list od TObjStrings
27
// create file all.par in local working directory
28
// calls open to open the generated file all.par
29
Bool_t
open
(
const
TList* fnamelist,
const
Text_t* status=
"in"
);
30
31
// closes file
32
void
close
();
33
34
// returns kTRUE if file is open
35
Bool_t
check
() {
36
if
(
file
) {
return
(
file
->rdbuf()->is_open()==1); }
37
else
{
return
kFALSE; }
38
}
39
40
// prints information about the file and the detector I/Os
41
void
print
();
42
43
std::fstream*
getFile
();
44
private
:
45
FairParAsciiFileIo
(
const
FairParAsciiFileIo
&);
46
FairParAsciiFileIo
&
operator=
(
const
FairParAsciiFileIo
&);
47
48
ClassDef(
FairParAsciiFileIo
,0)
// Parameter I/O from ASCII files
49
};
50
51
#endif
/* !FAIRPARASCIIFILEIO_H */
52
EicRoot
blob
master
parbase
FairParAsciiFileIo.h
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:36
using
1.8.2 with
EIC GitHub integration