EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
FairGeoAsciiIo Class Reference

#include <EicRoot/blob/master/geobase/FairGeoAsciiIo.h>

+ Inheritance diagram for FairGeoAsciiIo:
+ Collaboration diagram for FairGeoAsciiIo:

Public Member Functions

 FairGeoAsciiIo ()
 
virtual ~FairGeoAsciiIo ()
 
void setDirectory (const char *fDir)
 
const char * getDirectory ()
 
const char * getFilename ()
 
Bool_t open (const char *, const Text_t *status="in")
 
Bool_t isOpen ()
 
Bool_t isWritable ()
 
void close ()
 
void print ()
 
Bool_t read (FairGeoMedia *)
 
Bool_t read (FairGeoSet *, FairGeoMedia *)
 
Bool_t write (FairGeoMedia *)
 
Bool_t write (FairGeoSet *set)
 
Bool_t readGeomConfig (FairGeoInterface *)
 
Bool_t readDetectorSetup (FairGeoInterface *)
 
Bool_t setSimulRefRun (const char *)
 
Bool_t setHistoryDate (const char *)
 

Private Member Functions

 FairGeoAsciiIo (const FairGeoAsciiIo &)
 
FairGeoAsciiIooperator= (const FairGeoAsciiIo &)
 

Private Attributes

TString filename
 
TString filedir
 
Bool_t writable
 
std::fstream * file
 

Detailed Description

Class for geometry I/O from ASCII file

Author
Ilse Koenig

Definition at line 19 of file FairGeoAsciiIo.h.

View newest version in sPHENIX GitHub at line 19 of file FairGeoAsciiIo.h

Constructor & Destructor Documentation

FairGeoAsciiIo::FairGeoAsciiIo ( )
FairGeoAsciiIo::~FairGeoAsciiIo ( )
virtual

Definition at line 34 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 34 of file FairGeoAsciiIo.cxx

References close(), and file.

+ Here is the call graph for this function:

FairGeoAsciiIo::FairGeoAsciiIo ( const FairGeoAsciiIo )
private

Member Function Documentation

void FairGeoAsciiIo::close ( )
virtual

Implements FairGeoIo.

Definition at line 93 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 93 of file FairGeoAsciiIo.cxx

References file, filename, and isOpen().

Referenced by open(), and ~FairGeoAsciiIo().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const char* FairGeoAsciiIo::getDirectory ( )
inline

Definition at line 29 of file FairGeoAsciiIo.h.

View newest version in sPHENIX GitHub at line 29 of file FairGeoAsciiIo.h

References filedir.

const char* FairGeoAsciiIo::getFilename ( )
inline

Definition at line 30 of file FairGeoAsciiIo.h.

View newest version in sPHENIX GitHub at line 30 of file FairGeoAsciiIo.h

References filename.

Bool_t FairGeoAsciiIo::isOpen ( )
virtual

Implements FairGeoIo.

Definition at line 79 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 79 of file FairGeoAsciiIo.cxx

References file.

Referenced by close(), isWritable(), open(), print(), read(), readDetectorSetup(), readGeomConfig(), and write().

+ Here is the caller graph for this function:

Bool_t FairGeoAsciiIo::isWritable ( )
virtual

Implements FairGeoIo.

Definition at line 86 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 86 of file FairGeoAsciiIo.cxx

References isOpen(), and writable.

+ Here is the call graph for this function:

Bool_t FairGeoAsciiIo::open ( const char *  fname,
const Text_t *  status = "in" 
)
virtual

Implements FairGeoIo.

Definition at line 44 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 44 of file FairGeoAsciiIo.cxx

References close(), file, filedir, filename, in, isOpen(), and writable.

+ Here is the call graph for this function:

FairGeoAsciiIo& FairGeoAsciiIo::operator= ( const FairGeoAsciiIo )
private
void FairGeoAsciiIo::print ( )
virtual

Implements FairGeoIo.

Definition at line 102 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 102 of file FairGeoAsciiIo.cxx

References filename, isOpen(), and writable.

+ Here is the call graph for this function:

Bool_t FairGeoAsciiIo::read ( FairGeoMedia media)
virtual

Implements FairGeoIo.

Definition at line 111 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 111 of file FairGeoAsciiIo.cxx

References file, isOpen(), FairGeoMedia::read(), and writable.

+ Here is the call graph for this function:

Bool_t FairGeoAsciiIo::read ( FairGeoSet set,
FairGeoMedia media 
)
virtual

Implements FairGeoIo.

Definition at line 119 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 119 of file FairGeoAsciiIo.cxx

References file, isOpen(), and writable.

+ Here is the call graph for this function:

Bool_t FairGeoAsciiIo::readDetectorSetup ( FairGeoInterface interface)

Definition at line 185 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 185 of file FairGeoAsciiIo.cxx

References d, FairGeoInterface::findSet(), FairGeoSet::getMaxModules(), isOpen(), n, Acts::UnitConstants::s, and writable.

Referenced by FairGeoInterface::readSetupFile().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Bool_t FairGeoAsciiIo::readGeomConfig ( FairGeoInterface interface)
virtual

Implements FairGeoIo.

Definition at line 143 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 143 of file FairGeoAsciiIo.cxx

References FairGeoInterface::addInputFile(), FairGeoInterface::addSetupFile(), file, FairGeoInterface::getOraInput(), isOpen(), k, FairGeoIo::setHistoryDate(), FairGeoIo::setSimulRefRun(), and writable.

+ Here is the call graph for this function:

void FairGeoAsciiIo::setDirectory ( const char *  fDir)
inline

Definition at line 28 of file FairGeoAsciiIo.h.

View newest version in sPHENIX GitHub at line 28 of file FairGeoAsciiIo.h

References filedir.

Bool_t FairGeoAsciiIo::setHistoryDate ( const char *  )
inlinevirtual

Implements FairGeoIo.

Definition at line 43 of file FairGeoAsciiIo.h.

View newest version in sPHENIX GitHub at line 43 of file FairGeoAsciiIo.h

Bool_t FairGeoAsciiIo::setSimulRefRun ( const char *  )
inlinevirtual

Implements FairGeoIo.

Definition at line 42 of file FairGeoAsciiIo.h.

View newest version in sPHENIX GitHub at line 42 of file FairGeoAsciiIo.h

Bool_t FairGeoAsciiIo::write ( FairGeoMedia media)
virtual

Implements FairGeoIo.

Definition at line 127 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 127 of file FairGeoAsciiIo.cxx

References file, isOpen(), writable, and FairGeoMedia::write().

+ Here is the call graph for this function:

Bool_t FairGeoAsciiIo::write ( FairGeoSet set)
virtual

Implements FairGeoIo.

Definition at line 135 of file FairGeoAsciiIo.cxx.

View newest version in sPHENIX GitHub at line 135 of file FairGeoAsciiIo.cxx

References file, isOpen(), and writable.

+ Here is the call graph for this function:

Member Data Documentation

std::fstream* FairGeoAsciiIo::file
private

Definition at line 24 of file FairGeoAsciiIo.h.

View newest version in sPHENIX GitHub at line 24 of file FairGeoAsciiIo.h

Referenced by close(), isOpen(), open(), read(), readGeomConfig(), write(), and ~FairGeoAsciiIo().

TString FairGeoAsciiIo::filedir
private

Definition at line 22 of file FairGeoAsciiIo.h.

View newest version in sPHENIX GitHub at line 22 of file FairGeoAsciiIo.h

Referenced by getDirectory(), open(), and setDirectory().

TString FairGeoAsciiIo::filename
private

Definition at line 21 of file FairGeoAsciiIo.h.

View newest version in sPHENIX GitHub at line 21 of file FairGeoAsciiIo.h

Referenced by close(), getFilename(), open(), and print().

Bool_t FairGeoAsciiIo::writable
private

Definition at line 23 of file FairGeoAsciiIo.h.

View newest version in sPHENIX GitHub at line 23 of file FairGeoAsciiIo.h

Referenced by isWritable(), open(), print(), read(), readDetectorSetup(), readGeomConfig(), and write().


The documentation for this class was generated from the following files: